Created
February 23, 2019 06:54
-
-
Save praetoriansentry/297152a91354aded5cd0f81ea512a821 to your computer and use it in GitHub Desktop.
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() { | |
var pres = document.querySelectorAll("#images pre"); | |
var len = pres.length; | |
for(var i = 0; i < pres.length; i = i + 1) { | |
pres[i].style.display = 'none'; | |
} | |
var a = 0; | |
window.setInterval(function() { | |
pres[a].style.display = 'none'; | |
pres[(a + 1)%len].style.display = 'block'; | |
a = (a + 1) % len; | |
}, 40); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment