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
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 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
@import '_bootstrap'; | |
@import '_variables'; | |
/* =================================== | |
Utilities | |
=================================== */ | |
.social{ | |
list-style: none; |
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 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 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 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 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
<?php $args = array( | |
'echo' => true, | |
'redirect' => get_permalink(90), | |
'form_id' => 'loginform', | |
'label_username' => __( 'Username' ), | |
'label_password' => __( 'Password' ), | |
'label_remember' => __( 'Remember Me' ), | |
'label_log_in' => __( 'Log In' ), | |
'id_username' => 'user_login', | |
'id_password' => 'user_pass', |
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
&.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 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 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 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 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 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 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 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 placeholder(){ | |
var target = '#gform_1 input[type=text]'; | |
var inputs = document.querySelectorAll(target); | |
if(inputs){ | |
for (var i = 0; i < inputs.length; i++){ | |
var value = inputs[i].value; | |
console.log(value); |