-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathscript.js
122 lines (92 loc) · 5.92 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
function darkToggleSwitch()
{
const span = document.getElementById('darkSpan');
var spantext = span.textContent.trim();
if(spantext == 'light_mode')
{
document.body.style.transitionDuration = '0.2s';
document.getElementById("darkSpan").textContent = "dark_mode";
document.body.style.backgroundColor = '#121212';
document.getElementById("input-label").style.color = '#f9f9f9';
document.getElementById("input-label1").style.color = '#f9f9f9';
document.getElementById("input-label2").style.color = '#f9f9f9';
document.getElementById("input-label3").style.color = '#f9f9f9';
document.getElementById("input-label4").style.color = '#f9f9f9';
document.getElementById("input-label5").style.color = '#f9f9f9';
document.getElementById("input-label6").style.color = '#f9f9f9';
document.getElementById("input-label7").style.color = '#f9f9f9';
document.getElementById("input-label8").style.color = '#f9f9f9';
document.getElementById("dark-toggle").style.backgroundColor = '#252525';
document.getElementById("Name").style.backgroundColor = '#464646';
document.getElementById("Name").style.color = '#ffffff';
document.getElementById("Date").style.backgroundColor = '#464646';
document.getElementById("Date").style.color = '#ffffff';
document.getElementById("Role").style.backgroundColor = '#464646';
document.getElementById("Role").style.color = '#ffffff';
document.getElementById("photography").style.backgroundColor = '#464646';
document.getElementById("photography").style.color = '#ffffff';
document.getElementById("Number").style.backgroundColor = '#464646';
document.getElementById("Number").style.color = '#ffffff';
document.getElementById("mail").style.backgroundColor = '#464646';
document.getElementById("mail").style.color = '#ffffff';
document.getElementById("comment").style.backgroundColor = '#464646';
document.getElementById("comment").style.color = '#ffffff';
document.getElementById("reset-button").style.color = '#ffffff';
document.getElementById("gallery").style.backgroundColor = '#252525';
document.getElementById("desc").style.color = '#ffffff';
document.getElementById("gallery1").style.backgroundColor = '#252525';
document.getElementById("desc1").style.color = '#ffffff';
document.getElementById("gallery2").style.backgroundColor = '#252525';
document.getElementById("desc2").style.color = '#ffffff';
document.getElementById("gallery3").style.backgroundColor = '#252525';
document.getElementById("desc3").style.color = '#ffffff';
document.getElementById("polaroidnew").style.backgroundColor = '#252525';
document.getElementById("darkSpan").style.color = '#f9f9f9';
document.getElementById("heading-pixobia").style.color = '#f9f9f9';
document.getElementById("thirdpara").style.color = '#ffffff';
document.getElementById("margin").style.backgroundColor = '#252525';
}
else if(spantext == 'dark_mode')
{
document.body.style.transitionDuration = '0.2s';
document.getElementById("darkSpan").innerHTML = "light_mode";
document.body.style.backgroundColor = '#ffffff';
document.getElementById("margin").style.backgroundColor = '#f9f9f9';
document.getElementById("heading-pixobia").style.color = '#000000';
document.getElementById("darkSpan").style.color = '#000000';
document.getElementById("input-label").style.color = '#000000';
document.getElementById("input-label1").style.color = '#000000';
document.getElementById("input-label2").style.color = '#000000';
document.getElementById("input-label3").style.color = '#000000';
document.getElementById("input-label4").style.color = '#000000';
document.getElementById("input-label5").style.color = '#000000';
document.getElementById("input-label6").style.color = '#000000';
document.getElementById("input-label7").style.color = '#000000';
document.getElementById("input-label8").style.color = '#000000';
document.getElementById("dark-toggle").style.backgroundColor = '#ffffff';
document.getElementById("Name").style.backgroundColor = '#ffffff';
document.getElementById("Name").style.color = '#000000';
document.getElementById("Date").style.backgroundColor = '#ffffff';
document.getElementById("Date").style.color = '#000';
document.getElementById("Role").style.backgroundColor = '#ffffff';
document.getElementById("Role").style.color = '#000';
document.getElementById("photography").style.backgroundColor = '#ffffff';
document.getElementById("photography").style.color = '#000';
document.getElementById("Number").style.backgroundColor = '#ffffff';
document.getElementById("Number").style.color = '#000';
document.getElementById("mail").style.backgroundColor = '#ffffff';
document.getElementById("mail").style.color = '#000';
document.getElementById("comment").style.backgroundColor = '#ffffff';
document.getElementById("comment").style.color = '#000';
document.getElementById("gallery").style.backgroundColor = '#ffffff';
document.getElementById("desc").style.color = '#000';
document.getElementById("gallery1").style.backgroundColor = '#ffffff';
document.getElementById("desc1").style.color = '#000';
document.getElementById("gallery2").style.backgroundColor = '#ffffff';
document.getElementById("desc2").style.color = '#000';
document.getElementById("gallery3").style.backgroundColor = '#ffffff';
document.getElementById("desc3").style.color = '#000';
document.getElementById("polaroidnew").style.backgroundColor = '#ffffff';
document.getElementById("reset-button").style.color = '#000';
}
}