document.body.insertAdjacentElement("afterBegin",a)};(function(){vara=document.createElement("a"),c=document.createElement("p"),b=document.getElementById("info");if(b)a.href="https://github.com/tastejs/todomvc/tree/gh-pages"+(0<location.hostname.indexOf("github.io")?location.pathname.replace(/todomvc\//,""):location.pathname),a.appendChild(document.createTextNode("Check out the source")),c.appendChild(a),b.appendChild(c)})();if("tastejs.github.io"===location.hostname)location.href=location.href.replace("tastejs.github.io/todomvc",
(function(a,b){if(!location.host)returnconsole.info("Miss the info bar? Run TodoMVC from a server to avoid a cross-origin error.");varc=newXMLHttpRequest;c.open("GET",j()+a,!0);c.send();c.onload=function(){200===c.status&&b&&b(c.responseText)}})("learn.json",i)})();/*
{"class":"edit",type:"text",value:function(a){returna.title},onblur:function(a){returntodos.actions.edit_blur(a.id)},onkeypress:function(a){returntodos.actions.edit_keypress(a.id)}}]]]);vartodos=todos||{};todos.views=todos.views||{};todos.views.Tasks=duel(["","",["$if",{test:function(a){returna.tasks.length}},["section",{id:"main"},"",["input",{id:"toggle-all",type:"checkbox",checked:function(a){return!a.stats.active},onchange:function(){returntodos.actions.toggle_change}}],"",["label",{"for":"toggle-all"},"Mark all as complete"],"",["ul",{id:"todo-list"},"",["$for",{each:function(a){returna.tasks}},"",["$call",{view:function(){returntodos.views.Task}}]],""]]]]);vartodos=todos||{};todos.views=todos.views||{};todos.views.TodoApp=duel(["section",{id:"todoapp"},"",["header",{id:"header"},"",["h1","todos"],"",["input",{id:"new-todo",placeholder:"What needs to be done?",autofocus:null,onblur:function(){returntodos.actions.add_blur},onkeypress:function(){returntodos.actions.add_keypress}}],""],"",["$call",{view:function(){returntodos.views.Tasks},data:function(a){returna}}],"",["$call",{view:function(){returntodos.views.Stats},data:function(a){returna.stats}}]]);vartodos=todos||{};
{"class":"edit",type:"text",value:function(a){returna.title},onblur:function(a){returntodos.actions.edit_blur(a.id)},onkeypress:function(a){returntodos.actions.edit_keypress(a.id)}}]]]);vartodos=todos||{};todos.views=todos.views||{};todos.views.Tasks=duel(["","",["$if",{test:function(a){returna.tasks.length}},["section",{id:"main"},"",["input",{id:"toggle-all",type:"checkbox",checked:function(a){return!a.stats.active},onchange:function(){returntodos.actions.toggle_change}}],"",["label",{"for":"toggle-all"},"Mark all as complete"],"",["ul",{id:"todo-list"},"",["$for",{each:function(a){returna.tasks}},"",["$call",{view:function(){returntodos.views.Task}}]],""]]]]);vartodos=todos||{};todos.views=todos.views||{};todos.views.TodoApp=duel(["section",{id:"todoapp"},"",["header",{id:"header"},"",["h1","todos"],"",["input",{id:"new-todo",placeholder:"What needs to be done?",autofocus:null,onblur:function(){returntodos.actions.add_blur},onkeypress:function(){returntodos.actions.add_keypress}}],""],"",["$call",{view:function(){returntodos.views.Tasks},data:function(a){returna}}],"",["$call",{view:function(){returntodos.views.Stats},data:function(a){returna.stats}}]]);vartodos=todos||{};