forked from BlackDeath1107/SorteriaDiversion2k22
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
93 lines (80 loc) · 2.72 KB
/
index.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
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
<!DOCTYPE html>
<html lang="en">
<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>Sorteria</title>
<link rel="stylesheet" href="index.css"/>
</head>
<body>
<section class="showcase">
<header>
<h2 class="logo">SORTERIA</h2>
<div class="toggle">
<img src="https://img.icons8.com/material-outlined/24/000000/menu--v3.png" id="bars"/>
<img src="https://img.icons8.com/external-becris-lineal-becris/64/000000/external-cancel-mintab-for-ios-becris-lineal-becris.png" id="cross"/>
</div>
</header>
<video src="/media-files/dna.mp4" autoplay muted loop></video>
<div class="overlay"></div>
<div class="text">
<h2 id = "morning">GOOD MORNING !</h2>
<h2 id = "afternoon">GOOD AFTERNOON !</h2>
<h2 id = "evening">GOOD EVENING !</h2>
<br>
<hr style="height:20px;width:65%;color:white">
<br>
<h3>Never worry about organising your Medical Documents</h3>
<p>Sorteria will help you organise your medical documents seamlessly.
Get to access it anytime, anywhere!</p>
<a href="fe-pgs/s-up_s-in_pgs/signin.html" class="login">Login</a>
<a href="fe-pgs/s-up_s-in_pgs/signup.html" class="signup">Sign Up</a>
</div>
</section>
<div class="menu">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
<script>
const menuToggle = document.querySelector('.toggle')
const showcase = document.querySelector('.showcase')
let now = new Date();
let t = now.getHours();
if(t>=0 && t<12)
{
morning.style.display='flex';
afternoon.style.display='none';
evening.style.display='none';
}
else if(t>=12 && t<18){
morning.style.display='none';
afternoon.style.display='flex';
evening.style.display='none';
}
else{
morning.style.display='none';
afternoon.style.display='none';
evening.style.display='flex';
}
menuToggle.addEventListener('click', () => {
menuToggle.classList.toggle('active')
showcase.classList.toggle('active')
let bars = document.getElementById('bars');
let cross = document.getElementById('cross');
if(bars.style.display!='none'){
bars.style.display='none';
cross.style.display='flex';
}
else{
cross.style.display='none';
bars.style.display='flex';
}
})
</script>
</body>
</html>
<!-- vdnvdn -->