Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 38da43a566
Fetching contributors…

Cannot retrieve contributors at this time

file 60 lines (52 sloc) 2.363 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

<div class="screens">


    <div class="xgoals">
        <div class="head">
            <div class="value gold current" id="gold-in-goal-sceen"></div>
            <h1><%= data.storyTitle %></h1>
            <button class="cancel"></button>
        </div>
        <div class="finished">
            <div class="bubble"><%= data.finishedText %></div>
            <h1>Congratulations</h1>
            <div class="details">
                <h2>Reward</h2>
                <% for( var i in data.rewards ){ var _reward = data.rewards[i] %>
                <div class="<%= _reward.type %>"><%= _reward.amount %></div>
                <% } %>
            </div>
            <button class="button collect-goal">Collect</button>
        </div>
        <hr>
<div class="subgoals">
        <ul class="subgoal-list">
<% for( var i in data.subgoals ){ var _subgoal = data.subgoals[i] %>

<li class="subgoal" id="subgoal-<%= _subgoal.subgoalID %>">
<div class="thumbnail">
<img src="<%= _subgoal.imageSrc %>">
<figure><span class="have"><%= _subgoal.have %></span>/<%= _subgoal.amount %></figure>
</div>
<div class="description">
<h5><%= _subgoal.subgoalText %></h5>
<p><%= _subgoal.subgoalHint %></p>
                        <% if(_subgoal.rewards) { %>
<div class="reward">
                                <div class="details">
                                    Reward: <% for( var i in _subgoal.rewards ){ var _reward = _subgoal.rewards[i] %>
                                    <div class="<%= _reward.type %>"><%= _reward.amount %></div>
                                <% } %>
                                </div>
                                <button class="button">Touch to Collect <% for( var i in _subgoal.rewards ){ var _reward = _subgoal.rewards[i] %>
                                    <div class="<%= _reward.type %>"><%= _reward.amount %></div>
                                <% } %></button>
</div>
                        <% } else { %>
                        <div class="reward no-rewards"></div>
                        <% } %>
</div>
</li>

            <% } %>
        </ul>
</div>
        <hr>
    </div>



</div>
Something went wrong with that request. Please try again.