Want more features on Pastebin? Sign Up, it's FREE!
Guest

ThemeWaves Cleanium Slider Video Fix

By: a guest on Oct 3rd, 2013  |  syntax: JavaScript  |  size: 0.66 KB  |  views: 30  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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);
clone this paste RAW Paste Data