!function(t,e,i){t.fn.easyEmbed=function(i){var o=this,a=/iPad|iPhone|iPod/.test(navigator.userAgent),r=o.data("easy-embed").split(":"),n=t.extend({id:o.data("id")||r[1]||"ScMzIvxBSi4",provider:o.data("provider")||r[0]||"youtube",width:o.data("width")||16,height:o.data("height")||9,controls:o.data("controls")||!1,showinfo:o.data("showinfo")||!1,color:o.data("color")||"00adef",title:o.data("title")||!1,byline:o.data("byline")||!1,portrait:o.data("portrait")||!1},i),d=function(e){switch(n.provider.toLowerCase()){case"youtube":var i="//img.youtube.com/vi/"+n.id+"/",o=["maxresdefault","hqdefault"];!function a(){var r=i+o[0]+".jpg";t("<img/>").attr("src",r).load(function(){120!=this.width&&90!=this.height?e(r):(o.shift(),a())})}();break;case"vimeo":t.get("//vimeo.com/api/v2/video/"+n.id+".json",function(t){e(t[0].thumbnail_large)})}},c=function(){switch(n.provider.toLowerCase()){case"youtube":return"//youtube.com/embed/"+n.id+"?rel=0&autoplay=1&controls="+(n.controls+0)+"&showinfo="+(n.showinfo+0);case"vimeo":return"//player.vimeo.com/video/"+n.id+"?autoplay=1&color="+n.color+"&title="+(n.title+0)+"&byline="+(n.byline+0)+"&portrait="+(n.controls+0)}},s=function(t){o.css("background","black url("+t+") 50% 50% / cover no-repeat")},u=function(){o.css("height",o.width()/n.width*n.height)},h=function(){o.html(t("<iframe>").attr("src",c()).attr("width","100%").attr("height","100%").attr("frameborder",0).attr("allowfullscreen",1))};return u(),t(e).resize(function(){u()}),a?h():(d(function(t){s(t)}),o.find("*").addBack().click(function(){h()})),this},t(i).ready(function(){t("[data-easy-embed]").length>0&&t("[data-easy-embed]").each(function(){t(this).easyEmbed()})})}(jQuery,window,document);
!function(t,e,i){t.fn.easyEmbed=function(i){var o=this,a=/iPad|iPhone|iPod/.test(navigator.userAgent),n=o.data("easy-embed").split(":"),r=t.extend({id:o.data("id")||n[1]||"ScMzIvxBSi4",provider:o.data("provider")||n[0]||"youtube",width:o.data("width")||16,height:o.data("height")||9,controls:o.data("controls")||!1,showinfo:o.data("showinfo")||!1,color:o.data("color")||"00adef",title:o.data("title")||!1,byline:o.data("byline")||!1,portrait:o.data("portrait")||!1},i),d=function(e){switch(r.provider.toLowerCase()){case"youtube":var i="//img.youtube.com/vi/"+r.id+"/",o=["maxresdefault","hqdefault"];!function a(){var n=i+o[0]+".jpg";t("<img/>").attr("src",n).on("load",function(){120!=this.width&&90!=this.height?e(n):(o.shift(),a())})}();break;case"vimeo":t.get("//vimeo.com/api/v2/video/"+r.id+".json",function(t){e(t[0].thumbnail_large)})}},c=function(){switch(r.provider.toLowerCase()){case"youtube":return"//youtube.com/embed/"+r.id+"?rel=0&autoplay=1&controls="+(r.controls+0)+"&showinfo="+(r.showinfo+0);case"vimeo":return"//player.vimeo.com/video/"+r.id+"?autoplay=1&color="+r.color+"&title="+(r.title+0)+"&byline="+(r.byline+0)+"&portrait="+(r.controls+0)}},s=function(t){o.css("background","black url("+t+") 50% 50% / cover no-repeat")},u=function(){o.css("height",o.width()/r.width*r.height)},h=function(){o.html(t("<iframe>").attr("src",c()).attr("width","100%").attr("height","100%").attr("frameborder",0).attr("allowfullscreen",1))};return u(),t(e).resize(function(){u()}),a?h():(d(function(t){s(t)}),o.find("*").addBack().click(function(){h()})),this},t(i).ready(function(){t("[data-easy-embed]").length>0&&t("[data-easy-embed]").each(function(){t(this).easyEmbed()})})}(jQuery,window,document);

Update EasyEmbed to support jQuery 3.0