:warning: adamgithub92 already gave max-lab points
arr1
values in the button click handlers and how the compareArrays
function is using that?setInterval
? Did I just miss it? For automatic playback of the sequences, it seems that you would need something like that? I'll try to check in later...
:star2: 2289 | @khaduch |http://www.freecodecamp.com/khaduch
complete
option in some way to make sure that the flashing sequenced in some reasonable way? Not sure because I haven't really tried this type of thing. It did seem that the flashing of the different colors went rather quickly? Like multiple buttons flashed at once.
:star2: 1094 | @sorinr |http://www.freecodecamp.com/sorinr
Hopefully someone can help me with this. I've been searching a few hours and can't find a solution. I'm working on the weather app and I want a weather icon to change based on the current weather condition. The following code is without checking for the current weather condition, as I can't get my JS to change the icon even on page load.I can get the class to work if I add it directly in my HTML, so I believe I'm doing something wrong in JS. Thanks!
HTML:
<div class="weather-icon wi">
<i id="#weather-icon"class=""></i>
</div>
JS:
$("#weather-icon").removeClass().addClass("wi-day-sunny");