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
/** | |
* no-js lightbox | |
*/ | |
body { | |
margin: 100px 0 0 100px; | |
} | |
.thumbs li { | |
position: relative; | |
float: left; | |
margin: 20px 20px 0 0; |
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 | |
*/ |
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
$(document).ready(function() { | |
if ( !("placeholder" in document.createElement("input")) ) { | |
$("input[placeholder]").each(function() { | |
var val = $(this).attr("placeholder"); | |
if ( this.value == "" ) { | |
this.value = val; | |
} | |
$(this).focus(function() { | |
if ( this.value == val ) { |
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
String.prototype.replaceAll = function(str1, str2, ignore) { | |
return this.replace(new RegExp(str1.replace(/([\/\,\!\\\^\$\{\}\[\]\(\)\.\*\+\?\|\<\>\-\&])/g, "\\$&"), (ignore ? "gi" : "g")), (typeof(str2) == "string") ? str2.replace(/\$/g, "$$$$") : str2); | |
} |
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
/** | |
* no-js image preview | |
*/ | |
#no-js-g > * { | |
box-sizing: border-box; | |
} | |
#no-js-g ul { | |
margin: 0; |
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
/** | |
* event widget | |
* url: http://dribbble.com/shots/713807-Extended | |
*/ | |
@import url(http://fonts.googleapis.com/css?family=Open+Sans:300); | |
* { | |
box-sizing: border-box; | |
} |
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
Object.prototype.each = function(callback) { | |
var a = []; | |
for (var i = 0; i < this.length; i++) { | |
a[i] = this[i]; | |
callback(a[i]); | |
} | |
} |
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
Object.prototype.each = function(callback) { | |
var a = []; | |
for (var i = 0; i < this.length; i++) { | |
a[i] = this[i]; | |
callback(a[i]); | |
} | |
} | |
String.prototype.replaceAll = function(str1, str2, ignore) { | |
return this.replace(new RegExp(str1.replace(/([\/\,\!\\\^\$\{\}\[\]\(\)\.\*\+\?\|\<\>\-\&])/g, "\\$&"), (ignore ? "gi" : "g")), (typeof(str2) == "string") ? str2.replace(/\$/g, "$$$$") : str2); |
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
/* css3 album flip | |
http://labs.daryl.im/flipper/ | |
http://dribbble.com/shots/731563-Music-player?list=popular&offset=0&page=2 | |
*/ | |
@font-face{ | |
font-family: 'Pictos Custom'; | |
src: url('http://codepen.io/fonts/icomoon.woff') format('woff'); | |
} |