1-
2- <!DOCTYPE html>
3- < html lang ="en ">
4-
5- < head >
6- < meta charset ="utf-8 ">
7- < title > iCat.js Todos</ title >
8- < link rel ="stylesheet " href ="todos.css "/>
9- < script src ="http://assets.3gtest .gionee.com/sys/icat/1.1.5/icat.source.js "> </ script >
10- < script src ="main.source.js "> </ script >
11- </ head >
12-
13- < body data-pagerole ="body " id ="todo ">
14-
15- < div id ="todoapp ">
16-
17- < header >
18- < h1 > Todos</ h1 >
19- < input id ="new-todo " type ="text " placeholder ="What needs to be done? ">
20- </ header >
21-
22- < section id ="main ">
23- < input id ="toggle-all " type ="checkbox ">
24- < label for ="toggle-all "> Mark all as complete</ label >
25- < ul id ="todo-list "> </ ul >
26- </ section >
27-
28- < footer >
29- < a class ="clear-completed "> Clear completed</ a >
30- < div id ="todo-count "> </ div >
31- </ footer >
32-
33- </ div >
34-
35- < div id ="instructions ">
36- Double-click to edit a todo.
37- </ div >
38-
39- < div id ="credits ">
40- Updated by: < a href ="http://weibo.com/jndream "> valleykid(Charlie Wang)</ a > .
41- < br />
42- Original version: < a href ="http://localtodos.com/ "> Backbone Todo</ a > .
43- </ div >
44-
45- <!-- Templates -->
46- < script type ="text/template " id ="item-template ">
47- < li data-repeatid = "<%=rkey%>" >
48- < div class = "view" >
49- < input class = "toggle" type = "checkbox" < %= ( done ? 'checked = "checked" ' : '') % > / >
50- < label > < %= title % > </ label >
51- < a class = "destroy" data-repeatid = "<%=rkey%>" > </ a >
52- </ div >
53- < input class = "edit" type = "text" value = "<%= title %>" data-repeatid = "<%=rkey%>" />
54- </ li >
55- </ script >
56-
57- < script type ="text/template " id ="stats-template ">
58- < % if ( done ) { % >
59- < a class = "clear-completed" > Clear < %= done % > completed < %= done = = 1 ? 'item' : 'items' % > </a >
60- < % } % >
61- < div class = "todo-count" > < b > < %= remaining % > </ b > < %= remaining = = 1 ? 'item ' : 'items ' % > left</ div >
62- </ script >
63-
64- </ body >
1+
2+ <!DOCTYPE html>
3+ < html lang ="en ">
4+
5+ < head >
6+ < meta charset ="utf-8 ">
7+ < title > iCat.js Todos</ title >
8+ < link rel ="stylesheet " href ="todos.css "/>
9+ < script src ="http://dev.assets .gionee.com/sys/icat/1.1.5/icat.source.js "> </ script >
10+ < script src ="main.source.js "> </ script >
11+ </ head >
12+
13+ < body data-pagerole ="body " id ="todo ">
14+
15+ < div id ="todoapp ">
16+
17+ < header >
18+ < h1 > Todos</ h1 >
19+ < input id ="new-todo " type ="text " placeholder ="What needs to be done? ">
20+ </ header >
21+
22+ < section id ="main ">
23+ < input id ="toggle-all " type ="checkbox ">
24+ < label for ="toggle-all "> Mark all as complete</ label >
25+ < ul id ="todo-list "> </ ul >
26+ </ section >
27+
28+ < footer >
29+ < a class ="clear-completed "> Clear completed</ a >
30+ < div id ="todo-count "> </ div >
31+ </ footer >
32+
33+ </ div >
34+
35+ < div id ="instructions ">
36+ Double-click to edit a todo.
37+ </ div >
38+
39+ < div id ="credits ">
40+ Updated by: < a href ="http://weibo.com/jndream "> valleykid(Charlie Wang)</ a > .
41+ < br />
42+ Original version: < a href ="http://localtodos.com/ "> Backbone Todo</ a > .
43+ </ div >
44+
45+ <!-- Templates -->
46+ < script type ="text/template " id ="item-template ">
47+ < li data-repeatid = "<%=rkey%>" >
48+ < div class = "view" >
49+ < input class = "toggle" type = "checkbox" < %= ( done ? 'checked = "checked" ' : '') % > / >
50+ < label > < %= title % > </ label >
51+ < a class = "destroy" data-repeatid = "<%=rkey%>" > </ a >
52+ </ div >
53+ < input class = "edit" type = "text" value = "<%= title %>" data-repeatid = "<%=rkey%>" />
54+ </ li >
55+ </ script >
56+
57+ < script type ="text/template " id ="stats-template ">
58+ < % if ( done ) { % >
59+ < a class = "clear-completed" > Clear < %= done % > completed < %= done = = 1 ? 'item' : 'items' % > </a >
60+ < % } % >
61+ < div class = "todo-count" > < b > < %= remaining % > </ b > < %= remaining = = 1 ? 'item ' : 'items ' % > left</ div >
62+ </ script >
63+
64+ </ body >
6565</ html >
0 commit comments