Last active
August 5, 2016 18:12
-
-
Save blivesta/3ad4c355b3135bef7dc28943998f96eb to your computer and use it in GitHub Desktop.
chaffle.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
var elements = document.querySelectorAll('[data-chaffle]'); | |
Array.prototype.forEach.call(elements, function (el) { | |
var chaffle = new Chaffle(el, { /* options */ }); | |
chaffle.init(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment