-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
34 lines (30 loc) · 929 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$(document).ready(function(){
$(".color").click(function(){
$(":root").css("--main-bg-color", "dodgerblue");
$(":root").css("--alternate-bg-color", "#4169E1");
});
});
$(document).ready(function(){
$(".color1").click(function(){
$(":root").css("--main-bg-color", "orange");
$(":root").css("--alternate-bg-color", "#FF8C00");
});
});
$(document).ready(function(){
$(".color2").click(function(){
$(":root").css("--main-bg-color", "#FF3333");
$(":root").css("--alternate-bg-color", "#DC143C");
});
});
$(document).ready(function(){
$(".color3").click(function(){
$(":root").css("--main-bg-color", "#9ACD32");
$(":root").css("--alternate-bg-color", "#32CD32");
});
});
$(document).ready(function(){
$(".color4").click(function(){
$(":root").css("--main-bg-color", "#FFFF00");
$(":root").css("--alternate-bg-color", "#DBDB00");
});
});