-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
42 lines (34 loc) · 1.22 KB
/
main.html
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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Página em construção</title>
</head>
<body>
<h1></h1>
<script>
const name = JSON.parse(localStorage.getItem('recName'))
const mail = JSON.parse(localStorage.getItem('recMail'))
const indexPosition = JSON.parse(localStorage.getItem('indexLs'))
document.querySelector('h1').innerText = `Seja bem vindo!!!
${name[indexPosition]}
E-mail: ${mail[indexPosition]}`;
function changeBgColor(){
if(name[indexPosition] == 'vicente'){
document.body.style.backgroundColor = 'lightblue'
}
else if(name[indexPosition] == 'quel'){
document.body.style.backgroundColor = 'lightpink'
}
else if(name[indexPosition] == 'marcelo'){
document.body.style.backgroundColor = 'rgb(25,22,34)'
document.body.style.color = 'rgb(90,75,129)'
}
return ""
}
changeBgColor()
</script>
</body>
</html>