Skip to content

Instantly share code, notes, and snippets.

View ebinion's full-sized avatar

Zeke Binion ebinion

View GitHub Profile
# A class-based template for jQuery plugins in Coffeescript
#
# $('.target').myPlugin({ paramA: 'not-foo' });
# $('.target').myPlugin('myMethod', 'Hello, world');
#
# Check out Alan Hogan's original jQuery plugin template:
# https://github.com/alanhogan/Coffeescript-jQuery-Plugin-Template
#
(($, window) ->
@ebinion
ebinion / vanilla-fitvids.js
Last active June 6, 2019 17:06 — forked from davatron5000/vanilla-fitvids.js
FitVids ES6 & AMD ready
// Vanilla version of FitVids
// Still licencened under WTFPL
//
// Not as robust and fault tolerant as the jQuery version.
// And also, I don't support this at all whatsoever.
const vanillaFitVids = () => {
// List of Video Vendors embeds you want to support
const players = [
'iframe[src*="youtube.com"]',