SHARE
TWEET

ThemeWaves Cleanium Slider Video Fix

a guest Oct 3rd, 2013 30 Never
  1. window.fluidvids=function(a,b){"use strict";var c=function(a){this.elem=a};c.prototype={init:function(){var a=100*(this.elem.height/this.elem.width);this.elem.style.position="absolute",this.elem.style.top="0",this.elem.style.left="0",this.elem.width="100%",this.elem.height="100%";var c=b.createElement("div");c.className="fluidvids",c.style.width="100%",c.style.position="relative",c.style.paddingTop=a+"%";var d=this.elem.parentNode;d.insertBefore(c,this.elem),c.appendChild(this.elem)}};for(var d=b.getElementById("main").getElementsByTagName("iframe"),e=0;e<d.length;e++){var f=/www.youtube.com|player.vimeo.com/;d[e].src.search(f)>0&&new c(d[e]).init()}}(window,document);
RAW Paste Data
Top