Created
August 29, 2013 04:12
-
-
Save eimg/6374203 to your computer and use it in GitHub Desktop.
todo.html from eimg/bb-todo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Backbone Todo</title> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<section id="app"> | |
<header> | |
<h1>Tasks</h1> | |
<input id="new" placeholder="Your task"> | |
</header> | |
<section id="main"> | |
<ul id="list"></ul> | |
</section> | |
</section> | |
<script type="text/template" id="item-template"> | |
<div class="view"> | |
<input type="checkbox" class='toggle' <%= done ? 'checked' : '' %>> | |
<label><%- title %></label> | |
<button class='destory'>×</button> | |
</div> | |
</script> | |
<script src="jquery.js"></script> | |
<script src="underscore.js"></script> | |
<script src="backbone.js"></script> | |
<script src="app.js"></script> | |
<script> | |
$(function() { | |
new app.AppView(); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment