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
/** | |
* Utilities | |
* see http://youmightnotneedjquery.com/ | |
* @type {Object} | |
*/ | |
var U = { | |
/** | |
* Call a function when DOM is ready | |
* @param {Function} fn Function to call when DOM is ready | |
*/ |
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
<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 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
<h1>This should be a responsive heading title right here</h1> |
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
/** | |
* Environment | |
* Lets us manage assets based on current environment | |
*/ | |
class Environment { | |
/** | |
* @param $localEnvironment (default value is 'localhost' if nothing is passed) | |
* @return boolean | |
*/ |
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
var el = document.getElementsByTagName('html')[0]; | |
el.className = el.className.replace('no-js', 'js'); |
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
// Any iframes with a class of .yt will be collected for event tracking | |
var Youtube = { | |
$players: $( '.yt' ), | |
playerArray: [], | |
numPlayers: $( '.yt' ).length - 1, | |
init: function() { | |
Youtube.assignID(); | |
Youtube.bindEvents(); | |
}, |
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 | |
include('db.class.php'); | |
$database = new Database(); | |
$database->dbUrl = 'localhost'; //URL of database | |
$database->dbUser = 'root'; // Username | |
$database->dbPass = ''; // Password | |
$database->dbName = 'test_db'; // Name of database you wish to connect to |
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="container"> | |
<div id="slider-container"> | |
<ul class="slider-images clearfix"> | |
<li><img class="scale" src="http://dummyimage.com/500x200/000/fff.gif&text=Slide+1" alt=""></li> | |
<li><img class="scale" src="http://dummyimage.com/500x200/fff/000.gif&text=Slide+2" alt=""></li> | |
<li><img class="scale" src="http://dummyimage.com/500x200/000/fff.gif&text=Slide+3" alt=""></li> | |
<li><img class="scale" src="http://dummyimage.com/500x200/fff/000.gif&text=Slide+4" alt=""></li> | |
</ul> | |
</div> |
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
<a href="#" class='notify'>Success!</a> | |
<a href="#" class='notify error'>Error :(</a> |