Video Player, Konami Code, and Local Storage

Custom HTML5 Video http://codepen.io/digilou/pen/jBgvZq double underscore in CSS and HTML is a sub-element that is modified video properties (currentTime, paused, textContent, offsetX) more addEventListener use! Key Sequence Detection http://www.cornify.com/js/cornify.js const pressed = []; const secretCode = 'wesbos'; window.addEventListener('keyup', (e) => {   console.log(e.key);   pressed.push(e.key);   pressed.splice(-secretCode.length - 1, pressed.length - secretCode.length);   if (pressed.join('').includes(secretCode)) … Continue reading Video Player, Konami Code, and Local Storage