Last active
July 19, 2016 18:00
-
-
Save jramsahai/83e69c2c06a949e4dc30 to your computer and use it in GitHub Desktop.
The following JavaScript and HTML is required for embedding on an Eloqua landing page. Note that this is not required for embedding on an Eloqua HTML landing page.
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
<!-- | |
Replace [UUID] with the UUID of the player you are attemping to embed. | |
To find the UUID of a player, see http://support.vidyard.com/articles/Public_Support/Find-the-UUID-for-your-player/ | |
--> | |
<div id="[UUID]"> | |
</div> |
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 src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> | |
<script type="text/javascript"> | |
// Replace [UUID] with the UUID of the player you are attemping to embed. | |
// To find the UUID of a player, see http://support.vidyard.com/articles/Public_Support/Find-the-UUID-for-your-player/ | |
var embedScript=document.createElement('script'); | |
embedScript.type='text/javascript'; | |
embedScript.id='vidyard_embed_code_[UUID]'; | |
embedScript.src='//play.vidyard.com/[UUID].js?v=3.1.1&type=inline'; | |
$(document).ready(function(){ | |
$("#[UUID]").append(embedScript); | |
}); | |
</script> |
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 src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> | |
<script type="text/javascript"> | |
// Replace [UUID] with the UUID of the player you are attemping to embed. | |
// To find the UUID of a player, see http://support.vidyard.com/articles/Public_Support/Find-the-UUID-for-your-player/ | |
var embedScript=document.createElement('script'); | |
embedScript.type='text/javascript'; | |
embedScript.id='vidyard_embed_code_[UUID]'; | |
embedScript.src='//play.vidyard.com/[UUID].js?v=3.1.1&type=lightbox'; | |
$(document).ready(function(){ | |
$("#[UUID]").append(embedScript); | |
/* When adding the UUID to the function name "fn_vidyard_[UUID]" in the line below, replace any dashes (-) with dollar signs ($) e.g. fn_vidyard_arlhtoDOr-y4rGm-eXnOFA becomes fn_vidyard_arlhtoDOr$y4rGm$eXnOFA */ | |
$("#[UUID]").append("<div class='outer_vidyard_wrapper'><div class='vidyard_wrapper' onclick='fn_vidyard_[UUID]();'><img alt='Homepage video' width='360' src='//play.vidyard.com/[UUID].jpg?' /><div class='vidyard_play_button'><a href='javascript:void(0);'></a></div></div></div>"); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This can also be used at current to embed in Act-On landing pages where the customer may not have a CNAME set up and therefore may not have access to embedding JS through the custom-content element