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
if('querySelector' in document | |
&& 'localStorage' in window | |
&& 'addEventListener' in window) { | |
// Add jQuery 2.0+ | |
document.write('<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"><\/script>') | |
} else { | |
// Add jQuery 1.9.0+ | |
document.write('<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"><\/script>') | |
} |
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
// Underlines | |
// http://codepen.io/ghepting/pen/tLnHK/ | |
$background-color: #FFF; | |
$link-color: $grey-2; | |
$link-color-active: $brand-red; | |
$link-underline-color: $link-color; | |
$link-underline-color-active: $link-color-active; | |
$link-underline-width: 2px; | |
$link-underline-offset: 2px; | |
$breaking-underlines: true; |
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
$('.content').on('click', 'a[href*="//"]:not([href*="mysite.com"])', function(){ | |
$(this).attr('target','_blank'); | |
}); |
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
// Compile Jade (allowing for php) | |
jadephp: { | |
options: { | |
pretty: true | |
}, | |
// Compile templates to HTML in .tmp so we can run useminPrepare | |
dist: { | |
files: [ | |
{ | |
expand: true, |
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
# Allow jQuery Validate to run validation on jQuery Chosen | |
# select boxes by changing the ignore selector from `:hidden` | |
$.validator.setDefaults | |
ignore: '.no-validate' | |
# jQuery Validate doesn't mark fields as valid on hidden elements | |
# So when using Chosen we need to show the original input, | |
# give it focus and then hide it again |
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
'use strict' | |
Upload = | |
init: (options) -> | |
# Set some default options | |
defaults = | |
debug: false | |
# Merge all the options |
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
'use strict' | |
# Document Ready | |
$ -> | |
# Initialise Isotope | |
# http://isotope.metafizzy.co | |
$('.isotope').isotope | |
itemSelector: '.isotope-item' |
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
// IE Conditional Comments | |
mixin if-ie(condition) | |
!= "<!--[if " + condition + "]>" | |
block | |
!= "<![endif]-->" | |
mixin not-ie | |
!= "<!--[if !IE]> -->" | |
block | |
!= "<!-- <![endif]-->" |
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
// Generated on 2014-03-14 using generator-webapp 0.4.8 | |
'use strict'; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// use this if you want to recursively match all subfolders: | |
// 'test/spec/**/*.js' | |
module.exports = function (grunt) { |