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
// run 3 loops of 5, to fill with loading boxes | |
for(var i=0;i<3;i++) { | |
for(var j=0;j<5;j++) { | |
$(".news-row:eq("+i+") .news-inner-row").append( | |
render(template)({ | |
title : "", | |
image : "", | |
author : "", | |
source : "loading...", | |
body : [] |
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
// run 3 loops of 5, to fill with loading boxes | |
for(var i=0;i<3;i++) { | |
for(var j=0;j<5;j++) { | |
$(".news-row:eq("+i+") .news-inner-row").append( | |
render(template)({ | |
title : "", | |
image : "", | |
author : "", | |
source : "loading...", | |
body : [] |
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
// run 3 loops of 5, to fill with loading boxes | |
for(var i=0;i<3;i++) { | |
for(var j=0;j<5;j++) { | |
$(".news-row:eq("+i+") .news-inner-row").append( | |
render(template)({ | |
title : "", | |
image : "", | |
author : "", | |
source : "loading...", | |
body : [] |
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
$.post("npr/get/41",function(res) { | |
// loop and place | |
for(i=0;i<res.length;i++) { | |
// remove one of the loading boxes | |
$(".news-row:eq(2) .news-inner-row .loading:first").remove(); | |
// add a good article | |
$(".news-row:eq(2) .news-inner-row").append( | |
render(template)(res[i]) | |
); | |
} |
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
FB.getLoginStatus(function(response) { | |
}, true); |
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
<?=$_includes->loadDocHead()?> | |
<?=$_includes->showHeader()?> | |
<!-- login page --> | |
<div id="pages"> | |
<div id="login" data-role="page" class="page"> | |
<div class="login-header">Link other accounts:</div> | |
<div id="facebook" class="loginButton"> | |
<img src="/img/mobile/facebook-logo.png" class="fb-logo" /> |
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
{{#each_object quiz_questions}} | |
<div class="quiz-question-text">{{key}}. {{value.quiz_question}}</div> | |
<div class="quiz-question-choice"> | |
{{#each_object value.quiz_question_answers}} | |
<label class="quiz-question-label"> | |
<input type="radio" name="quiz-question-id-{{key}}" class="quiz-question-radio" /> | |
{{value}} | |
</label> | |
{{/each_object}} | |
</div> |
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
{{#each quiz_questions}} | |
<div class="quiz-question-text">{{@id}}. {{value.quiz_question}}</div> | |
<div class="quiz-question-choice"> | |
{{#each value.quiz_question_answers}} | |
<label class="quiz-question-label"> | |
<input type="radio" name="quiz-question-id-{{../@key}}" class="quiz-question-radio" /> | |
{{value}} | |
</label> | |
{{/each}} | |
</div> |
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
@import 'lib/nib' | |
divide(a, b) | |
a / b | |
body | |
padding:80px | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif | |
font-size: 13px | |
line-height: 18px |
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
// Root Version SC.05.27.12 | |
/////////////////////////////////////////////////////////////////////////////// | |
// RootJS is basically a way to write much easier OOP code | |
// Root.DOM is a helper object to inherit from, so you get a bunch of really cool | |
// dom stuff, like events, objects tied to elements, and a jQuery plugin arch | |
/////////////////////////////////////////////////////////////////////////////// | |
(function($, window, document, undefined) { | |
"use strict"; | |
///////////////////////////////////////////////////////////////////////////////////////////////////////////// |
OlderNewer