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 $, TweenLite, Power3*/ | |
/*jshint node:true*/ | |
'use strict'; | |
/** | |
* Overlay | |
* | |
* Controls creating, showing, hiding and removing of overlays | |
*/ |
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
<img | |
srcset="/path/to/slider-image-small.jpg 400w, | |
/path/to/slider-image-medium.jpg 800w, | |
/path/to/slider-image-large.jpg 1200w" | |
sizes="100vw" | |
alt="..."> |
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
<picture> | |
<!--[if IE 9]><video style="display: none;"><![endif]--> | |
<source srcset="{{ slide.image_desktop | tojpg | resize(1200) }}" media="(min-width: 1000px)"> | |
<source srcset="{{ slide.image_tablet | tojpg | resize(800) }}" media="(min-width: 767px)"> | |
<source srcset="{{ slide.image | tojpg | resize(480) }}, {{ slide.image | tojpg | resize(766) }} 2x" media="(max-width: 766px)"> | |
<!--[if IE 9]></video><![endif]--> | |
<img class="slider__image" srcset="{{ slide.image_tablet | tojpg | resize(800) }}" alt="{{ slide.title }}"> |
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({ |
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
<?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
{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
{if global:env == "dev"} | |
<link rel="stylesheet" href="{site_url}assets/styles/css/main.css"> | |
{if:else} | |
{embed="critical/index"} | |
{/if} |