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
// Responsive Slideshow in Wordpress | |
// https://github.com/ResponsiveImagesCG/wp-tevko-responsive-images | |
// http://www.advancedcustomfields.com/pro | |
// http://jquery.malsup.com/cycle2/ | |
$images = get_field('gallery'); | |
if( $images ): ?> | |
<div class="cycle-slideshow" |
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
// set figure heights based on child image + figcaption heights | |
$(document).ready(function(){ | |
setFigureHeight(); | |
$(window).on('resize', setFigureHeight); | |
}); | |
function setFigureHeight() { | |
$('.story-image').each(function(index,value) { | |
imgHeight = $(this).outerHeight(true); | |
capHeight = $(this).next('figcaption').outerHeight(true); | |
figHeight = imgHeight + capHeight; |
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
tell application "Finder" | |
set theItems to selection | |
set folderName to name of item 1 of theItems | |
do shell script "sudo dscl localhost -create /Local/Default/Hosts/" & folderName & ".dev IPAddress 127.0.0.1" | |
end tell |
NewerOlder