Permalink
Browse files

add iOS app icon and offline appcache

  • Loading branch information...
yyx990803 committed Mar 4, 2013
1 parent b09c82d commit f3d4cc01e0bdef88a90b174969f831c71aa51e3b
Showing with 36 additions and 9 deletions.
  1. +1 −6 TODO.md
  2. BIN apple-touch-icon.png
  3. +2 −0 build.sh
  4. +14 −3 index.html
  5. +19 −0 offline.appcache
View
@@ -1,13 +1,8 @@
Create New Item
-- tap at empty space to create (half done, still need the unfold animation when there's done items)
- pinch apart to create
Navigation
- pinch inwards to close TodoCollection
Compatibility
-- Android keyboard issues
-
-Deployment
-- Homescreen Icons for iOS
-- App Cache Manifest
+- Android keyboard issues
View
Binary file not shown.
View
@@ -12,6 +12,8 @@ mkdir $BASEDIR/deploy/css
cp $BASEDIR/css/style.css $BASEDIR/deploy/css/style.css
cp -R $BASEDIR/img $BASEDIR/deploy/img
cp $BASEDIR/index.html $BASEDIR/deploy/index.html
+cp $BASEDIR/apple-touch-icon.png $BASEDIR/deploy/apple-touch-icon.png
+cp $BASEDIR/offline.appcache $BASEDIR/deploy/offline.appcache
#rewrite index.html for min.js
View
@@ -1,10 +1,11 @@
<!DOCTYPE html>
-<html>
+<html manifest="offline.appcache">
<head>
<title>Clear</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
+ <link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen">
</head>
<body>
@@ -19,8 +20,8 @@
<script type="text/javascript">
var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-27321530-1']);
- _gaq.push(['_setDomainName', 'youyuxi.com']);
+ _gaq.push(['_setAccount', 'UA-38965494-1']);
+ _gaq.push(['_setDomainName', 'clear.evanyou.me']);
_gaq.push(['_trackPageview']);
(function() {
@@ -35,6 +36,16 @@
</script>
+ <script>
+ var appCache = window.applicationCache;
+ if (appCache) {
+ appCache.update();
+ if (appCache.status == window.applicationCache.UPDATEREADY) {
+ appCache.swapCache(); // The fetch was successful, swap in the new cache.
+ }
+ }
+ </script>
+
<script src="js/zepto.js"></script>
<script src="js/main.js"></script>
<script src="js/client.js"></script>
View
@@ -0,0 +1,19 @@
+CACHE MANIFEST
+# 2013-03-04:v3
+
+index.html
+css/style.css
+js/min.js
+img/arrow-small.png
+img/arrow.png
+img/bg.png
+img/check.png
+img/cross.png
+img/drawer.png
+img/fork.png
+
+FALLBACK:
+/ /index.html
+
+NETWORK:
+*

0 comments on commit f3d4cc0

Please sign in to comment.