Permalink
Browse files

mod

  • Loading branch information...
1 parent bd43093 commit 197615732b7787b68b665dcb50e2df61d3aaf39e @yyx990803 committed Feb 21, 2012
Showing with 24 additions and 25 deletions.
  1. +1 −1 css/style.css
  2. +1 −1 css/style.less
  3. +22 −23 js/app.js
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -86,7 +86,7 @@ a {
font-size: 18px;
font-weight: bold;
line-height: 58px;
- border-top: 1px solid rgba(255,255,255,.1);
+ border-top: 1px solid rgba(255,255,255,.07);
border-bottom: 1px solid rgba(0,0,0,.1);
position: relative;
}
View
@@ -858,30 +858,7 @@ Home.prototype = {
}
};
-var app = new Home([
- new List('Hello', [
- new Todo('Swipe right to complete'),
- new Todo('Swipe left to delete'),
- new Todo('Tap on text to edit'),
- new Todo('Long tap to change order'),
- new Todo('Drag down to add new'),
- new Todo('Pinch in to go back.')
- ]),
- new List('This is a demo', [
- new Todo('Built with HTML5'),
- new Todo('CSS3'),
- new Todo('and Zepto.js')
- ]),
- new List('by Evan You', [
- new Todo('@youyuxi'),
- new Todo('By the way'),
- new Todo('I\'m looking for a job!'),
- new Todo('youyuxi.com')
- ])
-]);
-
$(function(){
-
//setup scrolling
$(document)
.bind('touchmove', function(e){
@@ -895,6 +872,28 @@ $(function(){
window.globalDrag = false;
});
+ var app = new Home([
+ new List($.os.ios ? 'Hello':'This works better on iOS', [
+ new Todo('Swipe right to complete'),
+ new Todo('Swipe left to delete'),
+ new Todo('Tap on text to edit'),
+ new Todo('Long tap to change order'),
+ new Todo('Drag down to add new'),
+ new Todo('Pinch in to go back.')
+ ]),
+ new List('This is a demo', [
+ new Todo('Built with HTML5'),
+ new Todo('CSS3'),
+ new Todo('and Zepto.js')
+ ]),
+ new List('by Evan You', [
+ new Todo('@youyuxi'),
+ new Todo('By the way'),
+ new Todo('I\'m looking for a job!'),
+ new Todo('youyuxi.com')
+ ])
+ ]);
+
app.render().appendTo('#wrapper');
});

0 comments on commit 1976157

Please sign in to comment.