What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-11 03:00:52
jquery time counter
<!-- Display the countdown timer in an element --> <p id="demo"></p> <script> // Set the date we're counting down to var countDownDate = new Date("Jan 5, 2022 15:37:25").getTime(); // Update the count down eve... Add solution -
Javascript 2022-01-27 22:41:23
javascript scroll auto
// If you don't know when data comes, you can set an interval: window.setInterval(function() { var elem = document.getElementById('yourDivWithScrollbar'); elem.scrollTop = elem.scrollHeight; }, 5000); // If you do know when data comes, you can do it ... Add solution -
Javascript 2022-01-22 19:21:28
discord.js check every x minutes
var checkminutes = 10, checkthe_interval = checkminutes * 60 * 1000; //This checks every 10 minutes, change 10 to whatever minute you'd like setInterval(function() { message.channel.send("hello world"); //Or anything else }, checkthe_interval); Add solution -
Javascript 2021-11-21 19:46:12
discord js setinterval
var checkminutes = 10, checkthe_interval = checkminutes * 60 * 1000; //This checks every 10 minutes, change 10 to whatever minute you'd like setInterval(function() { message.channel.send("hello world"); //Or anything else }, checkthe_interval); Add solution -
Javascript 2021-11-20 07:47:26
JavaScript basic clicker game
//Basic variables (the currency in this example is lemons) var incrementInterval = 10 //This is done so the code in the setInterval function runs 10 times per second var lemons = 0.0 var lemonsPerClick = 1.0 var lemonsPerIncrement = 0.0 //Function for cl... Add solution -
Javascript 2021-11-17 15:20:10
countdown in javascript
<!DOCTYPE HTML> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> p { text-align: center; font-size: 60px; margin-top: 0px; } </style> </head> <... Add solution