Hacker News new | ask | show | jobs
by gourneau 4905 days ago
I really love this! I opened it and just jam on the next key (n).

Use this little snippet to set it to auto-next mode, for a great screensaver. Edit - here is the screensaver https://github.com/gourneau/WebSaver

  setInterval(function(){$("#book_next").click()}, 500)
Watching all of books fly by is wondrous to me because it feels like it is painting some weird version of conscious reality.

Hilary could you please add this bit of code so for auto advancing mode via the query string.

  function getParameterByName(name) {
      var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
      return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
  }

  if (getParameterByName("auto")){
	  setInterval(function(){$("#book_next").click()}, getParameterByName("auto"))
  }
It would work like this, where 500 is the number of milliseconds. http://www.bookbookgoose.com/?auto=500
1 comments

Thanks. I just deployed this update. Have fun!
Hey, there seems to be a bug for slow internet connections, it shows the same image for the next books when the next book image is not loaded.