From 31b6f608f75987aaf85c4b4258cb51b287e62fae Mon Sep 17 00:00:00 2001 From: "Mahmoud Mohamed (00xWolf - Gmail/GitHub: @mmsaeed509)" Date: Wed, 6 Nov 2024 21:15:51 +0200 Subject: [PATCH] =?UTF-8?q?=20=20=20=20=1B[1;36m=3D=3D>=20modified=20:=20S?= =?UTF-8?q?cript/download.js=20=1B[0m=20=20=20=20=20=1B[1;36m=3D=3D>=20mod?= =?UTF-8?q?ified=20:=20Style/Download.css=20=1B[0m?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Script/download.js | 51 +++++++++++++++++++--------------------------- Style/Download.css | 31 ++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 30 deletions(-) diff --git a/Script/download.js b/Script/download.js index f95db8d..4b5b4fd 100644 --- a/Script/download.js +++ b/Script/download.js @@ -274,27 +274,6 @@ $("#ARM-ed").click(function (){ }); - - - - - - - - - - - - - - - - - - - - - /* Home Download Links */ document.querySelector("#onedrive-home").addEventListener("click", function() { @@ -348,11 +327,6 @@ document.querySelector("#Archive-Acer").addEventListener("click", function() { }); - - - - - /* wireless Download Links */ document.querySelector("#onedrive-Wireless").addEventListener("click", function() { @@ -377,13 +351,30 @@ document.querySelector("#Archive-Wireless").addEventListener("click", function() window.open("https://omansh.vercel.app/ExodiaOS/archive/","_blank"); }); +function updateScrollbar(editionClass) { + // Remove existing scrollbar classes + document.body.classList.remove("home-scrollbar", "predator-scrollbar", "wireless-scrollbar", "dark-scrollbar", "arm-scrollbar"); + // Add the new scrollbar class based on the selected edition + document.body.classList.add(editionClass); +} +document.querySelector("#Home-ed").addEventListener("click", function() { + updateScrollbar("home-scrollbar"); +}); +document.querySelector("#Predator-ed").addEventListener("click", function() { + updateScrollbar("predator-scrollbar"); +}); +document.querySelector("#Wireless-ed").addEventListener("click", function() { + updateScrollbar("wireless-scrollbar"); +}); +document.querySelector("#Dark-ed").addEventListener("click", function() { + updateScrollbar("dark-scrollbar"); +}); - - - - +document.querySelector("#ARM-ed").addEventListener("click", function() { + updateScrollbar("arm-scrollbar"); +}); diff --git a/Style/Download.css b/Style/Download.css index 43937d0..1653186 100644 --- a/Style/Download.css +++ b/Style/Download.css @@ -10,6 +10,7 @@ body{ width: 100%; height: auto; padding-top: 20px; + padding-bottom: 100px; } @@ -136,3 +137,33 @@ body{ display: block; } +/* Default scrollbar style */ +body::-webkit-scrollbar { + width: 8px; +} + +body::-webkit-scrollbar-thumb { + border-radius: 4px; +} + +/* Scrollbar styles for each edition */ +.home-scrollbar::-webkit-scrollbar-thumb { + background-color: #038c96; +} + +.predator-scrollbar::-webkit-scrollbar-thumb { + background-color: #A600E7; +} + +.wireless-scrollbar::-webkit-scrollbar-thumb { + background-color: #a4133c; +} + +.dark-scrollbar::-webkit-scrollbar-thumb { + background-color: #0466c8; +} + +.arm-scrollbar::-webkit-scrollbar-thumb { + background-color: #4ad66d; +} +