Browse Source

Add offline support

master
Kaj Bjorklund 10 years ago
parent
commit
fbe30a2607
  1. 2
      build/compile.sh
  2. 9
      chess.appcache
  3. 2
      chess.html
  4. 9
      src/chess.appcache
  5. 2
      src/chess.html

2
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

9
chess.appcache

@ -0,0 +1,9 @@
CACHE MANIFEST
CACHE:
chess.html
chess.css
chess.ico
chess.min.js
NETWORK:
*

2
chess.html

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" manifest="chess.appcache">
<head>
<meta http-equiv="x-ua-compatible" content="IE=edge">
<meta charset="utf-8">

9
src/chess.appcache

@ -0,0 +1,9 @@
CACHE MANIFEST
CACHE:
chess.html
chess.css
chess.ico
chess.include.js
NETWORK:
*

2
src/chess.html

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" manifest="chess.appcache">
<head>
<meta http-equiv="x-ua-compatible" content="IE=edge">
<meta charset="utf-8">

Loading…
Cancel
Save