Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Default data change, GA + WIP notice

  • Loading branch information...
commit 23f467d6549feab1a3dd521fcda3f39e679a4050 1 parent ac5dfa8
@yyx990803 authored
Showing with 66 additions and 21 deletions.
  1. +21 −0 index.html
  2. +45 −21 js/db.js
View
21 index.html
@@ -9,11 +9,32 @@
</head>
<body>
+ <p id="notice" style="display: none; font-family: Courier, Monospace, serif; font-size: 12px; font-weight: normal; color: #333; position: absolute; left: 25px; bottom: 15px; width: 300px">Work in Progress. If you get lost, add #debug to url then refresh (which forces using default data) and look at the How to Use list.</p>
+
<div id="wrapper">
</div>
<a id="fork-ribbon" href="https://github.com/yyx990803/HTML5-Clear-v2"><img style="position: absolute; top: 0; right: 0; border: 0;" src="img/fork.png" alt="Fork me on GitHub"></a>
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-27321530-1']);
+ _gaq.push(['_setDomainName', 'youyuxi.com']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+ if (!('ontouchstart' in window)) {
+ document.getElementById('notice').style.display = 'block';
+ }
+
+ </script>
+
<script src="js/zepto.js"></script>
<script src="js/main.js"></script>
<script src="js/client.js"></script>
View
66 js/db.js
@@ -78,12 +78,54 @@ C.db = (function () {
items: [
{
- title: 'Things to do',
+ title: 'How to Use',
order: 0,
items: [
{
order: 0,
- title: 'Buy some milk'
+ title: 'Swipe right to complete'
+ },
+ {
+ order: 1,
+ title: 'Swipe left to delete'
+ },
+ {
+ order: 2,
+ title: 'Tap to edit'
+ },
+ {
+ order: 3,
+ title: 'Long tap to reorder'
+ },
+ {
+ order: 4,
+ title: 'Pull down to create new item'
+ },
+ {
+ order: 5,
+ title: 'Or tap in empty space below'
+ },
+ {
+ order: 6,
+ title: 'Pull down more to go back'
+ },
+ {
+ order: 7,
+ title: 'Pull up to clear'
+ },
+ {
+ order: 8,
+ title: 'Pinch is still WIP.'
+ }
+ ]
+ },
+ {
+ title: 'This is a demo',
+ order: 1,
+ items: [
+ {
+ order: 0,
+ title: 'About HTML5'
},
{
order: 1,
@@ -140,30 +182,12 @@ C.db = (function () {
]
},
{
- title: 'This is a demo',
- order: 1,
- items: [
- {
- order: 0,
- title: 'Test'
- },
- {
- order: 1,
- title: 'Test'
- },
- {
- order: 2,
- title: 'Test'
- }
- ]
- },
- {
title: 'By Evan You',
order: 2,
items: [
{
order: 0,
- title: 'Test'
+ title: '@youyuxi'
}
]
},
Please sign in to comment.
Something went wrong with that request. Please try again.