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
(function(){ | |
document.body.innerHTML += '<pre id="preConsole" style="position: absolute; left: 10px; top:10px; height: 200px; width: 400px; background-color: rgba(0,0,0,.9); *background: #000; color: #fff; z-index: 1000; padding: 10px; overflow: auto; font: 12px/15px Monospace; margin: 0;"></pre>'; | |
var pre = document.getElementById("preConsole"); | |
window.console = { | |
log: function() { | |
var a=[], iCount=arguments.length; | |
for (var i=0; i<iCount; i++) { a.push(typeof arguments[i] === "object" ? JSON.stringify(arguments[i]) : arguments[i].toString()); } | |
pre.innerHTML += a.join(', ') + '\n'; | |
} | |
}; |
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 wait = new function Wait() { | |
var list = this.list = {}; | |
this.callback = function() { }; | |
this.add = function(s) { | |
list[s] = true; | |
}; | |
this.remove = function(s) { | |
list[s] = false; | |
if (this.ready()) { | |
this.callback(); |
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
data:text/html,<style>body { text-align:center;font:100px/200px sans-serif;cursor:pointer}</style><body id="body">Click!<script>var choices = prompt("Choices", "Delivery, Ramen").split(","), choose = function() { body.innerHTML = choices[Math.floor(Math.random() * choices.length)]; }, choosing; body.addEventListener("click", function() { if (choosing) { clearInterval(choosing); choosing = undefined; } else { choosing = setInterval(choose, 25); } });</script> |
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
// Referencing http://en.wikibooks.org/wiki/Unicode/Character_reference/E000-EFFF | |
var getPuaUnicode = (function() { | |
var PUA = []; | |
var get0toF = function(i) { | |
return "0123456789abcdef"[i]; | |
}; | |
for (var i = 0; i <= 15; i++) { | |
for (var ii = 0; ii <= 15; ii++) { |
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
.curtain { | |
*[data-flow-step], | |
*[data-tag], | |
*[data-sequence-step] { | |
display: block !important; | |
} | |
.pod-modal { | |
margin-bottom: 20px; | |
} |
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
#admin-menu, .glorious-header, .responsive-navigation-wrapper, | |
.static-nav, | |
.terms .annotation, | |
.footer-wrapper, .debug, #feedback-tab { | |
display: none; | |
} | |
body { | |
background: white; | |
padding: 0 20px; |
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
.stretchy-column(@columns, @gutter: 1.5%) { | |
@available-width: (100% - ((@columns - 1) * @gutter)); | |
float: left; | |
width: (@available-width / @columns); | |
margin: 0 @gutter @gutter 0; | |
&:nth-child(@{columns}n + 1) { | |
margin-right: 0; | |
} |
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 "imports/modules"; | |
.example-container { | |
.dynamic-row(); | |
.columnize(@column) { | |
.dynamic-column(@column); | |
@media @mobile { | |
.full-width-column(); |
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
(function(exports, $) { | |
if (!exports.previewWindow) { | |
exports.previewWindow = window.open(); | |
var $input = $("#frame_the_input").contents().find("#textarea"); | |
exports.updatePreviewWindow = function() { | |
exports.previewWindow.location.href = "data:text/html," + $input.val(); | |
return false; | |
}; |
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
// Abandoned. Cool trick but timing was off, and the whole thing is just a real goddamn mess. | |
.primo-fluid.landing-page { | |
.backgroundify(@index) { | |
background: url(~"/media/primo/landing-page/pro-0@{index}.jpg") center center no-repeat; | |
.background-size(cover); | |
} | |
.pseudo-background(@index, @animation-name) { | |
content: ""; |