ga-wdi-exercises / project1

[project] GA- Project 1
3 stars 75 forks source link

Issue with setting timer #224

Closed caitlindaitch closed 8 years ago

caitlindaitch commented 8 years ago

I tried creating a separate function called playTimedGame. I expected it to run a timer on displaying the "you lose" alert after a certain number of seconds, but instead clicking the timer refreshes the page. My repo link is https://github.com/caitlindaitch/ConcentrationGame and my question is about lines 71-81.

PS. Sorry my project is still in a separate repo! I will fix it later.

RobertAKARobin commented 8 years ago

It's actually an HTML problem! Remove the href="" from the <a>, or change it to href="#".