11<!DOCTYPE html>
22< html >
33
4- < head >
5- < title > Backbone Demo: Todos</ title >
6- < link href ="todos.css " media ="all " rel ="stylesheet " type ="text/css "/>
7- < script src ="lib/json2.js "> </ script >
8- < script src ="lib/jquery-1.7.1.js "> </ script >
9- < script src ="lib/underscore-1.1.6.js "> </ script >
10- < script src ="lib/backbone-0.5.3.js "> </ script >
11- < script src ="todos.js "> </ script >
12- </ head >
13-
14- < body >
15-
16- <!-- Todo App Interface -->
4+ < head >
5+ < title > Backbone Demo: Todos</ title >
6+ < link href ="todos.css " media ="all " rel ="stylesheet " type ="text/css " />
7+ < script src ="lib/json2.js "> </ script >
8+ < script type ="text/javascript " src ="//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js "> </ script >
9+ < script src ="lib/underscore-1.1.6.js "> </ script >
10+ < script src ="lib/backbone-0.5.3.js "> </ script >
11+ < script src ="todos.js "> </ script >
12+ </ head >
13+
14+ < body >
15+
16+ < div id ="todoapp ">
17+
18+ < div class ="title ">
19+ < h1 > Todos</ h1 >
20+ </ div >
1721
18- < div id =" todoapp ">
22+ < div class =" content ">
1923
20- < div class ="title ">
21- < h1 > Todos</ h1 >
24+ < div id ="create-todo ">
25+ < input id ="new-todo " placeholder ="What needs to be done? " type ="text " />
26+ < span class ="ui-tooltip-top " style ="display: none; "> Press Enter to save this task</ span >
2227 </ div >
2328
24- < div class ="content ">
25-
26- < div id ="create-todo ">
27- < input id ="new-todo " placeholder ="What needs to be done? " type ="text " />
28- < span class ="ui-tooltip-top " style ="display:none; "> Press Enter to save this task</ span >
29- </ div >
30-
31- < div id ="todos ">
32- < ul id ="todo-list "> </ ul >
33- </ div >
34-
35- < div id ="todo-stats "> </ div >
36-
29+ < div id ="todos ">
30+ < ul id ="todo-list "> </ ul >
3731 </ div >
3832
33+ < div id ="todo-stats "> </ div >
34+
3935 </ div >
4036
41- < ul id ="instructions ">
42- < li > Double-click to edit a todo.</ li >
43- </ ul >
37+ </ div >
4438
45- < div id ="credits ">
46- BackboneJS exemple application created by < a href ="http://jgn.me/ "> Jérôme Gravel-Niquet</ a > < br />
47- Spring 3.1 backend created by < a href ="http://twitter.com/sdeleuze "> Sébastien Deleuze</ a >
48- </ div >
39+ < ul id ="instructions ">
40+ < li > Double-click to edit a todo.</ li >
41+ </ ul >
42+
43+ < div id ="credits ">
44+ BackboneJS exemple application created by < a href ="http://jgn.me/ "> Jérôme Gravel-Niquet</ a > < br /> Spring 3.1 backend created by < a
45+ href ="http://twitter.com/sdeleuze "
46+ > Sébastien Deleuze</ a >
47+ </ div >
4948
50- <!-- Templates -->
49+ <!-- Templates -->
5150
52- < script type ="text/template " id ="item-template ">
51+ < script type ="text/template " id ="item-template ">
5352 < div class = "todo <%= done ? 'done' : '' %>" >
5453 < div class = "display" >
5554 < input class = "check" type = "checkbox" < %= done ? 'checked="checked"' : '' % > / >
@@ -62,7 +61,7 @@ <h1>Todos</h1>
6261 < / div >
6362 </ script >
6463
65- < script type ="text/template " id ="stats-template ">
64+ < script type ="text/template " id ="stats-template ">
6665 < % if ( total ) { % >
6766 < span class = "todo-count" >
6867 < span class = "number" > < %= remaining % > </ span >
@@ -79,6 +78,6 @@ <h1>Todos</h1>
7978 < % } % >
8079 </ script >
8180
82- </ body >
81+ </ body >
8382
8483</ html >
0 commit comments