/** * jQuery Vimelar plugin * @author: Sozonov Alexey * @version: v.1.0 * licensed under the MIT License * updated: July 5, 2015 * since 2015 * Enjoy. */ ;(function ($, window) { // defaults var defaults = { ratio: 16/9, // usually either 4/3 or 16/9 -- tweak as needed videoId: '8970192', width: $(window).width(), wrapperZIndex: 99 }; // methods var vimelar = function(node, options) { // should be called on the wrapper div var options = $.extend({}, defaults, options), $node = $(node); // cache wrapper node // build container $('