From 8bda8899e13d5eba1a550be686b69b9ad3f0f3c5 Mon Sep 17 00:00:00 2001 From: Lucas Garron Date: Tue, 20 Dec 2011 15:14:26 -0800 Subject: [PATCH 1/2] Offline caching support. --- .htaccess | 1 + cache.manifest | 11 ++++ offline.html | 134 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 146 insertions(+) create mode 100644 .htaccess create mode 100644 cache.manifest create mode 100644 offline.html diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..2622705 --- /dev/null +++ b/.htaccess @@ -0,0 +1 @@ +AddType text/cache-manifest .manifest \ No newline at end of file diff --git a/cache.manifest b/cache.manifest new file mode 100644 index 0000000..62ca5c9 --- /dev/null +++ b/cache.manifest @@ -0,0 +1,11 @@ +CACHE MANIFEST +# Revision 13 +offline.html +jquery-1.6.min.js +offline_storage_example.png +style.css +style0.css +style1.css +scramble_333_edit.js +scramble_sq1.js +./ \ No newline at end of file diff --git a/offline.html b/offline.html new file mode 100644 index 0000000..7799244 --- /dev/null +++ b/offline.html @@ -0,0 +1,134 @@ + + + +qqtimer.net offline support + + + + + + + + + + +
+

+ qqtimer.netOffline Access +

+
+ +
+ +
+ +
+ +
Getting ready to cache...
+
+ +

Instructions

+ +
    +
  1. If your browser asks you whether store offline data, + allow it. +
      +
    • Firefox will normally ask (see example), Google + Chrome will normally store it without asking.
    • +
  2. +
  3. Wait for the indicator above to turn green. +
  4. Visit www.qqtimer.net again once you're + offline. +
      +
    • Note: qqtimer.net won't work; the www is needed.
    • +
  5. +
+ +

Example (Firefox)

+
+ Offline storage dialog example in Firefox. +
+ +
+
+ + + \ No newline at end of file From fb12d8a425bf76f6289058a1432697b14170bdeb Mon Sep 17 00:00:00 2001 From: Lucas Garron Date: Tue, 20 Dec 2011 15:19:11 -0800 Subject: [PATCH 2/2] Page refresh on cache update. --- index.htm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.htm b/index.htm index 2e84fc5..bb5e51b 100644 --- a/index.htm +++ b/index.htm @@ -8,6 +8,13 @@