Skip to content

Instantly share code, notes, and snippets.

@nvolungis
Last active September 15, 2015 18:31
Show Gist options
  • Save nvolungis/a45a59b3ba344e5bdad1 to your computer and use it in GitHub Desktop.
Save nvolungis/a45a59b3ba344e5bdad1 to your computer and use it in GitHub Desktop.
Modified embed include
<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