2012-04-27 02:03:01 +00:00
< Title: >
2012-06-20 22:42:48 +00:00
HabitRPG
2012-07-07 21:45:06 +00:00
< Head: >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" >
2012-09-19 01:37:49 +00:00
< script type = "text/javascript" src = "https://js.stripe.com/v1/" > < / script >
2012-04-27 02:03:01 +00:00
< Header: >
2012-07-25 23:51:05 +00:00
<!-- SEO text, else Google gets strange copy -->
< h2 style = "display:none;" > A habit tracker app which treats your goals like a Role Playing Game. As you accomplish goals, you level up. If you fail your goals, you lose hit points. Lose all your HP and you die.< / h2 >
2012-06-21 00:47:08 +00:00
< ui:connectionAlert >
2012-06-26 13:23:16 +00:00
< div id = "head" >
2012-09-07 21:21:09 +00:00
< div class = 'pull-right' >
2012-09-15 19:06:51 +00:00
{#unless _facebookAuthenticated}
2012-09-16 00:27:50 +00:00
< a href = "/auth/facebook" > < img src = '/img/facebook-login-register.jpeg' alt = "Login / Register With Facebook" / > < / a >
2012-09-15 19:06:51 +00:00
{else}
2012-09-16 00:27:50 +00:00
< div class = "btn-group" >
< button class = "btn btn-small" > {_user.auth.facebook.name}< / button >
< button class = "btn btn-small dropdown-toggle" data-toggle = "dropdown" >
< span class = "caret" > < / span >
< / button >
< ul class = "dropdown-menu" >
< li > < a href = "#settings-modal" data-toggle = "modal" > Settings< / a > < / li >
2012-10-25 01:22:32 +00:00
< li > < a href = "#reset-modal" data-toggle = "modal" > Reset< / a > < / li >
< li > < a href = '/logout' > Logout< / a > < / li >
2012-09-16 00:27:50 +00:00
< / ul >
< / div >
2012-10-25 01:22:32 +00:00
2012-09-19 01:37:49 +00:00
< app:myModal modalId = "settings-modal" header = "Settings" >
< strong > User ID< / strong > < br / >
< small > Copy this ID for use in third party applications.< / small >
< pre class = prettyprint > {_user.id}< / pre > < br / >
< / app:myModal >
2012-10-25 01:22:32 +00:00
< app:myModal modalId = "reset-modal" header = "Reset" >
< p > This resets your entire account - your tasks will be deleted and your character will start over.< / p >
< p > This is highly discouraged because you'll lose historical data, which is useful for graphing your progress over time. However, some people find it useful in the beginning after playing with the app for a while.< / p >
< button data-dismiss = "modal" x-bind = click:reset class = "btn btn-danger btn-large" > Reset< / button >
< / app:myModal >
2012-09-19 01:37:49 +00:00
{/}
2012-07-11 23:27:53 +00:00
< / div >
2012-09-15 19:06:51 +00:00
2012-09-04 19:30:52 +00:00
< div class = 'container-fluid' >
< div class = 'row-fluid' >
< div id = character class = 'span4' >
< table >
< tr >
< td id = "avatar" >
< div class = 'avatar-sprites' >
< img class = 'weapon weapon-{_user.items.weapon}' src = "/img/BrowserQuest/habitrpg_mods/weapon{_user.items.weapon}.png" / >
< img class = 'armor armor-{_user.items.armor}' src = "/img/BrowserQuest/habitrpg_mods/armor{_user.items.armor}.png" / >
< / div >
2012-09-04 20:21:55 +00:00
< div id = "lvl" > < span class = "badge badge-info" > Lvl {_user.stats.lvl}< / span > < / div >
2012-09-04 19:30:52 +00:00
< / td >
< td id = "bars" >
2012-09-04 20:06:10 +00:00
< div class = "progress progress-danger" rel = tooltip data-placement = bottom title = "Health" >
2012-09-04 19:30:52 +00:00
< div class = "bar" style = "width: {percent(_user.stats.hp, 50)}%;" > < / div >
2012-09-04 20:06:10 +00:00
< span class = "progress-text" > < i class = icon-heart > < / i > {round(_user.stats.hp)} / 50< / span >
2012-09-04 19:30:52 +00:00
< / div >
2012-09-04 20:06:10 +00:00
< div class = "progress progress-warning" rel = tooltip data-placement = bottom title = "Experience" >
2012-09-04 19:30:52 +00:00
< div class = "bar" style = "width: {percent(_user.stats.exp,_user._tnl)}%;" > < / div >
< span class = "progress-text" >
{#if _user.history.exp}
2012-09-04 21:10:36 +00:00
< a x-bind = click:toggleChart data-toggle-id = "exp-chart" data-history-path = "_user.history.exp" rel = tooltip title = "Progress" > < i class = icon-signal > < / i > < / a >
2012-09-04 19:30:52 +00:00
{/}
2012-09-04 20:06:10 +00:00
< i class = icon-star > < / i > {round(_user.stats.exp)} / {_user._tnl}
2012-09-04 19:30:52 +00:00
< / span >
< / div >
< / td >
< / tr >
< / table >
2012-09-04 20:36:55 +00:00
< div id = "exp-chart" style = "display:none;" > < / div >
2012-09-04 19:30:52 +00:00
< / div >
< / div >
< / div >
2012-06-26 13:23:16 +00:00
< / div >
2012-06-01 00:02:17 +00:00
2012-06-26 13:24:12 +00:00
< Body: >
< br / >
2012-08-08 13:57:32 +00:00
2012-09-19 01:37:49 +00:00
<!-- Game Over Modal -->
2012-07-09 03:29:54 +00:00
< div style = "{#unless equal(_user.stats.lvl,0)}display:none;{/}" >
2012-09-19 01:37:49 +00:00
< app:myModal noDismiss = true modalId = 'dead-modal' >
2012-09-19 16:30:32 +00:00
< app:userTokens / >
2012-09-19 01:37:49 +00:00
< table >
< tr >
< td > < img src = "/img/BrowserQuest/habitrpg_mods/dead.png" / > < / td >
< td >
< h3 > Game Over< / h3 >
{#if lessThan(_user.balance,0.50)}
2012-09-19 13:48:22 +00:00
< a data-toggle = "modal" data-target = "#stripe-modal" class = "btn btn-danger btn-large" > Buy More Tokens< / a > < span class = 'token-cost' > Not enough tokens< / span >
2012-09-19 01:37:49 +00:00
{else}
< p >
2012-09-19 13:48:22 +00:00
< a x-bind = click:revive class = "btn btn-danger btn-large" > Continue< / a > < a class = 'token-cost' > 2 Tokens< / a >
2012-09-19 01:37:49 +00:00
< / p >
{/}
< / td >
< / tr >
< / table >
< / app:myModal >
2012-07-09 03:29:54 +00:00
< / div >
2012-07-30 21:26:06 +00:00
< div id = wrap class = container-fluid >
< div id = main class = row-fluid >
2012-06-26 13:24:12 +00:00
<!-- would rather have one component: <app:taskList>, which handles taskList, task, and newTask. However,
can't pass references as paramters. so < app:taskList newModel = {_newHabit} list = {_habitList} > doesn't work
and have to pass those in via {{{content}}} instead -->
2012-07-07 17:58:56 +00:00
<!-- helpTitle & helpContent moved to tour -->
< app:taskColumn title = "Habits" >
2012-06-26 16:01:57 +00:00
< ul class = 'habits' > {#each _habitList as :task}< app:task / > {/}< / ul >
2012-09-19 01:37:49 +00:00
< app:newTask type = habit > < input value = {_newHabit} type = "text" name = new-task placeholder = "New Habit" / > < / app:newTask >
2012-07-07 17:08:36 +00:00
< / app:taskColumn >
2012-06-26 13:24:12 +00:00
2012-07-07 17:58:56 +00:00
< app:taskColumn title = "Daily" >
2012-07-07 04:07:30 +00:00
< ul class = 'dailys' > {#each _dailyList as :task}< app:task / > {/}< / ul >
2012-09-19 01:37:49 +00:00
< app:newTask type = daily > < input value = {_newDaily} type = "text" name = new-task placeholder = "New Daily" / > < / app:newTask >
2012-07-07 17:08:36 +00:00
< / app:taskColumn >
2012-06-26 13:24:12 +00:00
2012-07-07 17:58:56 +00:00
< app:taskColumn title = "Todos" type = "todo" >
2012-06-26 14:22:01 +00:00
< div class = "tabbable" > <!-- Only required for left/right tabs -->
2012-07-18 17:38:30 +00:00
< ul class = "nav nav-pills" >
2012-06-26 14:22:01 +00:00
< li class = "active" > < a href = "#tab1" data-toggle = "tab" > Remaining< / a > < / li >
< li > < a href = "#tab2" data-toggle = "tab" > Complete< / a > < / li >
< / ul >
< div class = "tab-content" >
< div class = "tab-pane active" id = "tab1" >
2012-06-27 13:37:36 +00:00
< ul class = 'todos' >
{#each _todoList as :task}< app:task / > {/}
< / ul >
2012-09-19 01:37:49 +00:00
< app:newTask type = todo > < input value = {_newTodo} type = "text" name = new-task placeholder = "New Todo" / > < / app:newTask >
2012-06-26 14:22:01 +00:00
< / div >
< div class = "tab-pane" id = "tab2" >
2012-06-27 13:37:36 +00:00
< ul class = 'completeds' >
2012-07-27 23:38:28 +00:00
{#each _completedList as :task}< app:task / > {/}
2012-06-27 13:37:36 +00:00
< / ul >
2012-07-28 04:01:58 +00:00
< a x-bind = click:clearCompleted > Clear Completed< / a >
2012-06-26 14:22:01 +00:00
< / div >
< / div >
< / div >
2012-06-29 14:16:02 +00:00
{#if _user.history.todos}
2012-09-04 21:10:36 +00:00
< a x-bind = click:toggleChart data-toggle-id = "todos-chart" data-history-path = "_user.history.todos" rel = tooltip title = "Progress" > < i class = icon-signal > < / i > < / a >
2012-06-29 14:16:02 +00:00
< div id = "todos-chart" style = "display:none;" > < / div >
{/}
2012-07-07 17:08:36 +00:00
< / app:taskColumn >
2012-06-26 13:24:12 +00:00
2012-07-07 17:58:56 +00:00
< app:taskColumn title = "Rewards" type = "reward" >
2012-07-08 20:59:07 +00:00
< div id = "money" > {gold(_user.stats.money)} < img src = '/img/coin_single_gold.png' / > {silver(_user.stats.money)} < img src = '/img/coin_single_silver.png' / > < / div >
2012-07-08 02:43:49 +00:00
< ul class = 'rewards' >
{#each _rewardList as :task}< app:task / > {/}
< / ul >
2012-07-08 21:59:50 +00:00
{#if _user.items.itemsEnabled}
< ul class = 'items' >
2012-07-09 01:20:30 +00:00
{#with _items.armor as :item}< app:item / > {/}
{#with _items.weapon as :item}< app:item / > {/}
{#with _items.potion as :item}< app:item / > {/}
2012-09-06 19:33:06 +00:00
{#with _items.reroll as :item}< app:item reroll = true/ > {/}
2012-07-08 21:59:50 +00:00
< / ul >
{/}
2012-09-19 01:37:49 +00:00
< app:newTask type = reward > < input value = {_newReward} type = "text" name = new-task placeholder = "New Reward" / > < / app:newTask >
2012-07-07 17:08:36 +00:00
< / app:taskColumn >
2012-09-19 01:37:49 +00:00
<!-- Re - Roll modal -->
< app:myModal modalId = 'reroll-modal' header = "Reset Your Tasks" >
2012-09-19 16:30:32 +00:00
< app:userTokens / >
2012-09-19 01:37:49 +00:00
< p > Highly discouraged because red tasks provide good incentive to improve (< a target = "_blank" href = "https://github.com/lefnire/habitrpg#all-my-tasks-are-red-im-dying-too-fast" > read more< / a > ). However, this becomes necessary after long bouts of bad habits.< / p >
{#if lessThan(_user.balance,1)}
2012-09-19 13:48:22 +00:00
< a data-toggle = "modal" data-target = "#stripe-modal" class = "btn btn-danger btn-large" > Buy More Tokens< / a > < span class = 'token-cost' > Not enough tokens< / span >
2012-09-19 01:37:49 +00:00
{else}
2012-09-19 13:48:22 +00:00
< button data-dismiss = "modal" x-bind = click:buyReroll class = "btn btn-danger btn-large" > Re-Roll< / button > < span class = 'token-cost' > 4 Tokens< / span >
2012-09-19 01:37:49 +00:00
{/}
< / app:myModal >
2012-06-26 13:24:12 +00:00
< / div >
< / div >
2012-09-19 01:37:49 +00:00
<!-- Stripe Modal -->
2012-09-19 01:51:29 +00:00
< app:myModal modalId = "stripe-modal" header = 'Buy More Tokens' >
2012-09-19 01:37:49 +00:00
< div class = 'payment-errors' > < / div >
<!-- Stripe form from https://stripe.com/docs/tutorials/forms -->
< form action = "/" method = "POST" id = "payment-form" x-bind = submit:submitPayment >
< div class = "alert alert-info pull-right" > < h2 > $5< / h2 > < / div >
< div class = "form-row" >
< label > Card Number< / label >
< input type = "text" size = "20" autocomplete = "off" class = "card-number" / >
< / div >
< div class = "form-row" >
< label > CVC< / label >
< input type = "text" size = "4" autocomplete = "off" class = "card-cvc" / >
< / div >
< div class = "form-row" >
< label > Expiration (MM/YYYY)< / label >
< input type = "text" size = "2" class = "card-expiry-month" / >
< span > / < / span >
< input type = "text" size = "4" class = "card-expiry-year" / >
< / div >
< button type = "submit" class = "submit-button" > Submit Payment< / button >
< / form >
< / app:myModal >
<!-- Footer -->
2012-09-03 03:42:48 +00:00
< footer class = footer >
< div class = container >
2012-07-31 16:59:42 +00:00
{#unless _mobileDevice}
2012-09-04 17:46:27 +00:00
< div class = 'pull-right' >
2012-09-03 03:42:48 +00:00
< table >
< tr >
< td >
<!-- Github -->
2012-10-12 12:05:00 +00:00
< iframe src = "/github-btns/github-btn.html?user=lefnire&repo=habitrpg&type=watch&count=true"
allowtransparency="true" frameborder="0" scrolling="0" width="85px" height="20px">< / iframe >
2012-10-11 21:31:20 +00:00
2012-09-03 03:42:48 +00:00
<!-- Gittip -->
2012-09-15 19:15:59 +00:00
< iframe style = "border: 0; margin: 0; padding: 0;" src = "https://www.gittip.com/lefnire/widget.html" width = "48pt" height = "20pt" > < / iframe >
2012-09-03 03:42:48 +00:00
<!-- AddThis Button BEGIN -->
< / td >
< td >
< div class = "addthis_toolbox addthis_default_style "
addthis:url="http://habitrpg.com"
addthis:title="HabitRPG: Role Playing Game for Self Improvement">
< a class = "addthis_button_facebook_like" fb:like:layout = "button_count" > < / a >
2012-09-03 04:10:54 +00:00
< a class = "addthis_button_tweet" tw:via = "lefnire" > < / a >
2012-09-03 03:42:48 +00:00
< / div >
<!-- AddThis Button END -->
<!-- <a href="https://twitter.com/share" class="twitter - share - button" data - via="lefnire">Tweet</a> -->
< / td >
< / tr >
< / table >
2012-08-08 13:57:32 +00:00
< / div >
2012-07-31 16:59:42 +00:00
{/}
2012-09-04 17:46:27 +00:00
< div >
< ul >
2012-09-15 19:15:59 +00:00
< li > Copyright © 2012 OCDevel LLC< / li >
2012-09-04 17:46:27 +00:00
< li > < a target = "_blank" href = "https://github.com/lefnire/habitrpg#habitrpg" > About< / a > < / li >
< li > < a href = "/privacy" > Privacy< / a > < / li >
< li > < a href = "/terms" > Terms< / a > < / li >
< li > < a target = "_blank" href = "http://ocdevel.com/contact" > Contact< / a > < / li >
< / ul >
< / div >
2012-09-03 03:42:48 +00:00
< / div >
2012-07-30 21:26:06 +00:00
< / footer >
2012-07-07 17:58:56 +00:00
2012-09-19 01:37:49 +00:00
< myModal: nonvoid >
{{{#if noDismiss}}}< div data-action = "backdrop" class = "modal-backdrop" > < / div > {{{/}}}
< div class = "modal {{{#unless noDismiss}}}hide{{{/}}}" id = {{{modalId}}} role = "dialog" >
{{{#if header}}}
< div class = "modal-header" >
{{{#unless noDismiss}}}< button type = "button" class = "close" data-dismiss = "modal" > × < / button > {{{/}}}
< h3 > {{{unescaped header}}}< / h3 >
< / div >
{{{/}}}
< div class = "modal-body" > {{{content}}}< / div >
< / div >
2012-09-19 16:30:32 +00:00
< userTokens: >
< div class = "pull-right" >
< div class = "input-append" >
< span class = "uneditable-input" style = "width:auto;" > {tokens(_user.balance)}< / span >
< span class = "add-on" > Tokens< / span >
< / div >
< / div >
<!-- <span class="well pull - right">Tokens: {tokens(_user.balance)}</span> -->
2012-09-19 01:37:49 +00:00
2012-07-07 17:08:36 +00:00
< taskColumn: nonvoid >
< div class = "span3 well {{{type}}}s" >
2012-07-07 17:58:56 +00:00
<!-- removing for now, help - info in the tour instead -->
<!-- <span class="help - icon" rel="popover" data - placement="bottom" data - original - title="{{{helpTitle}}}" data - content="{{{helpContent}}}"><i class="icon - question - sign"></i></span> -->
2012-07-07 17:08:36 +00:00
< h1 > {{{title}}}< / h1 >
{{{content}}}
< / div >
2012-06-26 13:24:12 +00:00
2012-06-26 14:22:01 +00:00
< newTask: nonvoid >
2012-09-19 01:37:49 +00:00
< form class = "form-inline" id = new-{{{type}}} data-task-type = {{{type}}} x-bind = submit:addTask >
2012-06-26 14:22:01 +00:00
{{{content}}}
2012-06-26 12:56:57 +00:00
< input class = "btn" type = submit value = Add >
2012-07-08 02:43:49 +00:00
< / form >
2012-06-10 00:15:33 +00:00
< task: >
2012-10-11 15:07:16 +00:00
< li data-id = {{:task.id}} class = "task {taskClasses(:task.type, :task.completed, :task.value, :task.repeat)}" >
2012-06-27 14:54:04 +00:00
< pre >
2012-06-29 02:32:19 +00:00
< div class = "task-meta-controls" >
2012-07-07 17:58:56 +00:00
2012-06-29 02:32:19 +00:00
< div class = "hover-show" >
2012-09-04 21:10:36 +00:00
< a x-bind = click:toggleTaskEdit data-hide-id = "{{:task.id}}-chart" data-toggle-id = "{{:task.id}}-edit" rel = tooltip title = "Edit" > < i class = "icon-pencil" > < / i > < / a >
< a x-bind = click:del rel = tooltip title = "Delete" > < i class = "icon-trash" > < / i > < / a >
2012-07-07 02:46:22 +00:00
{#if :task.history}
2012-09-04 21:10:36 +00:00
< a x-bind = click:toggleChart data-toggle-id = "{{:task.id}}-chart" data-hide-id = "{{:task.id}}-edit" data-history-path = "_user.tasks.{{:task.id}}.history" rel = tooltip title = "Progress" >
2012-07-07 02:46:22 +00:00
< i class = "icon-signal" > < / i >
< / a >
{/}
2012-06-29 02:32:19 +00:00
< / div >
2012-06-26 11:55:09 +00:00
{#if :task.notes}
2012-07-07 17:58:56 +00:00
{#if equal(:task.type,'reward')}
2012-07-09 01:51:25 +00:00
< span rel = "popover" data-placement = "left" data-content = "{:task.notes}" data-original-title = "{:task.text}" class = 'task-notes' > < i class = "icon-comment" > < / i > < / span >
2012-07-07 17:58:56 +00:00
{else}
2012-07-09 01:51:25 +00:00
< span rel = "popover" data-content = "{:task.notes}" data-original-title = "{:task.text}" class = 'task-notes' > < i class = "icon-comment" > < / i > < / span >
2012-07-07 17:58:56 +00:00
{/}
2012-06-26 11:55:09 +00:00
{/}
< / div >
< div class = "task-controls" >
2012-06-10 00:57:35 +00:00
<!-- Habits -->
2012-06-25 00:51:42 +00:00
{#if equal(:task.type, 'habit')}
2012-09-24 02:01:41 +00:00
{#if :task.up}< a data-direction = up x-bind = click:score > < img src = "/img/add.png" / > < / a > {/}
{#if :task.down}< a data-direction = down x-bind = click:score > < img src = "/img/remove.png" / > < / a > {/}
2012-06-10 00:57:35 +00:00
<!-- Rewards -->
2012-06-25 00:51:42 +00:00
{else if equal(:task.type, 'reward')}
2012-09-24 02:01:41 +00:00
< a x-bind = click:score class = "buy-link" data-direction = down > {:task.value}< img src = "/img/coin_single_gold.png" / > < / a >
2012-06-10 00:57:35 +00:00
<!-- Daily & Todos -->
{else}
2012-07-28 00:35:05 +00:00
< input type = checkbox checked = "{:task.completed}" / >
2012-06-10 00:57:35 +00:00
{/}
< / div >
2012-07-09 04:07:39 +00:00
< div class = "task-text" > {:task.text}< / div >
2012-06-26 11:55:09 +00:00
2012-06-29 02:32:19 +00:00
< app:taskMeta / >
2012-06-27 14:54:04 +00:00
< / pre >
2012-06-10 00:15:33 +00:00
< / li >
2012-06-25 00:51:42 +00:00
2012-06-29 02:32:19 +00:00
< taskMeta: >
2012-06-25 01:51:13 +00:00
< div style = "display:none;" id = {{:task.id}}-edit >
2012-06-26 14:42:07 +00:00
< hr / >
2012-07-18 17:21:00 +00:00
< form x-bind = submit:toggleTaskEdit data-toggle-id = "{{:task.id}}-edit" >
2012-06-27 13:48:47 +00:00
< div class = control-group >
< label > Text< / label > < input type = text value = {:task.text} / >
< label > Notes< / label > < textarea rows = 3 > {:task.notes}< / textarea >
2012-06-26 14:41:18 +00:00
< / div >
2012-06-27 13:48:47 +00:00
{#if equal(:task.type, 'habit')}
< div class = "control-group" >
< label class = "checkbox inline" > < input type = checkbox checked = {:task.up} > Up< / label >
< label class = "checkbox inline" > < input type = checkbox checked = {:task.down} > Down< / label >
< / div >
{/}
2012-09-05 02:09:52 +00:00
{#if equal(:task.type, 'daily')}
< label > Repeat< / label >
< div class = "control-group btn-group repeat-days" >
<!-- note, does not use data - toggle="buttons - checkbox" - it would interfere with our own click binding -->
< button type = "button" class = "btn btn-info {#if :task.repeat.su}active{/}" data-day = 'su' x-bind = click:toggleDay > Su< / button >
< button type = "button" class = "btn btn-info {#if :task.repeat.m}active{/}" data-day = 'm' x-bind = click:toggleDay > M< / button >
< button type = "button" class = "btn btn-info {#if :task.repeat.t}active{/}" data-day = 't' x-bind = click:toggleDay > T< / button >
< button type = "button" class = "btn btn-info {#if :task.repeat.w}active{/}" data-day = 'w' x-bind = click:toggleDay > W< / button >
< button type = "button" class = "btn btn-info {#if :task.repeat.th}active{/}" data-day = 'th' x-bind = click:toggleDay > Th< / button >
< button type = "button" class = "btn btn-info {#if :task.repeat.f}active{/}" data-day = 'f' x-bind = click:toggleDay > F< / button >
< button type = "button" class = "btn btn-info {#if :task.repeat.s}active{/}" data-day = 's' x-bind = click:toggleDay > S< / button >
< / div >
{/}
2012-06-27 13:48:47 +00:00
{#if equal(:task.type, 'reward')}
< div class = control-group >
< label > Price
< div class = "input-append" >
< input class = "span2" size = "16" type = "text" value = {:task.value} > < span class = "add-on" > Gold< / span >
< / div >
< / label >
< / div >
{/}
2012-09-04 21:10:36 +00:00
< button type = submit class = "btn" > Save & Close< / button >
2012-06-27 13:48:47 +00:00
< / form >
2012-07-30 21:26:06 +00:00
< / div >
2012-06-08 18:57:27 +00:00
2012-06-29 08:33:09 +00:00
< div style = "display:none;" id = {{:task.id}}-chart > < / div >
2012-06-29 02:32:19 +00:00
2012-07-08 20:59:07 +00:00
< item: >
< li class = "task reward item" >
2012-07-08 02:43:49 +00:00
< pre >
< div class = "task-meta-controls" >
2012-07-09 01:51:25 +00:00
< span rel = "popover" data-placement = "left" data-content = "{:item.notes}" data-original-title = "{:item.text}" class = 'task-notes' > < i class = "icon-comment" > < / i > < / span >
2012-07-08 02:43:49 +00:00
< / div >
< div class = "task-controls" >
2012-09-19 01:37:49 +00:00
{{{#if reroll}}}
< a data-toggle = "modal" data-target = "#reroll-modal" class = "item-buy-link" style = 'cursor:pointer' > < i class = icon-retweet > < / i > < / a >
{{{else}}}
2012-07-09 04:24:37 +00:00
< a x-bind = click:buyItem class = "item-buy-link" data-type = {:item.type} data-value = {:item.value} data-index = {:item.index} > {:item.value}< img src = "/img/coin_single_gold.png" / > < / a >
2012-07-09 01:20:30 +00:00
{{{/}}}
2012-07-08 02:43:49 +00:00
< / div >
2012-07-09 04:24:37 +00:00
< div class = "task-text" > < img src = "/img/BrowserQuest/habitrpg_mods/{:item.icon}.png" / > {:item.text}< / div >
2012-07-08 02:43:49 +00:00
< / pre >
< / li >
2012-09-19 01:37:49 +00:00
2012-07-30 21:32:36 +00:00
<!-- Required scripts, needed by ready() -->
2012-04-27 17:04:44 +00:00
< Script s: >
2012-09-04 21:38:12 +00:00
< script src = /js/jquery.min.js > < / script >
2012-07-31 16:59:42 +00:00
{#unless _mobileDevice}< script src = /js/jquery-ui.min.js > < / script > {/}
2012-07-18 14:04:09 +00:00
< script src = /js/bootstrap.min.js > < / script > <!-- http://twitter.github.com/bootstrap/assets/js/bootstrap.min.js -->
< script src = /js/jquery.cookie.js > < / script > <!-- https://raw.github.com/carhartl/jquery - cookie/master/jquery.cookie.js -->
< script src = /js/bootstrap-tour.js > < / script > <!-- https://raw.github.com/pushly/bootstrap - tour/master/bootstrap - tour.js -->
2012-09-01 17:59:34 +00:00
< script src = /js/jquery.bootstrap-growl.min.js > < / script >
2012-07-19 02:02:22 +00:00
2012-07-30 21:32:36 +00:00
<!-- Scripts not needed right away (google charts) or entirely optional (analytics) -->
< Tail: >
2012-07-31 16:59:42 +00:00
{#unless _mobileDevice}
2012-08-09 16:16:33 +00:00
<!-- Google Charts -->
2012-07-18 13:51:19 +00:00
< script src = /js/google-jsapi.js > < / script > <!-- https://www.google.com/jsapi -->
2012-07-19 02:02:22 +00:00
< script type = "text/javascript" >
2012-06-29 08:33:09 +00:00
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(function(){});
< / script >
2012-08-09 16:16:33 +00:00
<!-- Addthis -->
2012-10-11 21:31:20 +00:00
< script type = "text/javascript" src = "https://s7.addthis.com/js/250/addthis_widget.js#pubid=lefnire" > < / script >
2012-08-09 16:16:33 +00:00
<!-- Twitter -->
<!-- <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter - wjs");</script> -->
2012-07-31 16:59:42 +00:00
{/}
2012-07-19 02:02:22 +00:00
2012-08-09 15:22:29 +00:00
{#if equal(_nodeEnv,'production')}
2012-08-09 16:16:33 +00:00
<!-- Google Analytics -->
2012-07-19 02:02:22 +00:00
< script type = "text/javascript" >
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-33510635-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
< / script >
2012-09-19 16:30:32 +00:00
{/}