2012-04-27 02:03:01 +00:00
|
|
|
<Title:>
|
2012-04-27 17:04:44 +00:00
|
|
|
Todos
|
2012-04-27 02:03:01 +00:00
|
|
|
|
|
|
|
|
<Header:>
|
|
|
|
|
<app:alert>
|
|
|
|
|
|
|
|
|
|
<Body:>
|
2012-04-27 17:04:44 +00:00
|
|
|
<div id=overlay></div>
|
2012-05-03 22:05:25 +00:00
|
|
|
<div id=head>
|
|
|
|
|
Money: {_user.money}<br/>
|
|
|
|
|
Exp: {_user.exp}<br/>
|
|
|
|
|
Lvl: {_user.lvl}<br/>
|
|
|
|
|
</div>
|
2012-05-03 01:07:36 +00:00
|
|
|
|
|
|
|
|
<h1>Habits</h1>
|
|
|
|
|
<div id=dragbox-habit></div>
|
2012-05-03 22:05:25 +00:00
|
|
|
<div id=content-habit><ul id=habits>{#each _habitList}<app:habit>{/}</ul></div>
|
2012-05-03 01:07:36 +00:00
|
|
|
<form x-bind=submit:addHabit>
|
2012-05-09 16:26:30 +00:00
|
|
|
<input id=new-habit value={_newHabit}>
|
2012-05-03 01:07:36 +00:00
|
|
|
<input type=submit value=Add>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<h1>Dailies</h1>
|
|
|
|
|
<div id=dragbox-daily></div>
|
2012-05-03 22:05:25 +00:00
|
|
|
<div id=content-daily><ul id=dailys>{#each _dailyList}<app:daily>{/}</ul></div>
|
2012-05-03 01:07:36 +00:00
|
|
|
<form x-bind=submit:addDaily>
|
2012-05-09 16:26:30 +00:00
|
|
|
<input id=new-daily value={_newDaily}>
|
2012-05-03 01:07:36 +00:00
|
|
|
<input type=submit value=Add>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<h1>Todos</h1>
|
|
|
|
|
<div id=dragbox-todo></div>
|
|
|
|
|
<div id=content-todo><ul id=todos>{#each _todoList}<app:todo>{/}</ul></div>
|
|
|
|
|
<form x-bind=submit:addTodo>
|
2012-05-09 16:26:30 +00:00
|
|
|
<input id=new-todo value={_newTodo}>
|
2012-05-03 01:07:36 +00:00
|
|
|
<input type=submit value=Add>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<h1>Rewards</h1>
|
|
|
|
|
<div id=dragbox-reward></div>
|
2012-05-03 22:05:25 +00:00
|
|
|
<div id=content-reward><ul id=rewards>{#each _rewardList}<app:reward>{/}</ul></div>
|
2012-05-03 01:07:36 +00:00
|
|
|
<form x-bind=submit:addReward>
|
2012-05-09 16:26:30 +00:00
|
|
|
<input id=new-reward value={_newReward}>
|
2012-05-03 01:07:36 +00:00
|
|
|
<input type=submit value=Add>
|
2012-04-27 17:04:44 +00:00
|
|
|
</form>
|
|
|
|
|
|
2012-05-03 22:05:25 +00:00
|
|
|
<habit:>
|
|
|
|
|
<li data-id={{id}} class="habit">
|
|
|
|
|
<table width=100%>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class=handle width=0></td>
|
|
|
|
|
<td width=100%>
|
|
|
|
|
<div class=todo>
|
|
|
|
|
<label>+ -<i></i></label>
|
|
|
|
|
<div x-bind=keydown:shortcuts contenteditable>{unescaped .text}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td width=0><button class=delete x-bind=click:del>Delete</button></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<daily:>
|
|
|
|
|
<li data-id={{id}} class="{#if .completed}completed{/}">
|
|
|
|
|
<table width=100%>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class=handle width=0></td>
|
|
|
|
|
<td width=100%>
|
|
|
|
|
<div class=todo>
|
|
|
|
|
<label><input type=checkbox checked={.completed}><i></i></label>
|
|
|
|
|
<div x-bind=keydown:shortcuts contenteditable>{unescaped .text}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td width=0><button class=delete x-bind=click:del>Delete</button></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</li>
|
|
|
|
|
|
2012-04-27 17:04:44 +00:00
|
|
|
<todo:>
|
|
|
|
|
<li data-id={{id}} class="{#if .completed}completed{/}">
|
|
|
|
|
<table width=100%>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class=handle width=0></td>
|
|
|
|
|
<td width=100%>
|
|
|
|
|
<div class=todo>
|
|
|
|
|
<label><input type=checkbox checked={.completed}><i></i></label>
|
|
|
|
|
<div x-bind=keydown:shortcuts contenteditable>{unescaped .text}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td width=0><button class=delete x-bind=click:del>Delete</button></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</li>
|
2012-04-27 02:03:01 +00:00
|
|
|
|
2012-05-03 22:05:25 +00:00
|
|
|
<reward:>
|
|
|
|
|
<li data-id={{id}} class="reward">
|
|
|
|
|
<table width=100%>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class=handle width=0></td>
|
|
|
|
|
<td width=100%>
|
|
|
|
|
<div class=todo>
|
|
|
|
|
<label>${.price}<i></i></label>
|
|
|
|
|
<div x-bind=keydown:shortcuts contenteditable>{unescaped .text}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td width=0><button class=delete x-bind=click:del>Delete</button></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</li>
|
|
|
|
|
|
2012-04-27 02:03:01 +00:00
|
|
|
<alert:>
|
2012-04-27 17:04:44 +00:00
|
|
|
<div id=alert>
|
2012-04-27 02:03:01 +00:00
|
|
|
{#unless connected}
|
|
|
|
|
<p>
|
|
|
|
|
{#if canConnect}
|
2012-04-27 17:04:44 +00:00
|
|
|
Offline {#if _showReconnect}– <a x-bind=click:connect>Reconnect</a>{/}
|
2012-04-27 02:03:01 +00:00
|
|
|
{else}
|
2012-04-27 17:04:44 +00:00
|
|
|
Unable to reconnect – <a x-bind=click:reload>Reload</a>
|
2012-04-27 02:03:01 +00:00
|
|
|
{/}
|
|
|
|
|
</p>
|
|
|
|
|
{/}
|
|
|
|
|
</div>
|
2012-04-27 17:04:44 +00:00
|
|
|
|
|
|
|
|
<Scripts:>
|
|
|
|
|
<script src=https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js></script>
|
|
|
|
|
<script src=https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js></script>
|