-
Notifications
You must be signed in to change notification settings - Fork 0
/
MAIN.html
44 lines (30 loc) · 1.16 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
43
44
<html>
<head>
<title>MAIN</title>
<link rel="stylesheet" href="MAIN.css">
<style>
</style>
</head>
<body class="bg">
<div class="login">
<center>
<img src="account.png" id="user_img" height="130px" width="130px">
<p id="user" style="color:white;font-size: 20px;font-family:sans-serif;">Athul Nambiar</p>
<a href="DESK.html"><button id="button" onclick="mainFun()">SIGN IN</button></center></a>
</div>
<script>
// let btnwal = document.querySelector('#button');
// btnwal.addEventListener('click', ()=>{
// document.body.style.backgroundImage = "url('images/wall2.jpg')";
// });
//
const btn = document.getElementById('button');
const bgwal = document.getElementsByClassName('bg');
function mainFun() {
btn.style.display = 'none';
btn.style.visibility = 'hidden';
bgwal.style.backgroundImage = "url(wallpaper.jpg)";
}
</script>
</body>
</html>