Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dunn
Created June 7, 2020 04:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dunn/866c7ba40150ccc37c6850402ab1e043 to your computer and use it in GitHub Desktop.
Save dunn/866c7ba40150ccc37c6850402ab1e043 to your computer and use it in GitHub Desktop.
const emitters = [
"abort",
"animationcancel",
"animationend",
"animationiteration",
"animationstart",
"auxclick",
"blur",
"canplay",
"canplaythrough",
"change",
"click",
"close",
"contextmenu",
"copy",
"cuechange",
"cut",
"dblclick",
"drag",
"dragend",
"dragenter",
"dragexit",
"dragleave",
"dragover",
"dragstart",
"drop",
"durationchange",
"emptied",
"encrypted",
"ended",
"error",
"focus",
"formdata",
"fullscreenchange",
"fullscreenerror",
"gotpointercapture",
"input",
"invalid",
"keydown",
"keypress",
"keyup",
"load",
"loadeddata",
"loadedmetadata",
"loadend",
"loadstart",
"lostpointercapture",
"mousedown",
"mouseenter",
"mouseleave",
"mousemove",
"mouseout",
"mouseover",
"mouseup",
"mozfullscreenchange",
"mozfullscreenerror",
"paste",
"pause",
"play",
"playing",
"pointercancel",
"pointerdown",
"pointerenter",
"pointerleave",
"pointermove",
"pointerout",
"pointerover",
"pointerup",
"progress",
"ratechange",
"reset",
"resize",
"scroll",
"seeked",
"seeking",
"select",
"selectstart",
"show",
"stalled",
"submit",
"suspend",
"timeupdate",
"toggle",
"transitioncancel",
"transitionend",
"transitionrun",
"transitionstart",
"volumechange",
"waiting",
"waitingforkey",
"webkitanimationend",
"webkitanimationiteration",
"webkitanimationstart",
"webkittransitionend",
"wheel"
];
emitters.forEach(event => {
videoElement.addEventListener(event, (e) => {
console.log(`${event} fired; got ${e}`);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment