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
/** | |
* Interval 0.0.2 | |
* A turnkey requestAnimationFrame replacement for setInterval | |
* @author Kyle Foster (@hkfoster) | |
* @license MIT | |
**/ | |
const interval = { | |
set: (fn, delay) => { | |
if (!window.requestAnimationFrame) return window.setInterval(fn, delay) |
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
/* ===================================== * | |
* Preformatted text | |
* ------------------------------------- */ | |
$color-code: #58728A; | |
$color-code-background: #EDF5F7; | |
$color-code-punctuation: #7EC9FF; | |
$color-code-tag: #DD2F41; | |
$color-code-selector: #F69523; | |
$color-code-keyword: #25C894; |
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
/** | |
* MyModule 0.0.1 | |
* A short description of your module | |
* @author Me (@me) | |
* @license MIT | |
*/ | |
;( function( root, factory ) { | |
if ( typeof define === 'function' && define.amd ) { | |
define( factory ); |
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
/** | |
* Typewriter.js 0.0.1 | |
* @author Kyle Foster (@hkfoster) | |
* @license MIT (http://www.opensource.org/licenses/mit-license.php/) | |
*/ | |
var typewriter = ( function() { | |
var headline = document.querySelector( '.typewriter' ); |
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
/** | |
* Lightbox.js 0.0.1 | |
* @author Kyle Foster (@hkfoster) | |
* @license MIT (http://www.opensource.org/licenses/mit-license.php/) | |
*/ | |
var lightBoxInit = ( function() { | |
var triggers = document.querySelectorAll( '[rel="modal"]' ); |
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
/** | |
* Spectral.js 0.0.6 | |
* Full-text search for the Ghost blogging platform | |
* @author Kyle Foster (@hkfoster) | |
* @license MIT (http://www.opensource.org/licenses/mit-license.php/) | |
*/ | |
// Lunr 0.6.0 | lunrjs.com | by Oliver Nightingale | @license MIT | |
!function(){var t=function(e){var n=new t.Index;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),e&&e.call(n,n),n};t.version="0.6.0",t.utils={},t.utils.warn=function(t){return function(e){t.console&&console.warn&&console.warn(e)}}(this),t.utils.asString=function(t){return void 0===t||null===t?"":t.toString()},t.EventEmitter=function(){this.events={}},t.EventEmitter.prototype.addListener=function(){var t=Array.prototype.slice.call(arguments),e=t.pop(),n=t;if("function"!=typeof e)throw new TypeError("last argument must be a function");n.forEach(function(t){this.hasHandler(t)||(this.events[t]=[]),this.events[t].push(e)},this)},t.EventEmitter.prototype.removeListener=function(t,e){if(this.hasHandler(t)){var n=this.events[t].indexOf(e);this.events[t].spli |
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
/** | |
* HTML5 Form Validation 0.0.1 | |
* @author Kyle Foster (@hkfoster) | |
* @license MIT (http://www.opensource.org/licenses/mit-license.php/) | |
*/ | |
var formValidation = ( function() { | |
var init = function() { |
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
function wrapNodes( nodes, type ) { | |
for ( var index = 0; index < nodes.length; index++ ) { | |
var node = nodes[ index ], | |
wrapper = document.createElement( type ); | |
node.parentNode.insertBefore( wrapper, node ); | |
wrapper.appendChild( node ); | |
} | |
} |
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
/** | |
* Fancysands v0.0.1 | |
* Wrap ampersands with <span class="amp"></span> for styling | |
* @author Kyle Foster (@hkfoster) | |
* @license MIT (http://www.opensource.org/licenses/mit-license.php/) | |
*/ | |
( function( window ) { | |
'use strict'; |
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
/** | |
* Node From String Function | |
* @author Kyle Foster | |
* @license MIT (http://www.opensource.org/licenses/mit-license.php/) | |
*/ | |
var nodeFromString = function( string ) { | |
var match = /^<([a-z]+)/g.exec( string ), | |
tag = match[ 1 ], | |
wrapper = 'div', | |
outliers = { |
NewerOlder