-
Notifications
You must be signed in to change notification settings - Fork 0
/
script1.js
33 lines (22 loc) · 908 Bytes
/
script1.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
function selectMode(mode){
var color = "ghostWhite";
var image = "111605382-settings-icon-vector-isolated-on-white-background-settings-transparent-sign.jpg";
var label = "Contact Us";
if(mode === "dark"){
color = "darkSlateBlue";
image = "111605382-settings-icon-vector-isolated-on-white-background-settings-transparent-sign.jpg";
label = "Contact Us";
}else if (mode === "light") {
color = "ghostWhite";
image = "111605382-settings-icon-vector-isolated-on-white-background-settings-transparent-sign.jpg";
label = "Contact Us";
}else{
color = "dimGray";
image = "111605382-settings-icon-vector-isolated-on-white-background-settings-transparent-sign.jpg";
label = "Contact Us";
}
console.log(label);
document.getElementById("icon").src = image;
document.getElementById("contactus").style.backgroundColor = color;
document.getElementById("label").innerHTML = label;
}