-
Notifications
You must be signed in to change notification settings - Fork 0
/
script4.js
33 lines (22 loc) · 832 Bytes
/
script4.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 = "website-construction-page-modern-illustration-flat-style_172533-131.jpg";
var label = "Dashboard";
if(mode === "dark"){
color = "darkSlateBlue";
image = "website-construction-page-modern-illustration-flat-style_172533-131.jpg";
label = "Dashboard";
}else if (mode === "light") {
color = "ghostWhite";
image = "website-construction-page-modern-illustration-flat-style_172533-131.jpg";
label = "Dashboard";
}else{
color = "dimGray";
image = "website-construction-page-modern-illustration-flat-style_172533-131.jpg";
label = "Dashboard";
}
console.log(label);
document.getElementById("icon").src = image;
document.getElementById("dashboard").style.backgroundColor = color;
document.getElementById("label").innerHTML = label;
}