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
// create an instance | |
const pod = daft.pod(); | |
// load callback = success and contains the pod data | |
pod.on('load', function(event) { | |
console.log('successfully loaded a pod', event); | |
}); | |
// error callback = the requested resource does not exist |
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
http://stackoverflow.com/questions/3420004/access-parent-url-from-iframe | |
document.referrer | |
document.location |
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
http://stackoverflow.com/questions/3420004/access-parent-url-from-iframe | |
document.referrer | |
document.location |
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
// import getParameterByName from './getparameterbyname'; | |
// const definitions = {}; | |
// | |
// export const getSourceByString = function(href) {}; | |
// | |
// export const getSourceByObject = function(obj) {}; | |
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
// @TODO | |
// podid | |
// mpd/ref | |
// id (try both encoders - if someone labels it a podid dont try to load it via ref hash) | |
// always return an Obj with the following format: | |
// type: 'pod' : 'refmpd' | |
// success: true : false whether or not the URL resulted in 404 | |
// url: 'URL to published data' | |
// data: the data or if invalid an empty Object |
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
var animatePercentage = function() { | |
var counter = document.getElementById('counter'); | |
var currentCount = 0; | |
var increaseCount = function() { | |
if (currentCount >= 30) { | |
return clearInterval(increaseCount); | |
} | |
// iterate the number | |
currentCount++; | |
// add the number as HTML |
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
var handleFavoriteContacts = function(event) { | |
event.stopPropagation(); | |
// add class to selected node | |
event.target.classList.add('selected-favorites'); | |
var selected = document.querySelectorAll('.selected-favorites'); | |
if (selected.length >= 4) { | |
// we selected all the favorite contacts | |
sequenceSlider.next(); | |
} |
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
<style>div.invodo-embed {display:block;position:relative;padding-bottom:56.25%;height:0;overflow:hidden;max-width:100%;}iframe.invodo-embed-iframe {position:absolute;top:0;left:0;width:100%;height:100%;}</style> | |
<div class="invodo-embed"><iframe class="invodo-embed-iframe" frameborder='0' allowfullscreen src="http://invodo.video/?name=ixd.invodo.com&refId=NJ8MQ6FX"></iframe></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
Invodo.init({ | |
pageName: "Invodo.com Shoppable Video", | |
pageType: "other", | |
affiliate: { | |
"chromelessmode": "true", | |
} | |
}); | |
(function() { |
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
NODE_ENV=development | |
ENV_INTEGRATION=chrome | |
TEST_ONSTART=false |