Skip to content

Instantly share code, notes, and snippets.

const eventName = // play, pause, impression
const verb = // get verb from widget
const video = // data-video-source, Video name or VideoID
const container = //Block video is in, for example How To block
const eventData = // timestamp on when video was clicked and other metadata
const event = {
documentUnloading: true,
data: {
eventType: 'web.webinteraction.linkClicks',
<div class="number">1</div>
<div class="number">2</div>
<div class="number">3</div>
<div class="number">4</div>
<div class="number">5</div>
<div class="number">6</div>
<script type="text/javascript">
var numbers = document.querySelectorAll('.number')
@Blainegunn
Blainegunn / gist:f3addd6a7c659d68a88c662e78fb4986
Last active November 16, 2016 04:03
test code for myfeed
var totalHeight;
var scrollTop;
var distance;
var windowHight = window.innerHeight;
window.addEventListener('scroll', function () {
var top = (document.documentElement && document.documentElement.scrollTop) ||
document.body.scrollTop;
totalHeight = document.body.offsetHeight;
scrollTop = document.body.scrollTop;
@Blainegunn
Blainegunn / google_twunter_lol
Created February 26, 2016 21:44 — forked from jamiew/google_twunter_lol
All the dirty words from Google's "what do you love" project: http://www.wdyl.com/
easterEgg.BadWorder.list={
"4r5e":1,
"5h1t":1,
"5hit":1,
a55:1,
anal:1,
anus:1,
ar5e:1,
arrse:1,
arse:1,