for demo reasons (iPhone styles) forked from Fabrizio Bianchi's Pen Pull Menu - Menu Interaction Concept.
A Pen by 4aficiona2 on CodePen.
/* modernizr-test.js | |
* Daniel Ott | |
* 3 March 2011 | |
* Custom Tests using Modernizr's addTest API | |
*/ | |
/* iOS | |
* There may be times when we need a quick way to reference whether iOS is in play or not. | |
* While a primative means, will be helpful for that. | |
*/ |
/* parallaxed-element.js | |
* Parallaxed / delayed element | |
*/ | |
$(document).ready(function(){ | |
$(document).scroll(function(){ | |
var distanceToTop = $(document).scrollTop(); | |
$('.parallaxed').css('margin-top', (distanceToTop/10)*9); | |
}); | |
}); |
<div class="positiveOrNegative">positiveOrNegative: </div> |
/* Web Font Loader v1.5.6 - Monotype Build only - (c) Adobe Systems, Google. License: Apache 2.0 */ | |
;(function(window,document,undefined){var j=!0,k=null,m=!1;function n(a){return function(){return this[a]}}var p=this;function q(a,b){var c=a.split("."),d=p;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&void 0!==b?d[e]=b:d=d[e]?d[e]:d[e]={}}function aa(a,b,c){return a.call.apply(a.bind,arguments)} | |
function ba(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function r(a,b,c){r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?aa:ba;return r.apply(k,arguments)}var s=Date.now||function(){return+new Date};function t(a,b){this.s=a;this.A=b||a;this.r=this.A.document}t.prototype.createElement=function(a,b,c){a=this.r.cre |
# cd to Drupal theme directory | |
# list all .info files | |
find node_modules -type f -name "*.info" | |
# remove all node module .info files | |
find node_modules -type f -name "*.info" | xargs rm |
{ | |
"scripts": { | |
"postinstall": "find node_modules -type f -name '*.info' | xargs rm;" | |
} | |
} |
# build a custom webfont loader | |
cd ~/Projects/yokai-playground/webfontloader/target; | |
rm webfont.js; | |
cd ..; | |
#rake compile['typekit']; | |
#rake compile['monotype']; | |
rake compile['google']; |
/* Web Font Loader v1.5.8 - Monotype Build only - (c) Adobe Systems, Google. License: Apache 2.0 */ | |
;(function(window,document,undefined){var h=this;function l(a,b){var c=a.split("."),d=h;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b}function m(a,b,c){return a.call.apply(a.bind,arguments)} | |
function p(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function q(a,b,c){q=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?m:p;return q.apply(null,arguments)}var r=Date.now||function(){return+new Date};function s(a,b){this.B=a;this.A=b||a;this.v=this.A.document}s.prototype.createElement=function(a,b,c){a=this.v.createElement(a);if(b)for(var d in b)b.hasOwnProperty(d)&&("style"==d?a.styl |
/* Web Font Loader v1.5.8 - (c) Adobe Systems, Google. License: Apache 2.0 */ | |
;(function(window,document,undefined){var k=this;function m(a,b){var c=a.split("."),d=k;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b}function aa(a,b,c){return a.call.apply(a.bind,arguments)} | |
function ba(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function n(a,b,c){n=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?aa:ba;return n.apply(null,arguments)}var q=Date.now||function(){return+new Date};function s(a,b){this.K=a;this.v=b||a;this.F=this.v.document}s.prototype.createElement=function(a,b,c){a=this.F.createElement(a);if(b)for(var d in b)b.hasOwnProperty(d)&&("style"==d?a.style.cssText=b[d]:a.s |
for demo reasons (iPhone styles) forked from Fabrizio Bianchi's Pen Pull Menu - Menu Interaction Concept.
A Pen by 4aficiona2 on CodePen.