Created
March 20, 2014 23:32
-
-
Save boertel/9676332 to your computer and use it in GitHub Desktop.
vikings-visit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="points-wrap pt-toggle-challenge-{{ challenge.id }} template-{{ challenge.template.name }}"> | |
| <div class="box panel content external"> | |
| <div class="row"> | |
| <div class="title"> | |
| <div class="column small-9 large-9"> | |
| <h3 class="left">{% widget "text" "title" %}</h3> | |
| </div> | |
| <div class="column small-3 large-3"> | |
| <h3 class="right points-total"><span class="hide-on-success">+</span>{% widget "text" "points" %}</h3> | |
| </div> | |
| </div> | |
| <div class="columns large-2 no-pad small-4 clear" {% if challenge.params.image.full_size %}data-reveal-id="challenge-modal-{{ challenge.id }}"{% endif %}> | |
| {% widget "thumbnail" "image" %} | |
| </div> | |
| <div class="columns large-10 small-8"> | |
| <p>{% widget "text" "description" %}</p> | |
| <a href="{% widget "text" "visit" %}" class="visit hide-on-success" target="_blank" onclick="PT.action.activity.call('challenge-{{ challenge.id }}');" id="tvtag6">Visit</a> | |
| </div> | |
| <div class="columns large-2 challenge-icon text-right"> | |
| <img src="{{ static_url }}images/icons/external@2x.png" alt=""> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| {% if challenge.params.image.full_size %} | |
| <div id="challenge-modal-{{ challenge.id }}" class="reveal-modal large"> | |
| <img src="{{ challenge.params.image.full_size }}"> | |
| <a class="close-reveal-modal"><img src="{{ static_url }}images/close@2x.png"></a> | |
| </div> | |
| {% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var today = new Date(); dateString=[today.getDate(),today.getMonth(),today.getFullYear()].join("-"); | |
| PT.action.activity.register("challenge-{{ challenge.id }}", ["view", {points: {{ challenge.params.points.text }}, action_detail: "You visited a page", ref_id: "challenge-{{ challenge.id }}-" + dateString}], "pt-toggle-challenge-{{ challenge.id }}"); | |
| {% if challenge.params.image.full_size %} | |
| var challengeModalContainer = PT.dom.$("challenge-modal-container"), | |
| modal = PT.dom.$("challenge-modal-{{ challenge.id }}"); | |
| challengeModalContainer.appendChild(modal); | |
| {% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment