Unrelated question: I have a folder above the main directory of my html, css & js files that is called "images". I am trying to get the CSS to display the pictures where the HTML div id is shown (girl1). When I run the code, it cannot find the image. I've verified that the picture is .jpg but think that there is something fundamental that I'm not understanding. Any input? I'd include screenshots but I'm not sure how to get that into this chat (though it is clearly possible)
Mike (Mikey) Bedney
Kk...found the image (network log helped). Now just gotten figure out what I need to add to CSS so it won't be invisible. I'm trying out ideas relating to setting the width, pixels (which I'd like to match the original image size), & other ideas....
Does the final project require us to actually use the algorithm we're visualizing, or can we simply step the viewer through the logic using animations and a default example? I'm finding it difficult to pause the algorithm as it runs, but could very easily walk the viewer through a step by step visualization/animation of the logic.
@sfasano: agreed, stepping through iterations can be tricky, possibly requiring some careful setTimeout usage. That said, if you find a good way to do it with animate steps with a default example, that sounds just fine.
@mathowie: Nice project! Nicely highlights the value of keeping an eye on efficiency of algorithms.
For additional context, even if there is no other code in my js file, this will still execute the code inside splitArr() immediately upon refresh.
@sfasano could you put it on jsfiddle / jsbin to take alook?
You'll notice that it autoruns the split and sort functions, even though they're only called within the .on(click) event handlers. I'm interpreting this as meaning that simply by binding the functions to a button, they're also automatically being called.
I may have figured this out. Instead of calling splitArr from the .on() event, I need to call an anonymous function that contains splitArr inside it. I still don't understand WHY that's the case, but trial and error has proven it to work.
yes… or you could pass splitArr as the parameter to the .on() method instead of invoking it like splitArr() - big difference.
remember functions are just values in JS
so if you look up .on() in jquery: http://devdocs.io/jquery/on the ‘handler’ is a value - either an anonymous function inline right there, or a variable that is a reference to a function
how does that sound?
How are we supposed to submit (in Canvas) the assignment for the personalized growth plan? I've completed the survey and clicked submit with then prompted my with a save confirmation. How are we supposed to transfer that to the Canvas submission box?
Everyone here has signed up for CodeOregon, right? ( http://codeoregon.org/ ) it’s free for any resident. Tons of stuff to keep doing on TeamTreehouse.
@ivanoats CodeOregon is free to any resident for 2 years. After the first 60 days you must go in and register at Worksource Oregon. More information can be found here. https://teamtreehouse.com/forum/codeoregon
ok - what’s involved in registering for worksource?