Skip to content

Commit

Permalink
�[1;36m==> modified : Script/download.js �[0m
Browse files Browse the repository at this point in the history
    �[1;36m==> modified : Style/Download.css �[0m
  • Loading branch information
mmsaeed509 committed Nov 6, 2024
1 parent 92ff53b commit 31b6f60
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 30 deletions.
51 changes: 21 additions & 30 deletions Script/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,27 +274,6 @@ $("#ARM-ed").click(function (){
});























/* Home Download Links */

document.querySelector("#onedrive-home").addEventListener("click", function() {
Expand Down Expand Up @@ -348,11 +327,6 @@ document.querySelector("#Archive-Acer").addEventListener("click", function() {
});







/* wireless Download Links */

document.querySelector("#onedrive-Wireless").addEventListener("click", function() {
Expand All @@ -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");
});
31 changes: 31 additions & 0 deletions Style/Download.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ body{
width: 100%;
height: auto;
padding-top: 20px;
padding-bottom: 100px;
}


Expand Down Expand Up @@ -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;
}

0 comments on commit 31b6f60

Please sign in to comment.