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 penthouse = require('penthouse'); | |
var fs = require('fs'); | |
var cleanCSS = require('clean-css'); | |
gulp.task('penthouse', ['styles'], function () { | |
penthouse({ | |
url: ['http://chadwicks.dev'], | |
css: 'assets/css/application.css', | |
width: 480, | |
height: 800 |
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
/* jshint node:true */ | |
'use strict'; | |
var gulp = require('gulp'); | |
var traceur = require('gulp-traceur'); | |
gulp.task('scripts', function () { | |
return gulp.src('js/main.js') | |
.pipe(traceur()) |
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 spawn = require('child_process').spawn; | |
var browserSync = require('browser-sync'); | |
var reload = browserSync.reload; | |
var runSequence = require('run-sequence'); | |
var penthouse = require('penthouse'); | |
var cleanCSS = require('clean-css'); | |
var fs = require('fs'); | |
// load plugins |
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
$(document).ready(function () { | |
require('./modules/foundation'); | |
require('./modules/foundation-media-queries'); | |
require('./modules/slider'); | |
}); |
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 global:env == "dev"} | |
<link rel="stylesheet" href="{site_url}assets/styles/css/main.css"> | |
{if:else} | |
{embed="critical/index"} | |
{/if} |
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 global:env != "dev"} | |
{exp:minimee:js minify="yes" combine="yes"} | |
{/if} | |
<script src="/assets/scripts/vendor/jquery-1.11.1.min.js"></script> | |
<!-- bower:js --> | |
<script src="/assets/lib/modernizr/modernizr.js"></script> | |
<script src="/assets/lib/fastclick/lib/fastclick.js"></script> | |
<script src="/assets/lib/jquery.cookie/jquery.cookie.js"></script> | |
<script src="/assets/lib/jquery-placeholder/jquery.placeholder.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
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* Responsive Images Class | |
* | |
* @package ExpressionEngine | |
* @category Plugin | |
* @author TJ Fogarty | |
* @copyright Copyright (c) 2014, TJ Fogarty | |
* @link http://www.emagine.ie |
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="js-course-search"> | |
<input type="search" placeholder="Search courses..." rv-on-keyup="search.update" autofocus> | |
<ul> | |
<li rv-each-result="search.results"> | |
<a rv-href="result.url"> | |
{result.name} | |
</a> | |
</li> |
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
/* globals $, LoadPartial, Foundation */ | |
/* jshint node:true */ | |
'use strict'; | |
/** | |
* The Likebox is just above the footer on the homepage | |
* Load it once it comes into view | |
*/ | |
var fb = new LoadPartial({ |