Created
August 25, 2018 10:47
-
-
Save tripulse/459f49b0d409b14065c8e02beb39f0f7 to your computer and use it in GitHub Desktop.
Invention of meme maker.
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
var video = document.querySelector("video"); | |
function getRandom(min, max) { | |
return Math.floor(Math.random() * (max - min)) + min; | |
} | |
setInterval(function() { | |
// video.playbackRate = getRandom(0.07, 1.5); | |
video.currentTime = getRandom(0, video.duration); | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment