What do you want to save?
Add Code snippet
New code examples
-
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 -
Javascript 2021-11-17 11:01:14
scroll to top in javascript duration
scrollToPageTopWithSlowAniemation(){ var scrollToTop = window.setInterval(function() { var pos = window.pageYOffset; if ( pos > 0 ) { window.scrollTo( 0, pos - 20 ); // how far to scroll on each step } else { window.clearInte... Add solution -
Other 2021-11-11 12:31:21
ruin the fun cookie clicker
#Hacks: # Type these in your console which you can open by # pressing STRG + SHIFT + J (Chrome) or STRG + SHIFT + K (Firefox) # changes the amount of cookies Game.cookies = amount in int # unlimted cookies Game.cookies = Infinity ... Add solution -
Javascript 2021-11-09 11:13:15
how to print every second in javascript
clearInterval(t); stop interval Add solution -
Javascript 2021-11-02 11:10:04
repeating countdown timer javascript
var count=25; var counter=setInterval(timer, 1000); //1000 will run it every 1 second function timer() { count=count-1; if (count <= 0) { clearInterval(counter); return; } document.getElementById("timer").innerHTML=count... Add solution -
Javascript 2021-10-29 13:28:11
add countdown timer to javascript quiz
var count = 15; var interval = setInterval(function(){ document.getElementById('count').innerHTML=count; count--; if (count === 0){ clearInterval(interval); document.getElementById('count').innerHTML='Done'; // or... alert("You'... Add solution -
Javascript 2021-10-29 06:27:10
javascript make title blink
var isOldTitle = true; var oldTitle = "oldTitle"; var newTitle = "newTitle"; var interval = null; function changeTitle() { document.title = isOldTitle ? oldTitle : newTitle; isOldTitle = !isOldTitle; } interval = setInterval(ch... Add solution
Best helpers
Ranking is empty