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 events are from https://www.w3.org/TR/html5/semantics-embedded-content.html#media-elements-event-summary | |
import videojs from 'video.js' | |
const Plugin = videojs.getPlugin('plugin') | |
const EVENTS = [ | |
'loadstart', | |
'progress', | |
'suspend', | |
'abort', | |
'error', |
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
//First thing: get the product SFID | |
function prod_callback(result) { | |
prod_id_array.push(result); | |
} | |
com.veeva.clm.getDataForCurrentObject("KeyMessage", "Product_vod__c", prod_callback); | |
function track(arr) { |
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
/** | |
* Veeva ClickStream tracking class. | |
* | |
* Author: Jeremy Daley | |
* Liscence: MIT | |
*/ | |
ClickStream.prototype.virtualInterval = -1; | |
ClickStream.prototype.calls = []; // Queued calls | |
ClickStream.prototype.debug = false; |