Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding index file

  • Loading branch information...
commit f3b08df80b8977524de2f80be7c8670b6554cdef 1 parent 98b0c87
@moschel moschel authored
Showing with 51 additions and 0 deletions.
  1. +51 −0 index.html
View
51 index.html
@@ -0,0 +1,51 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html lang="en">
+ <head>
+ <title>todo</title>
+ </head>
+ <body>
+ <div id='todos'>
+ <h1>Todos</h1>
+ <input type='text' class='create'/>
+ <ul id='list'></ul>
+ <div id='todo-stats'>
+
+ </div>
+ </div>
+
+ <script type='text/ejs' id='todosEJS'>
+ <% for(var i =0; i < this.length ; i++){ %>
+ <li <%= this[i]%>>
+ <%= $.View('todoEJS',this[i] ) %>
+ </li>
+ <% } %>
+ </script>
+ <script type='text/ejs' id='todoEJS'>
+ <input type='checkbox' name='complete'
+ <%= this.complete ? "checked" : "" %>>
+ <span class=''><%= (this.text || "empty todo ...")%></span>
+ <span class='destroy'></span>
+ </script>
+ <script type='text/ejs' id='statsEJS'>
+ <% if (total) { %>
+ <span class="todo-count">
+ <span class="number"><%= remaining %></span>
+ <span class="word"><%= remaining == 1 ? 'item' : 'items' %></span> left.
+ </span>
+ <% } %>
+ <% if (completed) { %>
+ <span class="todo-clear">
+ <a href="#">
+ Clear <span class="number-done"><%= completed %></span>
+ completed <span class="word-done"><%= completed == 1 ? 'item' : 'items' %></span>
+ </a>
+ </span>
+ <% } %>
+
+ </script>
+ <script type='text/javascript'
+ src='../steal/steal.js?todo/todo,development'>
+ </script>
+ </body>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.