Print This Post Print This Post

The Twilight Fortune Telling Widget (And How to Make Your Own for Any Book)

Joseph Wilk | Technology | Tuesday, July 29th, 2008

As everyone knows, Breaking Dawn will be released August 2nd. And libraries across the country will be partying until dawn. On the ya-yaac list, Dawn McMillan and the teens at the Boone County Public Library had the great idea to create Twilight Saga fortunes, based on quotes from the three books so far.

When I was a teen, I loved coding. Though it’s been over 10 years since learning Javascript and coding much of anything, I was able to use a combination of W3 Schools, Tizag Tutorials, and a hint Google searching to whip up a rudimentary widget that translates their great work into an online fortune teller.

If you want to add it to your site, simply insert the following code wherever you’d like the widget to go (to see it in action, you can take a look at the Carnegie Library of Pittsburgh’s Teen blog):

<script language=”JavaScript” src=”http://www.josephjwilk.com/twilightfortune.js”></script>

I made the script so that it will be easy for you to adapt it into a fortune teller for any book. If you download and edit the file in any text editor, you’ll find comments throughout to guide you on your way. If you’re a more advanced coding wizard, you can use this as a quick template for your own awesome designs.

Then all you need is to upload the necessary files to your library’s webspace and adapt the code above to put it on the Web.

Joseph Wilk
Carnegie Library of Pittsburgh – Teen

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

4 Comments

Leave a comment

RSS feed for comments on this post.