diff options
author | Jesús <heckyel@hyperbola.info> | 2021-08-29 22:43:10 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-08-29 22:43:10 -0500 |
commit | 309ff409436a5a016c33f71f8b483d9ed226aaaf (patch) | |
tree | bd42edc063787b274e317e6dd98a0ee909879322 /youtube/static/js/speedyplay.js | |
parent | 56b17c634ce629b6d84a4118de14b426cc7955ba (diff) | |
download | yt-local-309ff409436a5a016c33f71f8b483d9ed226aaaf.tar.lz yt-local-309ff409436a5a016c33f71f8b483d9ed226aaaf.tar.xz yt-local-309ff409436a5a016c33f71f8b483d9ed226aaaf.zip |
watch.html: Move loose inline javascript into watch.js
The number of inline code blocks and the dependencies between them
became unmanageable.
From 9d96c07a3c2e68f1893634574c3be64e41a2c041 Mon Sep 17 00:00:00 2001
From: James Taylor <user234683@users.noreply.github.com>
Diffstat (limited to 'youtube/static/js/speedyplay.js')
-rw-r--r-- | youtube/static/js/speedyplay.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/youtube/static/js/speedyplay.js b/youtube/static/js/speedyplay.js deleted file mode 100644 index 58b5d33..0000000 --- a/youtube/static/js/speedyplay.js +++ /dev/null @@ -1,13 +0,0 @@ -(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; - } - } - }); -}()); |