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
<div class="blog-img"> | |
<?php if (has_post_thumbnail()): ?> | |
<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 5600,1000 ), false, '' ); ?> | |
<div class="blog-feature" style="background-image: url(<?php echo $src[0]; ?>);"></div> | |
<?php else: ?> | |
<div class="blog-feature-empty"></div> | |
<?php endif; ?> | |
</div> |
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
<div class="blog-img"> | |
<?php if (has_post_thumbnail()): ?> | |
<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 5600,1000 ), false, '' ); ?> | |
<div class="blog-feature" style="background-image: url(<?php echo $src[0]; ?>);"></div> | |
<?php else: ?> | |
<div class="blog-feature-empty"></div> | |
<?php endif; ?> | |
</div> |
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 boxHeight(target){ | |
var pricingBox = document.getElementsByClassName(target); | |
var boxHeights = [] | |
for (var i = 0; i < pricingBox.length; i++){ | |
var heights = window.getComputedStyle(pricingBox[i], null).getPropertyValue('height').replace("px", ""); | |
boxHeights.push(heights); | |
} | |
var tallest = Math.max.apply( null, boxHeights ); | |
for (var i = 0; i < pricingBox.length; i++){ | |
pricingBox[i].style.height=tallest+'px' ; |
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
&.grayscale img { | |
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */ | |
filter: gray; /* IE6-9 */ | |
-webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */ | |
} | |
&.grayscale:hover img { | |
filter: none; | |
-webkit-filter: none; | |
} |
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 dribbleVideoPosition(){ | |
if($('body').hasClass('home') ){ | |
var currentWindow = $(window).width(); | |
if (currentWindow < 1628){ | |
var difference = 1628 - currentWindow; | |
var half = Math.round(difference/2); | |
var newMarginLeft = half; | |
var css = '.dribble{margin-left: -'+ newMarginLeft + 'px !important;}', | |
head = document.head || document.getElementsByTagName('head')[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
function getParams(){ | |
var params = [], hash; | |
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); | |
for(var i = 0; i < hashes.length; i++){ | |
hash = hashes[i].split('='); | |
params[hash[0]] = hash[1]; | |
} | |
return params; | |
} |
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
@import '_bootstrap'; | |
@import '_variables'; | |
/* =================================== | |
Utilities | |
=================================== */ | |
.social{ | |
list-style: none; |
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 gulp = require('gulp'); | |
var compass = require('gulp-compass'); | |
var watch = require('gulp-watch'); | |
var minifyCSS = require('gulp-minify-css'); | |
var jshint = require('gulp-jshint'); | |
var stylish = require('jshint-stylish'); | |
var uglify = require('gulp-uglify'); | |
gulp.task('scss', function(){ | |
console.log('running scss'); |
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
chown www-data:www-data -R * # Let apache be owner | |
find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x | |
find . -type f -exec chmod 644 {} \; # Change file permissions rw-r--r-- |
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 alphabatizeMenu(target){ | |
var continent = document.getElementById('tab_' + target); | |
if(continent){ | |
var listParent = document.getElementById(target + '-offices'); | |
var listItems = continent.getElementsByClassName('in-' + target); | |
var listItemText = []; | |
for(var i = 0; i < listItems.length; i++){ | |
listItemText.push({ | |
country: listItems[i].textContent, | |
item: listItems[i] |