Last active
September 15, 2015 18:31
-
-
Save nvolungis/a45a59b3ba344e5bdad1 to your computer and use it in GitHub Desktop.
Modified embed include
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
<script type="text/javascript"> | |
$(document).ready(function(){ | |
var head = document.getElementsByTagName('head')[0], | |
ev1Script, metaDataScript; | |
ev1Script = document.createElement('script'); | |
ev1Script.src = "//fast.wistia.com/assets/external/E-v1.js"; | |
ev1Script.type = "text/javascript"; | |
ev1Script.charset = "ISO-8859-1"; | |
metaDataScript = document.createElement('script'); | |
metaDataScript.src = "//fast.wistia.com/embed/medias/agmhsklp6p/metadata.js"; | |
metaDataScript.type = "text/javascript"; | |
metaDataScript.charset = "ISO-8859-1"; | |
$(ev1Script).on('load', function(){ | |
wistiaEmbed = Wistia.embed("agmhsklp6p", { | |
videoFoam: true | |
}); | |
head.appendChild(metaDataScript); | |
}); | |
head.appendChild(ev1Script); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment