General theme: add license and add URL source code in footer

This commit is contained in:
Jesús
2020-12-29 15:36:23 -05:00
parent 701786a9cc
commit 0f78e73e80
17 changed files with 636 additions and 110 deletions

View File

@@ -0,0 +1,13 @@
(function main() {
'use strict';
const video = document.getElementById('js-video-player');
const speedInput = document.getElementById('speed-control');
speedInput.addEventListener('keyup', (event) => {
if (event.key === 'Enter') {
let speed = parseFloat(speedInput.value);
if(!isNaN(speed)){
video.playbackRate = speed;
}
}
});
}());