We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'd like the slideshow to run unattended. With the help of https://stackoverflow.com/questions/951021/what-is-the-javascript-version-of-sleep I kludged it in like this in slides.js:
function sleep (ms) { return new Promise(resolve => setTimeout(resolve, ms)); } async function transition(ms) { while(1) { await sleep(ms); console.log('wake up') nextSlide(); } } // initialize (function() { ... transition(2000); })(); }
The text was updated successfully, but these errors were encountered:
Oh, and I also made nextSlide() wraparound from the last slide to the first:
var nextSlide = function() { if (currentSlideNo < slides.length) { currentSlideNo++; } else { currentSlideNo = 1; } updateSlideClasses(true); };
Sorry, something went wrong.
No branches or pull requests
I'd like the slideshow to run unattended. With the help of https://stackoverflow.com/questions/951021/what-is-the-javascript-version-of-sleep I kludged it in like this in slides.js:
The text was updated successfully, but these errors were encountered: