The Prologue Bookmarklet

A little javascript diddy I wrote last night, shared for my English speaking Orthodox Christian friends, a bookmarklet for today’s reading from The Prologue from Ohrid.

The Serbian Diocese of Western America has hosted the Prologue online for some time, but the menu was not very friendly, particularly for a quick read on mobile devices, so I whipped up a quick javascript to connect to do today’s page.

Here’s the code to paste into the bookmarklet:
javascript: var d = new Date(); day = d.getDate(); longdate = d.toLocaleDateString(); a = longdate.split(' '); month = a[1]; document.location="http://www.westsrbdio.org/prolog/prolog.cgi?day=" + day + "&month=" + month;

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s