|
|
@@ -17,30 +17,3 @@ $(window).scroll(function(e){ |
|
|
|
}); |
|
|
|
lastVertPos = currVertPos; |
|
|
|
}); |
|
|
|
|
|
|
|
/* |
|
|
|
* Make the dimensions of the vimeo video fluid. |
|
|
|
*/ |
|
|
|
(function adjustVimeoDimensions(){ |
|
|
|
var iframe = $("iframe#vimeo")[0]; |
|
|
|
var videoRatio = (iframe.height / iframe.width) * 100; |
|
|
|
|
|
|
|
iframe.style.position = "absolute"; |
|
|
|
iframe.style.top = "0"; |
|
|
|
iframe.style.left = "0"; |
|
|
|
iframe.width = "100%"; |
|
|
|
iframe.height = "100%"; |
|
|
|
|
|
|
|
iframe.style.height = ""; |
|
|
|
iframe.style.width = ""; |
|
|
|
|
|
|
|
var wrap = document.createElement("div"); |
|
|
|
wrap.className = "fluid-vids"; |
|
|
|
wrap.style.width = "100%"; |
|
|
|
wrap.style.position = "relative"; |
|
|
|
wrap.style.paddingTop = videoRatio + "%"; |
|
|
|
|
|
|
|
var iframeParent = iframe.parentNode; |
|
|
|
iframeParent.insertBefore(wrap, iframe); |
|
|
|
wrap.appendChild(iframe); |
|
|
|
}()); |