-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
41 lines (31 loc) · 1.02 KB
/
Copy pathscript.js
File metadata and controls
41 lines (31 loc) · 1.02 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
function hoverListener(){
document.querySelector("button").style.backgroundColor="green";
}
function outListener(){
document.querySelector("button").style.backgroundColor="white";
}
// Extracting input of start.html
let named="";
let inp=window.location.search;
for(let i=10; i<inp.length; i++){
named+=inp[i];
}
document.getElementById("name").innerHTML=named;
function angryin(){
document.getElementById("angry").style.backgroundColor="red";
}
function angryout(){
document.getElementById("angry").style.backgroundColor="rgba(245, 245, 245, 0.29)";
}
function boredout(){
document.getElementById("bored").style.backgroundColor="rgba(245, 245, 245, 0.29)";
}
function motivatedout(){
document.getElementById("motivated").style.backgroundColor="rgba(245, 245, 245, 0.29)";
}
function motivatedin(){
document.getElementById("motivated").style.backgroundColor="green";
}
function boredin(){
document.getElementById("bored").style.backgroundColor="yellow";
}