Skip to content

Instantly share code, notes, and snippets.

@mattkelley
Last active September 30, 2015 16:34
Show Gist options
  • Save mattkelley/360c9dc993a7b4b16848 to your computer and use it in GitHub Desktop.
Save mattkelley/360c9dc993a7b4b16848 to your computer and use it in GitHub Desktop.
<!-- The experience requires a DOM element -->
<div id="gopro-ivp-example-widget"></div>
<!-- Include Shoppable Video styles on the page -->
<link rel="stylesheet" href="//ixd.invodo.com/ivp/2.1.0/ivp.min.css">
<!-- Include Invodo.js on the page -->
<script src="//e.invodo.com/4.0/s/ixd.invodo.com.js"></script>
<!-- Include Shoppable Video library on the page -->
<script src="//ixd.invodo.com/ivp/2.1.0/ivp.min.js"></script>
// Invodo Init
Invodo.init({
pageName: 'IVP GoPro Example Code',
pageType: 'product'
});
(function() {
// Get the element
var el = document.getElementById('gopro-ivp-example-widget');
// Create the Shoppable args
var args = {
refId: 'QSF8WJUC'
};
// Create the Shoppable widget
var ivp = new Invodo.Ixd.Ivp(el, args, function() {
console.log('the widget is ready!');
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment