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; |
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
// Copy/paste the code to the developer console, when on a Miro project page | |
// Thanks to - https://gist.github.com/valioDOTch/51b875732bfe02b39d340e5e8ad364cd | |
dashboardData = JSON.parse(localStorage["rtb_saved_dashboard"]).tree.dashboard; | |
console.log("https://miro.com/app/dashboard/?spaceId="+dashboardData.currentSpaceId+"&projectId="+dashboardData.currentProject.id); |
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
WEBVTT | |
1 | |
00:00:00.000 --> 00:00:02.043 | |
Hey everyone! Today I want to share | |
2 | |
00:00:02.043 --> 00:00:04.421 | |
The Opti-Nail Fungal Nail Repair Pen. |
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
WEBVTT | |
NOTE From https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API#within_the_webvtt_file_itself | |
STYLE | |
::cue { | |
background-image: linear-gradient(to bottom, dimgray, lightgray); | |
color: papayawhip; | |
} | |
/* Style blocks cannot use blank lines nor "dash dash greater than" */ |
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', |