Created
June 15, 2014 17:51
-
-
Save arturadib/a86ce9d2dcf4fed66a9f to your computer and use it in GitHub Desktop.
Dropbox slideshow
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 goingFwd = true; | |
setInterval(function() { | |
if (goingFwd) { | |
var $el = jQuery('.next'); | |
if ($el.hasClass('opacity-zero')) { | |
goingFwd = false; | |
} else { | |
$el.click(); | |
} | |
} else { | |
var $el = jQuery('.prev'); | |
if ($el.hasClass('opacity-zero')) { | |
goingFwd = true; | |
} else { | |
$el.click(); | |
} | |
} | |
}, 3500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Copy and paste this script into your console while viewing an album on Dropbox.com to create an auto-playing slideshow