-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (70 loc) · 3.06 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>UNSW VR Lab Booking</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto|Varela+Round">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
<!-- jQuery (required for Bootstrap's JavaScript plugins) -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<!-- Bootstrap JS (requires Popper.js and jQuery) -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
<style>
.animated-text {
display: inline-block;
font-size: 1.1em;
color: #555;
text-align: center;
width: 100%;
margin-top: 20px;
}
</style>
</head>
<body>
<!-- Schedule Header -->
<div class="header">
<div class="button-container">
<span class="arrow" id="prevDate"><</span>
<span class="date-display" id="currentDate"></span>
<span class="arrow" id="nextDate">></span>
</div>
<button class="book-button" id="bookButton"><i class="fa-solid fa-bookmark"></i> Book</button>
<a href="./booking.html" class="bookings-link"><i class="fa-solid fa-clipboard-list"></i> My Bookings</a>
<button id="logoutButton"><i class="fa-solid fa-arrow-right-from-bracket"></i> Logout</button>
</div>
<!-- Schedule Grid -->
<div class="schedule-container" id="moogs-list">
<!-- Time Labels -->
<div class="time-label">Time</div>
</div>
<div class="schedule-container" id="schedule"></div>
<!-- Animated Text -->
<b id="animatedText" class="animated-text"></b>
<!-- JavaScript -->
<script src="main.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
const text = "Made with ❤️ by Karan Surana";
const animatedTextSpan = document.getElementById("animatedText");
animatedTextSpan.textContent = ""; // Clear initial content
let i = 0;
function typeEffect() {
if (i < text.length) {
animatedTextSpan.textContent += text.charAt(i);
i++;
setTimeout(typeEffect, 100); // Adjust typing speed here
}
}
typeEffect();
});
</script>
</body>
</html>