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
.all_boxes { | |
display:block; | |
height:125px; | |
margin:0 0 50px; | |
} | |
.all_boxes h3 { | |
text-align:center; | |
line-height:125px; | |
color:#222; |
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
// Example: all images with a class of .img get sized to 150px. | |
makeThumbs({ | |
selector: '.img', | |
size: 150 | |
}); | |
function makeThumbs() { | |
var selector = args.selector; | |
var thumb_size = args.size; |
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
/** | |
* Image Thumbnail w/ Bevel | |
*/ | |
#bevel { | |
width:384px; | |
height:284px; | |
border:8px solid; | |
border-color:rgba(213,213,213,0.35) rgba(75,75,75,0.35) rgba(48,48,48,0.35) rgba(202,202,202,0.35); | |
-webkit-box-shadow:inset 1px 1px 0 0 rgba(255,255,255,0.35), inset -1px -1px 0 0 rgba(255,255,255,0.20); |
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
window.checkDoesLike = function() { | |
FB.api({ method: 'pages.isFan', page_id: '184484190795' }, function(resp) { | |
if (resp) { | |
Log.info('You like the Application.'); | |
} else { | |
Log.error("You don't like the Application."); | |
} | |
}); | |
}; |
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
/** | |
* Alert Styles | |
*/ | |
.alert { | |
padding: 7px 14px; | |
margin-bottom: 5px; | |
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); | |
background-color: #FCF8E3; | |
border: 1px solid #FBEED5; |
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
<div id="color"></div> | |
<script type="text/javascript"> | |
var css_color = '{% style color my_color %}'; | |
var re = /#?([a-f]|[A-F]|[0-9]){3}(([a-f]|[A-F]|[0-9]){3})?\b/ig; | |
var hex = re.exec(css_color); | |
// Print the hex to our div so we can see it working | |
$('#color').html(hex[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
* { outline: 2px dotted red } | |
* * { outline: 2px dotted green } | |
* * * { outline: 2px dotted orange } | |
* * * * { outline: 2px dotted blue } | |
* * * * * { outline: 1px solid red } | |
* * * * * * { outline: 1px solid green } | |
* * * * * * * { outline: 1px solid orange } | |
* * * * * * * * { outline: 1px solid blue } |
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 xmlgen(name, data) { | |
var xml; | |
if (!data) { | |
xml = '<' + name + '/>'; | |
} else { | |
xml = '<'+ name + '>' + data + '</' + name + '>'; | |
} | |
return xml; |
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
$(document).on('didRefreshWidgetContent', function () { | |
// Do something | |
}); |
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
/* Copyright 2012 - Minim Group - http://minim.co/ */ | |
// Enable double-clicking from Finder/Explorer | |
#target photoshop | |
app.bringToFront(); | |
// ### Document Variables | |
var doc_layers = app.activeDocument.layers; | |
var num_layers = doc_layers.length; |