# programming

**URL:** https://forum.kirupa.com/c/programming/41.md?page=59

[Latest](https://forum.kirupa.com/latest.md) · [Categories](https://forum.kirupa.com/categories.md)

**Page:** 60

---

## [i need help with this JS sort algorithm](https://forum.kirupa.com/t/i-need-help-with-this-js-sort-algorithm/637624)

<div class="topic-metadata">

**Author:** [@alphons3k](https://forum.kirupa.com/u/alphons3k)\
**Replies:** 1\
**Last updated:** [December 18, 2017, 3:30am UTC](https://forum.kirupa.com/t/i-need-help-with-this-js-sort-algorithm/637624 "2017-12-18T03:30:37Z")

</div>

So, it works perfectly. i just dont understand it. anyone willing to comment the step by step or give me an easy algorithm var numArray = \[25,4,9,41, 7,9,11,0\]; for (var i = 0; i \< numArray.length - 1; i++) { var min …

---

## [My sliding menu in React does not work?](https://forum.kirupa.com/t/my-sliding-menu-in-react-does-not-work/637620)

<div class="topic-metadata">

**Author:** [@emeery](https://forum.kirupa.com/u/emeery)\
**Replies:** 1\
**Last updated:** [December 16, 2017, 8:54pm UTC](https://forum.kirupa.com/t/my-sliding-menu-in-react-does-not-work/637620 "2017-12-16T20:54:21Z")

</div>

Following the tutorial from this page “Creating a Sliding Menu in React” does not work as it should, by pressing the button it should appear to scroll the menu but only the text appears below the button which could be th…

---

## [FileWriting React](https://forum.kirupa.com/t/filewriting-react/637558)

<div class="topic-metadata">

**Author:** [@reactnc](https://forum.kirupa.com/u/reactnc)\
**Replies:** 2\
**Last updated:** [December 5, 2017, 8:00pm UTC](https://forum.kirupa.com/t/filewriting-react/637558 "2017-12-05T20:00:51Z")

</div>

Hi, I was working on a little in house React page that allows the user to load a file and do some modifications. Is it possible to have the data then saved to directory I’m running react out of? All I have seen online …

---

## [React fragment syntax (\<\>\</\>) is here](https://forum.kirupa.com/t/react-fragment-syntax-is-here/637536)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 4\
**Last updated:** [November 29, 2017, 11:48pm UTC](https://forum.kirupa.com/t/react-fragment-syntax-is-here/637536 "2017-11-29T23:48:07Z")

</div>

Used to wrap groups of elements without using a rendered container element.

---

## [A New Coding app to show you - KIDLO CODING](https://forum.kirupa.com/t/a-new-coding-app-to-show-you-kidlo-coding/637527)

<div class="topic-metadata">

**Author:** [@sunsub](https://forum.kirupa.com/u/sunsub)\
**Replies:** 0\
**Last updated:** [November 28, 2017, 1:02pm UTC](https://forum.kirupa.com/t/a-new-coding-app-to-show-you-kidlo-coding/637527 "2017-11-28T13:02:54Z")

</div>

\*Kidlo Coding For Kids - Learn To Code | IDZ Digital- (6-8 years) Kidlo Coding for Kids is a fun coding game to teach kids the very basics of programming, a very essential skill in today’s world. It teaches coding with …

---

## [Font size according to field area](https://forum.kirupa.com/t/font-size-according-to-field-area/637512)

<div class="topic-metadata">

**Author:** [@erezb1](https://forum.kirupa.com/u/erezb1)\
**Replies:** 0\
**Last updated:** [November 26, 2017, 3:59pm UTC](https://forum.kirupa.com/t/font-size-according-to-field-area/637512 "2017-11-26T15:59:58Z")

</div>

Hi All Got a dynamic text box which get text from outer source, (fits to 20 chars). I want the whole text to keep inside the box and shrink (font size) if text is too long. Tried all of this options, none of them shir…

---

## [How to host your WordPress website on Linode](https://forum.kirupa.com/t/how-to-host-your-wordpress-website-on-linode/637368)

<div class="topic-metadata">

**Author:** [@baldwinjackson](https://forum.kirupa.com/u/baldwinjackson)\
**Replies:** 1\
**Last updated:** [November 8, 2017, 5:53am UTC](https://forum.kirupa.com/t/how-to-host-your-wordpress-website-on-linode/637368 "2017-11-08T05:53:14Z")

</div>

Hello everyone I am looking for the easiest way of hosting WordPress website on Linode cloud servers? Kindly share your experiences.

---

## [javasript random colors for div background](https://forum.kirupa.com/t/javasript-random-colors-for-div-background/637437)

<div class="topic-metadata">

**Author:** [@Ruth\_Harris\_Shumate](https://forum.kirupa.com/u/Ruth_Harris_Shumate)\
**Replies:** 2\
**Last updated:** [November 13, 2017, 10:28pm UTC](https://forum.kirupa.com/t/javasript-random-colors-for-div-background/637437 "2017-11-13T22:28:02Z")

</div>

I am trying to create hex colors randomly that will change the background of a div. It should repeat until a code tells it to stop. I have the code to generate the color I think. function getRandomColor() { …

---

## [Help making this open source website](https://forum.kirupa.com/t/help-making-this-open-source-website/637436)

<div class="topic-metadata">

**Author:** [@LordHeti](https://forum.kirupa.com/u/LordHeti)\
**Replies:** 3\
**Last updated:** [November 12, 2017, 8:59pm UTC](https://forum.kirupa.com/t/help-making-this-open-source-website/637436 "2017-11-12T20:59:44Z")

</div>

So I want to make a website like www.destiny.gg this website has a source code that you can use to make your own version of the website but I don’t know how to make it can any of you guys help me? Here is the link to the…

---

## [Set timeout on snowflake animation](https://forum.kirupa.com/t/set-timeout-on-snowflake-animation/637428)

<div class="topic-metadata">

**Author:** [@simongreenland](https://forum.kirupa.com/u/simongreenland)\
**Replies:** 0\
**Last updated:** [November 11, 2017, 10:00pm UTC](https://forum.kirupa.com/t/set-timeout-on-snowflake-animation/637428 "2017-11-11T22:00:28Z")

</div>

Hi. Is it possible to set a timeout on the snowflake animation at: It’s really nice, but I would like it to stop after 30 seconds perhaps? Thanks, Si

---

## [javascript Keypress code problem](https://forum.kirupa.com/t/javascript-keypress-code-problem/637420)

<div class="topic-metadata">

**Author:** [@Ruth\_Harris\_Shumate](https://forum.kirupa.com/u/Ruth_Harris_Shumate)\
**Replies:** 2\
**Last updated:** [November 11, 2017, 2:24am UTC](https://forum.kirupa.com/t/javascript-keypress-code-problem/637420 "2017-11-11T02:24:54Z")

</div>

I want to create a Javascript program that when I press a key it will give me a matching image. I have images named Letter-ATumb, Letter-BThumb to Letter-ZThumb. Do I have to convert the code I get from keypress even…

---

## [Javascript function to change input on forms](https://forum.kirupa.com/t/javascript-function-to-change-input-on-forms/637416)

<div class="topic-metadata">

**Author:** [@Ruth\_Harris\_Shumate](https://forum.kirupa.com/u/Ruth_Harris_Shumate)\
**Replies:** 3\
**Last updated:** [November 10, 2017, 11:37pm UTC](https://forum.kirupa.com/t/javascript-function-to-change-input-on-forms/637416 "2017-11-10T23:37:00Z")

</div>

I got the the input but I was wondering if I have to write a function for each input element or is there easy or more effective way to this in Javascript. \<html\> \<head\> \</head\> \<body\> \<br /\> \<h3\>Fun With the…

---

## [Javascript removing element from the DOM via user input](https://forum.kirupa.com/t/javascript-removing-element-from-the-dom-via-user-input/637389)

<div class="topic-metadata">

**Author:** [@Ruth\_Harris\_Shumate](https://forum.kirupa.com/u/Ruth_Harris_Shumate)\
**Replies:** 7\
**Last updated:** [November 8, 2017, 6:12pm UTC](https://forum.kirupa.com/t/javascript-removing-element-from-the-dom-via-user-input/637389 "2017-11-08T18:12:11Z")

</div>

I need to prompt for for a color to remove from the list elements. I have able to delete first child and last child and all of the list items. No jquery please. Any help would be appreciate \<html\> \<head\> \<title\>Lab…

---

## [ul within ul within li](https://forum.kirupa.com/t/ul-within-ul-within-li/637405)

<div class="topic-metadata">

**Author:** [@audry](https://forum.kirupa.com/u/audry)\
**Replies:** 1\
**Last updated:** [November 8, 2017, 4:08pm UTC](https://forum.kirupa.com/t/ul-within-ul-within-li/637405 "2017-11-08T16:08:23Z")

</div>

hi I found this free script for org chart and looks pretty straight forward I am just not able to link li within li i.e CFO has 2 employees: employee 1 employee 2 and under and employee 2 there 4 employees that report …

---

## [kirupa.com - Connected Lines, Page 5](https://forum.kirupa.com/t/kirupa-com-connected-lines-page-5/637396)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [November 8, 2017, 1:22am UTC](https://forum.kirupa.com/t/kirupa-com-connected-lines-page-5/637396 "2017-11-08T01:22:55Z")

</div>

by kirupa | 25 June 2006 In the previous page, we started delving into the code that draws the connected lines. We did not fully get done, so let's continue off with where…

---

## [React Native vs Native Dev](https://forum.kirupa.com/t/react-native-vs-native-dev/637373)

<div class="topic-metadata">

**Author:** [@Wayne](https://forum.kirupa.com/u/Wayne)\
**Replies:** 4\
**Last updated:** [November 6, 2017, 5:28pm UTC](https://forum.kirupa.com/t/react-native-vs-native-dev/637373 "2017-11-06T17:28:44Z")

</div>

Hi again Kirupa community! I´m back after being away for many years! I would like to know your opinion regarding React Native vs doing a native iOS application? I enjoy using both Xcode and JavaScript but feel like eve…

---

## [Is there a way to embed a canvas within another?](https://forum.kirupa.com/t/is-there-a-way-to-embed-a-canvas-within-another/637392)

<div class="topic-metadata">

**Author:** [@Jithin\_Ks](https://forum.kirupa.com/u/Jithin_Ks)\
**Replies:** 1\
**Last updated:** [November 6, 2017, 5:24pm UTC](https://forum.kirupa.com/t/is-there-a-way-to-embed-a-canvas-within-another/637392 "2017-11-06T17:24:52Z")

</div>

I’m creating a web app which makes use of interactive simulations made as canvas to teach subjects. I have a basic canvas where things can be written and drawn just like basic drawing app. I need option to embed another …

---

## [Follow the Mouse Cursor](https://forum.kirupa.com/t/follow-the-mouse-cursor/637334)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [October 19, 2017, 9:44pm UTC](https://forum.kirupa.com/t/follow-the-mouse-cursor/637334 "2017-10-19T21:44:35Z")

</div>

by kirupa | 9 March 2016 On the canvas, one of the most common things you'll do with the keyboard is use the arrow keys to move something around. For example, click on the following triangle and use your arrow keys …

---

## [Playing Sounds in ActionScript](https://forum.kirupa.com/t/playing-sounds-in-actionscript/399123)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 1\
**Last updated:** [November 5, 2017, 2:39pm UTC](https://forum.kirupa.com/t/playing-sounds-in-actionscript/399123 "2017-11-05T14:39:30Z")

</div>

by kirupa | 16 February 2003 During your course of Flashing, you may have added sounds the old-fashioned way. You would probabl…

---

## [Arrow Functions | KIRUPA](https://forum.kirupa.com/t/arrow-functions-kirupa/637338)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [October 22, 2017, 6:48pm UTC](https://forum.kirupa.com/t/arrow-functions-kirupa/637338 "2017-10-22T18:48:06Z")

</div>

This content was ported over from Stack Overflow Documentation, now retired. To access the source and attribution please access the Docs archive and reference topic ID: 5007. Some of the contributors to this content are…

---

## [Box Pushing in AS2](https://forum.kirupa.com/t/box-pushing-in-as2/637310)

<div class="topic-metadata">

**Author:** [@bbpanzu](https://forum.kirupa.com/u/bbpanzu)\
**Replies:** 3\
**Last updated:** [October 15, 2017, 3:02pm UTC](https://forum.kirupa.com/t/box-pushing-in-as2/637310 "2017-10-15T15:02:57Z")

</div>

I’m trying to make my character push a box, but all the box is doing is sticking onto the character. I know why it’s doing it, I just don’t know how to fix it. code: if(this.hitTest(\_root.char)){ \_x += \_root.xSpeed; …

---

## [introduction](https://forum.kirupa.com/t/introduction/636101)

<div class="topic-metadata">

**Author:** [@domingotaylor](https://forum.kirupa.com/u/domingotaylor)\
**Replies:** 3\
**Last updated:** [April 7, 2017, 11:11am UTC](https://forum.kirupa.com/t/introduction/636101 "2017-04-07T11:11:32Z")

</div>

hello i am new here please support for me

---

## [Timing Functions (aka Easing Functions) in CSS3 | KIRUPA](https://forum.kirupa.com/t/timing-functions-aka-easing-functions-in-css3-kirupa/637303)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [October 11, 2017, 9:03pm UTC](https://forum.kirupa.com/t/timing-functions-aka-easing-functions-in-css3-kirupa/637303 "2017-10-11T21:03:42Z")

</div>

by kirupa | 28 December 2016 So far, we've created our animations and transitions by specifying only a handful of things: the properties to animate, the initial & final property values, the duration. The exac…

---

## [Kirupa.com - Resizing the HTML Canvas Element](https://forum.kirupa.com/t/kirupa-com-resizing-the-html-canvas-element/352161)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 2\
**Last updated:** [October 11, 2017, 5:50pm UTC](https://forum.kirupa.com/t/kirupa-com-resizing-the-html-canvas-element/352161 "2017-10-11T17:50:36Z")

</div>

by kirupa | 24 May 2011 Have questions? Discuss this HTML5 tutorial with others on the forums. This is a companion discussion topic for the original entry at http://www.kirupa.com/html5/resizing\_html\_canvas…

---

## [\[CSS/Jquery HELP\] Menu dropdown not rolling up on mobile view!](https://forum.kirupa.com/t/css-jquery-help-menu-dropdown-not-rolling-up-on-mobile-view/637285)

<div class="topic-metadata">

**Author:** [@jetiz](https://forum.kirupa.com/u/jetiz)\
**Replies:** 2\
**Last updated:** [October 11, 2017, 6:02am UTC](https://forum.kirupa.com/t/css-jquery-help-menu-dropdown-not-rolling-up-on-mobile-view/637285 "2017-10-11T06:02:14Z")

</div>

Hi, The one-page website menu stopped rolling up on selection in mobile view? Once we select the menu option, the open drop-down menu should close and the user should be taken to that section. Not able to figure out th…

---

## [Anyone use Vue?](https://forum.kirupa.com/t/anyone-use-vue/637262)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 6\
**Last updated:** [October 8, 2017, 5:18am UTC](https://forum.kirupa.com/t/anyone-use-vue/637262 "2017-10-08T05:18:39Z")

</div>

If you have, I was wondering what your experiences with it has been, especially compared to any other framework/library you’ve used. I started looking into it as a comparison to some internal library and some things abo…

---

## [Creating a Sweet Content Slider](https://forum.kirupa.com/t/creating-a-sweet-content-slider/352067)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 23\
**Last updated:** [October 7, 2017, 3:33pm UTC](https://forum.kirupa.com/t/creating-a-sweet-content-slider/352067 "2017-10-07T15:33:22Z")

</div>

Learn how to create a content slider from scratch using a dash of the usual suspects (HTML, CSS, JavaScript) and a sweet CSS Transition. This is a companion discussion topic for the original entry at http://www.kirupa.…

---

## [Iframe loading and processing](https://forum.kirupa.com/t/iframe-loading-and-processing/637270)

<div class="topic-metadata">

**Author:** [@Mulligan81](https://forum.kirupa.com/u/Mulligan81)\
**Replies:** 0\
**Last updated:** [October 6, 2017, 3:17pm UTC](https://forum.kirupa.com/t/iframe-loading-and-processing/637270 "2017-10-06T15:17:33Z")

</div>

Having following code \<iframe id="myframe" src="..."\>\</iframe\> \<script\> document.getElementById('myframe').onload = function() { alert('myframe is loaded'); }; \</script\> i wonder how does the browser pro…

---

## [Expand div onclick of it while others with the same class name remains hidden](https://forum.kirupa.com/t/expand-div-onclick-of-it-while-others-with-the-same-class-name-remains-hidden/637254)

<div class="topic-metadata">

**Author:** [@ConnelBlaze](https://forum.kirupa.com/u/ConnelBlaze)\
**Replies:** 5\
**Last updated:** [October 3, 2017, 11:55am UTC](https://forum.kirupa.com/t/expand-div-onclick-of-it-while-others-with-the-same-class-name-remains-hidden/637254 "2017-10-03T11:55:46Z")

</div>

this is what i want to achieve. but this is what i have: \<!-- master image --\> \<div class="ba b--black-20 ph2 pv3 cf pointer"\> \<span\>What is a master image?\</span\> \<svg width="17" height="10" viewBox…

---

## [window.controllers is deprecated. An alternative?](https://forum.kirupa.com/t/window-controllers-is-deprecated-an-alternative/637233)

<div class="topic-metadata">

**Author:** [@gNeandr](https://forum.kirupa.com/u/gNeandr)\
**Replies:** 4\
**Last updated:** [October 2, 2017, 10:39am UTC](https://forum.kirupa.com/t/window-controllers-is-deprecated-an-alternative/637233 "2017-10-02T10:39:33Z")

</div>

Using window.location.href = “mailto:” + strMailto; will throw on the console: window.controllers is deprecated. Do not use it for UA detection. Also the msg is thrown, a compose window is opened with the mailto …

[Previous page](https://forum.kirupa.com/c/programming/41.md?page=58)

[Next page](https://forum.kirupa.com/c/programming/41.md?page=60)
