Last active
September 7, 2015 12:59
-
-
Save vibhavsinha/e4a2c5f3235aafb4b2fd to your computer and use it in GitHub Desktop.
Asynchronous vdocipher video embed code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="vdo%OTP%" style="height:400px;width:640px;max-width:100%;"></div> | |
<script> | |
(function(v,i,d,e,o){v[o]=v[o]||{}; v[o].add = v[o].add || function V(a){ (v[o].d=v[o].d||[]).push(a);}; | |
if(!v[o].l) { v[o].l=1*new Date(); a=i.createElement(d), m=i.getElementsByTagName(d)[0]; | |
a.async=1; a.src=e; m.parentNode.insertBefore(a,m);} | |
})(window,document,'script','//de122v0opjemw.cloudfront.net/vdo.js','vdo'); | |
vdo.add({ | |
o: "%OTP%", | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The height of the div will automatically adjust in case the width is restricted and will keep the same aspect ratio as defined by the style.height and style.width parameter.