added dom

This commit is contained in:
2025-11-20 17:25:11 +03:00
parent 50443223cd
commit 864bbef52d
353 changed files with 7926 additions and 2542 deletions

View File

@@ -0,0 +1,34 @@
//waits until page is ready
$(document).ready(function(){
//will need to comment out some code when trying to view effects on theeir own
//hides all panels when a panel is clicked
$(".theButton").click(function(){
$("#panel .container").siblings().hide();
});
//hides only the panel that was clicked
$(".theButton").click(function(){
$(this).hide();
})
//adds a fadeTo to all panels when a panel is clicked
$(".theButton").click(function(){
$("#panel .container").siblings().fadeTo(1000, .5);
});
//restores all panels to full opacity when reset button clicked
$(".superButton").click(function(){
$("#panel .container").siblings().fadeTo(1000,1);
});
//turns panel background black on mouseenter
$(".theButton").mouseenter(function(){
$(this).addClass("makeBlack");
});
//returns to original colour on mouseout
$(".theButton").mouseout(function(){
$(this).removeClass("makeBlack");
});
});