Repository navigation
Expand file tree
/
Copy paththemes.js
More file actions
92 lines (77 loc) · 2.45 KB
/
Copy paththemes.js
File metadata and controls
92 lines (77 loc) · 2.45 KB
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
function toggleTheme() {
function lightMode() {
let element = document.body;
element.classList.toggle('light-mode');
}
lightMode();
function bottomDiv() {
let btmElement = document.querySelector('.info');
btmElement.classList.toggle('some');
}
bottomDiv();
function theOption() {
let optionTheme = document.querySelector('.option');
optionTheme.classList.toggle('some');
}
theOption();
function theCustomization() {
let customTheme = document.querySelector('.customization');
customTheme.classList.toggle('some');
}
theCustomization();
function theInput() {
let inputTheme = document.querySelector('.input');
inputTheme.classList.toggle('some')
}
theInput();
function theHeading() {
let headTheme = document.querySelector('.heading-part');
headTheme.classList.toggle('some');
}
theHeading();
function makeChange() {
let theChange = document.getElementById('changer');
theChange.classList.toggle('forbtn');
}
makeChange();
function makeCopy() {
let theCopy = document.getElementById('copy');
theCopy.classList.toggle('forbtn');
}
makeCopy();
function theComplete() {
let themeComplete = document.getElementById('complete');
themeComplete.classList.toggle('forbtn');
}
theComplete();
function theString() {
let themeString = document.getElementById('string');
themeString.classList.toggle('forbtn');
}
theString();
function theNumber() {
let themeNumber = document.getElementById('number');
themeNumber.classList.toggle('forbtn');
}
theNumber();
function increaseLenght() {
let themeOfInc = document.querySelector('.passwordLengthIncrease');
themeOfInc.classList.toggle('forbtn');
}
increaseLenght();
function decreaseLenght() {
let themeofDec = document.querySelector('.passwordLengthDecrease');
themeofDec.classList.toggle('forbtn');
}
decreaseLenght();
function settings() {
let theSettings = document.querySelector('.theme');
theSettings.classList.toggle('forbtn');
}
settings();
function onClicked() {
let icon = document.getElementById('sett');
icon.src = (icon.src.endsWith('lightbulb-solid(1).svg')) ? 'lightbulb-solid(2).svg' : 'lightbulb-solid(1).svg';
}
onClicked();
}