Created
June 6, 2020 11:16
-
-
Save ramonfincken/d8c20041410f0c5c8564c2c2931380d3 to your computer and use it in GitHub Desktop.
Random people viewing
This file contains hidden or 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
X are currently looking at this product. | |
jQuery(function() { | |
setInterval(function() { | |
var myDiv = jQuery("#viewing_now"); | |
var myRand = Math.floor(Math.random() * 16) + 8; | |
myDiv.text(myRand); | |
}, 5000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment