-
-
Save thams017/c07dbd4846b390075d94 to your computer and use it in GitHub Desktop.
To Randomize Dot
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 randDot() { | |
var rn1 = Math.random() * 300; | |
var left = parseInt(rn1); | |
var rn2 = Math.random() * 200; | |
var top = parseInt(rn2); | |
$(".dot").css("left", left); | |
$(".dot").css("top", top); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment