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
| module.exports = function(grunt) { | |
| // load all grunt tasks | |
| require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | |
| grunt.initConfig({ | |
| uglify: { | |
| dist: { | |
| src: ['assets/js/vendor/jquery.js', 'assets/js/vendor/**/*.js'], | |
| dest: "assets/js/vendor.min.js" | |
| } |
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
| @mixin vertical-align { | |
| position: relative; | |
| top: 50%; | |
| -webkit-transform: translateY(-50%); | |
| -moz-transform: translateY(-50%); | |
| -o-transform: translateY(-50%); | |
| -ms-transform: translateY(-50%); | |
| transform: translateY(-50%); | |
| } |
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
| // Gulp Requires | |
| var gulp = require('gulp'), | |
| gutil = require('gulp-util'), | |
| uglify = require('gulp-uglify'), | |
| notify = require('gulp-notify'), | |
| sass = require('gulp-sass'), | |
| livereload = require('gulp-livereload'), | |
| rjs = require('gulp-requirejs'); | |
| // Node requires for exec and sys |
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
| require.config({ | |
| baseUrl: '/assets/js', | |
| paths: { | |
| jquery: [ | |
| 'http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min', | |
| 'vendor/jquery' | |
| ], | |
| slider: 'vendor/slider', | |
| player: 'vendor/player' | |
| } |
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
| $.fn.quickChange = function(handler) { | |
| return this.each(function() { | |
| var self = this; | |
| self.qcindex = self.selectedIndex; | |
| var interval; | |
| function handleChange() { | |
| if (self.selectedIndex != self.qcindex) { | |
| self.qcindex = self.selectedIndex; | |
| handler.apply(self); | |
| } |
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
| # Enable Gzip | |
| <IfModule mod_deflate.c> | |
| SetOutputFilter DEFLATE | |
| # Don’t compress | |
| SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary | |
| SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary | |
| #Dealing with proxy servers | |
| <IfModule mod_headers.c> | |
| Header append Vary User-Agent | |
| </IfModule> |
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 to make heights of elements | |
| $.fn.equalHeights = function(px) { | |
| $(this).each(function(){ | |
| var currentTallest = 0; | |
| $(this).children().each(function(i){ | |
| var el = $(this).find('.element-you-want-to-check-height-on'), | |
| h = el.outerHeight(); | |
| if (h > currentTallest) { currentTallest = h; } | |
| }); |
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
| // Disable overscroll / viewport moving when a menu is open | |
| $body.on('touchmove', function (e) { | |
| if ( $body.hasClass('is-active') ) e.preventDefault(); | |
| }); |
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
| // Ah, Big Gulp's eh? Welp, see ya later. | |
| var gulp = require('gulp'), | |
| gutil = require('gulp-util'), | |
| c = require('chalk'), | |
| clean = require('gulp-clean'), | |
| imagemin = require('gulp-imagemin'), | |
| concat = require('gulp-concat'), | |
| uglify = require('gulp-uglify'), | |
| jshint = require('gulp-jshint'), | |
| map = require('map-stream'), |
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
| <!-- Google Open Schema --> | |
| <span itemscope itemtype="http://schema.org/LocalBusiness" style="display:none"> | |
| <span itemprop="name"></span> | |
| <meta itemprop="image" content="image.jpg"> | |
| <meta itemprop="telephone" content=""> | |
| <meta itemprop="email" content=""> | |
| <span itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"> | |
| <meta itemprop="streetAddress" content=""> | |
| <meta itemprop="addressLocality" content=""> | |
| <meta itemprop="addressRegion" content=""> |