changeset 49:13565a96f005

added cache.manifest, curr issue can be changed via hash as well as query args now (though w/ hash, page needs to be manually reloaded).
author Atul Varma <varmaa@toolness.com>
date Thu, 12 Aug 2010 04:21:13 +0000
parents 446383dc4306
children 0e82abc400f3
files cache.manifest daily-edition.html daily-edition.js
diffstat 3 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cache.manifest	Thu Aug 12 04:21:13 2010 +0000
@@ -0,0 +1,5 @@
+CACHE MANIFEST
+# v2
+daily-edition.css
+jquery.js
+daily-edition.js
--- a/daily-edition.html	Mon Apr 05 11:21:32 2010 +0000
+++ b/daily-edition.html	Thu Aug 12 04:21:13 2010 +0000
@@ -1,4 +1,4 @@
-<html>
+<html manifest="cache.manifest">
 <head>
   <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
   <base target="_blank"/>
--- a/daily-edition.js	Mon Apr 05 11:21:32 2010 +0000
+++ b/daily-edition.js	Thu Aug 12 04:21:13 2010 +0000
@@ -4,6 +4,8 @@
     var jsonFile = 'daily-edition.json';
 
     var matches = location.search.match(/\?issue=([0-9]+)/);
+    if (!matches)
+      matches = location.hash.match(/\#issue=([0-9]+)/);
     if (matches)
       jsonFile = 'issue-' + parseInt(matches[1]) + '.json';