These are chat archives for codefellows/sea-f1-TAs/Zach

24th
Sep 2014
Patrick Landin
@PatrickLandin
Sep 24 2014 05:38
I know it's probably something obvious, but I've gone from having my race run to having it not run at all as I've attempted to integrate an HTML button that moves the racers. I've simplified my race game and attempted to wrap a .click event around the code that advances my racers. Thanks for your help. https://github.com/PatrickLandin/F1-Webpage
Ryan
@rraeburn
Sep 24 2014 12:42
@PatrickLandin not sure if this makes any difference, but I got my race button to work by using the .on() event listener
so $('button#race').on('click', function () { ....
and then you can add the timer if you want the race to run after one click, or just keep clicking to advance racers