This file contains 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 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 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 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 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
.c-alert { | |
position: fixed; | |
background: #333; | |
background: rgba(51, 51, 51, 0.7); | |
bottom: 30px; | |
color: #fff; | |
text-align: center; | |
padding: 15px; | |
border-radius: 4px; | |
width: 300px; |
This file contains 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 | |
/** | |
* Template Name: Overview | |
*/ | |
if (!class_exists('Timber')){ | |
echo 'Timber not activated. Make sure you activate the plugin in <a href="/wp-admin/plugins.php#timber">/wp-admin/plugins.php</a>'; | |
return; | |
} |
This file contains 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
<!doctype html> | |
<html class="no-js" {{site.language_attributes}}> | |
<head> | |
<meta charset="{{site.charset}}"> | |
<title> | |
{% if wp_title %} | |
{{ wp_title }} - {{ site.name }} | |
{% else %} | |
{{ site.name }} |
This file contains 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
/*global casper*/ | |
'use strict'; | |
var config = require('../config'), | |
page = 'http://' + config.local_url + '/', | |
formData = { | |
's': 'suppliers' // search term | |
}; |