Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c26a189fad
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (28 sloc) 0.961 kb
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script type="text/javascript" src="ICanHaz.min.js"></script>
<script id="todo" type="text/html">
<li>
<input type="checkbox" value="{{action}}" {{#complete}}checked="checked"{{/complete}}/>
<span class="title">{{action}}</span>
</li>
</script>
<script type="text/javascript">
$(function(){
var todos = [
{ action : "Buy milk", complete : false},
{ action : "Brush teeth", complete : true},
{ action : "Finish homework", complete : false},
{ action : "Eat dinner", complete : false}
];
for( i=0 ; i<todos.length ; i=i+1 ){
$("#container").append(ich.todo(todos[i]));
}
});
</script>
</head>
<body>
<ul id="container"></ul>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.