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
/** | |
* Page flipper | |
*/ | |
* { | |
box-sizing:border-box; | |
} | |
.pages { | |
position:relative; | |
width:60%; height:250px; | |
overflow:hidden; |
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
/** | |
* CSS button | |
*/ | |
.button { | |
position:relative; | |
background-color:green; | |
background-image: repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(255,255,255,.05) 4px, rgba(255,255,255,.05) 8px); | |
border:4px solid #015401; | |
border-radius:50%; |
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
/** | |
* CSS button | |
*/ | |
.button { | |
position:relative; | |
background-color:green; | |
background-image: repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(255,255,255,.05) 4px, rgba(255,255,255,.05) 8px); | |
border:4px solid #015401; | |
border-radius:50%; |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
* { box-sizing: border-box; } | |
.form.login { width:280px; margin:0 auto; } | |
.login > input, .login > button { | |
width:100%; | |
height:33px; |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
#home-content { | |
float: left; | |
position:relative; | |
width:780px; | |
margin: 0 auto; | |
margin-left: 91px; |
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
if (!String.prototype.htmlEscape) | |
{ | |
String.prototype.htmlEscape = function() | |
{ | |
return this.replace(/'/g, "'").replace(/"/g, """); | |
} | |
} |
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
var moneySymbol = '$'; | |
if (!Number.prototype.toMoney) { | |
Number.prototype.toMoney = function(c, d, t) | |
{ | |
var n = this, c = isNaN(c = Math.abs(c)) ? 2 : c, d = d == undefined ? "." : d, t = t == undefined ? "," : t, s = n < 0 ? "-" : "", i = parseInt(n = Math.abs(+n || 0).toFixed(c)) + "", j = (j = i.length) > 3 ? j % 3 : 0; | |
return moneySymbol + s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, moneySymbol + "1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : ""); | |
} | |
} |
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
//A fix for (lack of a) console log errors | |
if (!window.console) | |
{ | |
window.console = { | |
log: function(param) { return param; } | |
} | |
} |
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 animate (callback, time, oldTime) { | |
var oldTime = oldTime || new Date().getTime(); | |
var now = new Date(); | |
if (new Date(oldTime + time) < now) { | |
callback(); | |
oldTime = now.getTime(); | |
} | |
requestAnimationFrame(function() { animate(callback, time, oldTime); }); | |
} |
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
Paste into your location bar: | |
data:text/html, <body oninput='e.firstChild.srcdoc=t2[v="value"]+"<script>"+t0[v]+"<\/script><style>"+t1[v]'onload='for(i=3;i--;)e.innerHTML+="<textarea id=t"+i+">"'id=e><iframe> |