From 76380821d93cc48ca95d4c32a2f2fd30d0b8390e Mon Sep 17 00:00:00 2001 From: Dominika Liberda Date: Tue, 6 Jul 2021 11:02:19 +0000 Subject: [PATCH] * fixes control bar not hiding; uncluttered control bar from useless buttons --- webroot/css/style.css | 5 +++++ webroot/js/player.js | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/webroot/css/style.css b/webroot/css/style.css index b6a99e2..d0f3fcc 100644 --- a/webroot/css/style.css +++ b/webroot/css/style.css @@ -4,3 +4,8 @@ pre { white-space: pre-wrap; } + +/* Unimplemented buttons */ +.ytp-button-watch-later, .ytp-subtitles-button, .ytp-size-toggle-large { + display: none !important; +} diff --git a/webroot/js/player.js b/webroot/js/player.js index cd9c3c9..b76f87f 100644 --- a/webroot/js/player.js +++ b/webroot/js/player.js @@ -235,7 +235,11 @@ window.addEventListener('DOMContentLoaded', (event) => { if(type != "controls") { mouseMoveTimeout = setTimeout(() => { controlbar.style="transform: translateY(40px);"; - }, 2000); + }, 2000); + } else if (type == "controls") { + mouseMoveTimeout = setTimeout(() => { + controlbar.style="transform: translateY(40px);"; + }, 8000); } }