Last active
September 30, 2015 16:34
-
-
Save mattkelley/360c9dc993a7b4b16848 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<!-- 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> | |
This file contains hidden or 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
// 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!'); | |
}); | |
})(); |
This file contains hidden or 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
// Check out a working example here: | |
http://jsbin.com/fepamalawe/edit?html,output | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment