Arguably the most useful library for your website! Starts a screensaver after timeout
milliseconds of inactivity on your site.
<script src="/path/to/screensaver.js" timeout="180000" message="Giuseppe Gurgone"></script>
timeout
is optional. Its default value is180000
.message
is optional. Its default value iswindow.location.hostname
.
Share your screensaver screenshots on Twitter with the hashtag #screensaverjs
and I'll RT ❤️