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