-
-
Save thams017/57af35a29d14bcd85dcb to your computer and use it in GitHub Desktop.
To randomize the R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function randReveal() { | |
var rn1 = Math.random() * 300; | |
var left = parseInt(rn1); | |
var rn2 = Math.random() * 200; | |
var top = parseInt(rn2); | |
$(".reveal").css("left", left); | |
$(".reveal").css("top", top); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment