From fbe30a2607932132f59678fe1c65cdf8f316effb Mon Sep 17 00:00:00 2001 From: Kaj Bjorklund Date: Tue, 12 May 2015 19:07:12 +0300 Subject: [PATCH] Add offline support --- build/compile.sh | 2 +- chess.appcache | 9 +++++++++ chess.html | 2 +- src/chess.appcache | 9 +++++++++ src/chess.html | 2 +- 5 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 chess.appcache create mode 100644 src/chess.appcache diff --git a/build/compile.sh b/build/compile.sh index e9369fa..76bc054 100644 --- a/build/compile.sh +++ b/build/compile.sh @@ -17,4 +17,4 @@ java -jar "$COMPILER_JAR" \ cp ../src/chess.css .. cp ../src/chess.ico .. sed "s/chess\.include\.js/chess.min.js/" ../src/chess.html > ../chess.html - +sed "s/chess\.include\.js/chess.min.js/" ../src/chess.appcache > ../chess.appcache diff --git a/chess.appcache b/chess.appcache new file mode 100644 index 0000000..37693b9 --- /dev/null +++ b/chess.appcache @@ -0,0 +1,9 @@ +CACHE MANIFEST +CACHE: +chess.html +chess.css +chess.ico +chess.min.js + +NETWORK: +* diff --git a/chess.html b/chess.html index e1eabcc..893021e 100644 --- a/chess.html +++ b/chess.html @@ -1,5 +1,5 @@ - + diff --git a/src/chess.appcache b/src/chess.appcache new file mode 100644 index 0000000..b28987d --- /dev/null +++ b/src/chess.appcache @@ -0,0 +1,9 @@ +CACHE MANIFEST +CACHE: +chess.html +chess.css +chess.ico +chess.include.js + +NETWORK: +* diff --git a/src/chess.html b/src/chess.html index 9909952..cb464d0 100644 --- a/src/chess.html +++ b/src/chess.html @@ -1,5 +1,5 @@ - +