-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwondrous.html
66 lines (56 loc) · 2.64 KB
/
wondrous.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
<html>
<head>
<title>Matthew Marquise</title>
<!-- METAS -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- LINKS -->
<link rel="stylesheet" href="main.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="stylesheet" href="responsive-full-background-image.css">
<link href="https://fonts.googleapis.com/css2?family=Didact+Gothic&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- SCRIPTS -->
<script src="main.js"></script>
</head>
<body>
<div class="container">
<div><img id="img" class="bg" style="pointer-events: none;"></div>
<div class="bottom-left" style="font-size: 30">
<span style="cursor:pointer" onclick="openNav()">☰</span>
</div>
<div class="top-right" style="font-size: 20;">Wondrous</div>
<!--TIME OF DAY MESSAGE-->
<div class="centered" style="font-size: 90; color: white;">
<h6>
<script>
/* TIME OF DAY - WELCOME MESSAGE (CENTERED) */
var data = [
[0, 4, "Goodnight,"],
[5, 11, "Good morning,"], //Store messages in an array
[12, 17, "Good afternoon,"],
[18, 24, "Goodnight,"]
],
hr = new Date().getHours();
for(var i = 0; i < data.length; i++){
if(hr >= data[i][0] && hr <= data[i][1]){
document.write(data[i][2]);
}
}
</script>
John
</h6>
</div>
</div>
<!--SIDENAV-->
<div id="mySidenav" class="sidenav">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()"><i style="font-size: 35;" class="fa fa-times-thin fa-2x" aria-hidden="true"></i></a>
<a id="nohover">Hello, <br>John Doe<br>____<br></a>
<a href="#">Your Dashboard</a>
<a href="#">Account</a>
<a href="#">News</a>
<a href="#">Logout</a>
</div>
</body>
</html>