Browse Source

application cache.

Nathaniel van Diepen 10 years ago
parent
commit
dfa7291863
5 changed files with 32 additions and 4 deletions
  1. 3 1
      .htaccess
  2. 16 0
      bugs.appcache
  3. 6 3
      index.php
  4. 4 0
      js/jquery-ui.min.js
  5. 3 0
      js/jquery.min.js

+ 3 - 1
.htaccess

@@ -20,4 +20,6 @@
     Deny from all
     Satisfy All
 </FilesMatch>
-AddType application/x-web-app-manifest+json .webapp
+AddType application/x-web-app-manifest+json .webapp
+AddType text/cache-manifest .manifest
+AddType text/cache-manifest .appcache

+ 16 - 0
bugs.appcache

@@ -0,0 +1,16 @@
+CACHE MANIFEST
+css/style.css
+css/fonts.css
+img/load.gif
+img/bug.png
+img/bug-invert.png
+js/index.js
+js/handlebars.js
+js/jquery.cookie.js
+js/jquery.history.js
+js/jquery.nicescroll.js
+js/jquery.storage.js
+js/modernizr.js
+js/shortcut.js
+js/jquery.min.js
+js/jquery-ui.min.js

+ 6 - 3
index.php

@@ -58,7 +58,7 @@
 	}
 ?>
 <!doctype html>
-<html>
+<html manifest="bugs.appcache">
 	<head>
 		<meta charset=utf-8>
 		<meta name="viewport" content="width=device-width, user-scalable=false, initial-scale=1, maximum-scale=1.0, user-scalable=0, user-scalable=no">
@@ -92,10 +92,13 @@
 				if(msg != ''){
 					alert("Your browser is unable to support all the features this site needs.\nChecks failed: "+msg);
 				}
+				window.applicationCache.addEventListener('updateready',function(){
+					location.reload();
+				});
 			})(window,Modernizr);
 		</script>
-		<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
-		<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
+		<script src="js/jquery.min.js"></script>
+		<script src="js/jquery-ui.min.js"></script>
 		<script src="js/handlebars.js"></script>
 		<script src="js/jquery.history.js"></script>
 		<script src="js/jquery.storage.js"></script>

File diff suppressed because it is too large
+ 4 - 0
js/jquery-ui.min.js


File diff suppressed because it is too large
+ 3 - 0
js/jquery.min.js


Some files were not shown because too many files changed in this diff