Re:World Clicking Championship TheElevatorGame.com (and expe...
by joshwprinceton on Tuesday January 31, 2012 @06:38PM
(#3535824)
is there a way I could have disabled that?
[ Parent
| on HN ]
Re:World Clicking Championship TheElevatorGame.com (and expe...
by jhherren on Tuesday January 31, 2012 @08:48PM
(#3536245)
Of course. Give the numbers a randomly generated id, and check for the winning value server side. You'd also want display the numbers in a way where it's tougher to compare them than checking the text values--the target value is $('#left h1').text().trim(). So that means using images (not named 1.jpg!) or canvas or something like that.
Also, your app is vulnerable to replay. I can keep POSTing the same request over and over and my score increases.
Re:World Clicking Championship TheElevatorGame.com (and expe...
by openyogurt on Thursday February 02, 2012 @09:06AM
(#3542706)
As it is now, you don't even need to match the numbers. Just find the form and submit it. $("#right form").submit()