mash.js has moved: https://github.com/danro/mash
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 mash = require('mash-js'); | |
var withSword = mash(function () { | |
this.slash = function (dmg) { | |
console.log('Sword slash for ' + dmg + ' damage!'); | |
}; | |
}); | |
var withMagic = mash(function () { | |
this.fireball = function (dmg) { |
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 mash = require('mash-js'); | |
function Animal() {} | |
mash(Animal, function() { | |
this.init = function(name) { | |
this.name = name; | |
}; | |
this.move = function(meters) { | |
console.log(this.name + ' moved ' + meters + 'm.'); |
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 mash = require('mash-js'); | |
var foo = mash(function () { | |
this.init = function () { | |
console.log('hello mash'); | |
}; | |
}); | |
foo.create(); |
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
<video autoplay loop style="width:100%; height: auto; position:absolute; z-index: -1;"> | |
<source src="http://syddev.com/jquery.videoBG/assets/tunnel_animation.mp4" type="video/mp4" /> | |
<source src="http://syddev.com/jquery.videoBG/assets/tunnel_animation.ogv" type="application/ogg" /> | |
<img src="http://syddev.com/jquery.videoBG/assets/tunnel_animation.jpg"> | |
</video> |
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
// Returns a function, that, when invoked, will only be triggered once every | |
// browser animation frame - using tram's requestAnimationFrame polyfill. | |
// tram.js - https://github.com/bkwld/tram | |
_.throttle = function(func) { | |
var wait, args, context; | |
return function () { | |
if (wait) return; | |
wait = true; | |
args = arguments; | |
context = this; |
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
::-webkit-input-placeholder { /* WebKit browsers */ | |
color: #bada55 !important; | |
} | |
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ | |
color: #bada55 !important; | |
} | |
::-moz-placeholder { /* Mozilla Firefox 19+ */ | |
color: #bada55 !important; | |
} | |
:-ms-input-placeholder { /* Internet Explorer 10+ */ |
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 Webflow = Webflow || []; | |
Webflow.push(function () { | |
// Find example element | |
var $element = $('.resize-demo'); | |
var $parent = $element.parent(); | |
// Listen for optimized resize event | |
Webflow.resize.on(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
var Webflow = Webflow || []; | |
Webflow.push(function () { | |
/* | |
* MIXITUP - A CSS3 and JQuery Filter & Sort Plugin | |
* Version: 1.5.4 | |
* License: Creative Commons Attribution-NoDerivs 3.0 Unported - CC BY-ND 3.0 | |
* http://creativecommons.org/licenses/by-nd/3.0/ | |
* This software may be used freely on commercial and non-commercial projects with attribution to the author/copyright holder. | |
* Author: Patrick Kunka |
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 Webflow = Webflow || []; | |
Webflow.push(function () { | |
// DOMready has fired | |
// May now use jQuery and Webflow api | |
}); |