This file contains 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
functon onReturn(resp) { | |
if (resp.status === 200) { | |
// SUCCESS! | |
} else { | |
// BOOO | |
} | |
} | |
$http(...).then(onReturn, onReturn); |
This file contains 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
(function(word) { | |
var walk=document.createTreeWalker(document.body,NodeFilter.SHOW_TEXT,null,false), el; | |
word=word.split(""); | |
while(el=walk.nextNode()) { | |
el.nodeValue = el.nodeValue.replace(/\w+/g, function (o) { | |
return word.map(function (v, i) { | |
return (o[i] < "a") ? v.toUpperCase() : v; | |
}).join(""); | |
}); | |
} |
This file contains 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
Array.prototype.forEach.call(document.getElementsByTagName("esi:include"),function(e){function r(e){n.after(e);console.log(t,"loaded");sessionStorage[t]=JSON.stringify({ts:+(new Date)+1e3*60*30,value:e})}var t=e.getAttribute("src"),n=$(e);if(sessionStorage[t]){var i=JSON.parse(sessionStorage[t]);if(i.ts>+(new Date)){r(i.value);return}}if(e.getAttribute("processed")){return}e.setAttribute("processed",true);var s=new XMLHttpRequest;s.open("GET",t,true);s.send();console.log("Loading",t);s.onreadystatechange=function(){if(s.readyState!==4){return}r(s.responseText)}}) |
This file contains 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
// Globals | |
$screen-width: 1280px; | |
// Grid | |
$column-granularity: 12; | |
$column-gutter: 20px; | |
// Dimensions (responsive) | |
$screen-xs-max: 567px; | |
$screen-sm-min: 568px; |