pub / yt2html

Fetches Youtube content via RSS and provides a chronological timeline
git clone https://src.jayvii.de/pub/yt2html.git
Home | Log | Files | Exports | Refs | README | RSS

commit 95d3f193ebd8be2728a2a05ebd6d5cde236eb3cd
parent 68bf27993f709e1d8bb2dca4e8f8648baf7563c9
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Mon, 21 Oct 2024 23:04:19 +0200

fix: remove unnecessary files

Diffstat:
Dassets/js/thumbnails.js | 21---------------------
Mindex.php | 14+++++++++-----
2 files changed, 9 insertions(+), 26 deletions(-)

diff --git a/assets/js/thumbnails.js b/assets/js/thumbnails.js @@ -1,21 +0,0 @@ -// Disable images -function setThumbnails() { - if (sessionStorage.getItem("disable-thumbnails") == 1) { - document.querySelectorAll(".thumbnails").forEach(function(tn) { - tn.style = "display:none;"; - }); - } else { - document.querySelectorAll(".thumbnails").forEach(function(tn) { - tn.style = "display:unset;"; - }); - } -} -function toggleThumbnails() { - if (sessionStorage.getItem("disable-thumbnails") == 1) { - sessionStorage.setItem("disable-thumbnails", 0); - } else { - sessionStorage.setItem("disable-thumbnails", 1); - } - setThumbnails(); -} - diff --git a/index.php b/index.php @@ -17,7 +17,6 @@ <link rel="stylesheet" type="text/css" href="/assets/css/simple.min.css"/> <link rel="stylesheet" type="text/css" href="/assets/css/custom.css"/> <script async src="assets/js/yt.js"></script> - <script src="assets/js/thumbnails.js"></script> <link crossorigin="use-credentials" rel="manifest" href="/manifest.json"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> @@ -146,10 +145,12 @@ ?> + <body onload="setThumbnails();"> + <header> <nav> - <a href="#" onclick="window.location.reload();">Refresh</a> <a href="/">All Videos</a> + <a href="#" onclick="window.location.reload();">Refresh</a> <a href="https://src.jayvii.de/pub/yt2html">Development</a> </nav> <h1>Videos</h1> @@ -236,8 +237,11 @@ <?php - $index++; + $index++; - } + } -?> + ?> + + </body> +</html>