Skip to content
Browse files

Check for updates to manifest

  • Loading branch information...
1 parent ce0a597 commit eaccc21723202a46f7d11e186cdd39d6860e6b2a Todd Foster committed May 23, 2012
Showing with 9 additions and 3 deletions.
  1. +1 −1 cache.manifest
  2. +7 −1 js/script.js
  3. +1 −1 readme.md
View
2 cache.manifest
@@ -1,7 +1,7 @@
CACHE MANIFEST
# Bump this with each release:
-# Serial number 7
+# Serial number 8
css/style.css
js/script.js
View
8 js/script.js
@@ -5,7 +5,7 @@
boidem = {};
boidem.adlessCalc = (function() {
- var version = 0.34;
+ var version = 0.35;
var DEBUG = 0;
var displayRows = 2;
var minCols = 4;
@@ -40,7 +40,13 @@ boidem.adlessCalc = (function() {
{ 'symbol':version, 'class':'grey', 'action':function() { console.log("Version button"); } },
];
+ var onUpdateReady = (function() { window.location.reload(true); });
+
var onDocumentReady = (function() {
+ window.applicationCache.addEventListener('updateready', onUpdateReady);
+ if(window.applicationCache.status === window.applicationCache.UPDATEREADY)
+ onUpdateReady();
+
$('body').prepend('<div id="displayContainer" class="displayContainer"><div id="display" class="display"></div></div>');
$(window).resize(onResize);
View
2 readme.md
@@ -9,13 +9,13 @@ A beautiful solution: web-app's on the home screen! An educational experiment as
Begun 19 May 2012
## TODO
-* Better version indication (dedicated button? info panel?)
* monospace font in display
* replicate ability of calculator to repeat computation by pressing =
* shiny keys
* Add buttons in landscape mode
* memory indicator
* display/clear error conditions
+* Better version indication (dedicated button? info panel?)
* Sync version in app/manifest? (read/parse manifest via js)
* icon
* better perf: hit keys rapidly

0 comments on commit eaccc21

Please sign in to comment.
Something went wrong with that request. Please try again.