-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschedule.html
207 lines (193 loc) · 6.36 KB
/
schedule.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes"
/>
<meta name="theme-color" content="transparent" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>Schedule - SWO</title>
<link rel="stylesheet" href="./css/schedule.css" />
<link
rel="shortcut icon"
href="./assets/images/swo.png"
type="image/x-icon"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Headland+One&family=Questrial&display=swap"
rel="stylesheet"
/>
</head>
<body>
<nav class="navbar">
<img
src="./assets/images/swo-logo-tp.png"
alt="SWO Logo"
class="logo swo-logo"
/>
<button class="mobile-menu-btn" aria-label="Toggle menu">
<span></span>
<span></span>
<span></span>
</button>
<div class="nav-links">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="events.html">Events</a></li>
<li><a href="schedule.html" class="active">Schedule</a></li>
<li><a href="results.html">Results</a></li>
<!-- <li><a href="#gallery">Gallery</a></li> -->
</ul>
</div>
<img
src="./assets/images/cu-logo-tp.png"
alt="CHRIST Logo"
class="logo christ-logo"
/>
</nav>
<main>
<h1 class="title">Schedule</h1>
<p class="subtitle">View the schedule of events!</p>
<div class="doc">
<div class="doc-container">
<style>
/* Inject critical styles directly */
#magazineViewport,
.magazine-viewport,
.container,
#canvas {
background: transparent !important;
}
.logo-backs, .logo-backs2, a[href="https://heyzine.com"], .controls-pdf
{
display: none !important;
}
</style>
<div
id="canvas"
style="background: transparent !important; padding: 0"
>
<iframe
src="https://heyzine.com/flip-book/3b26db88f8.html"
style="
width: 100%;
height: 100vh;
border: none;
background: transparent;
"
frameborder="0"
allowfullscreen
>
</iframe>
</div>
</div>
</div>
<a
href="https://docs.google.com/document/d/e/2PACX-1vRpZbz3ufIKZcbyxSZy-0velzjcDGv6WmNSDIDSLkEn_EC72VrZ3SCVoUAeSe5D8P8JRpN5CG5CWDtz/pub?embedded=true"
class="error"
target="_blank"
>If you can't see the schedule properly, click here.</a
>
<a href="events.html" class="contact-btn">See Events</a>
</main>
<footer>
<div class="footer-content">
<div class="divider-line"></div>
<p>
In case of queries, please drop a mail to
</p>
<p>or visit the SWO Office on 7th Floor, Block C.</p>
<br />
<p>
Made with <span class="heart">❤</span> in CHRIST University,
Yeshwanthpur
</p>
<p>
Made by
<a
href="https://www.linkedin.com/in/adarshagupta/"
target="_blank"
rel="noopener noreferrer"
style="color: inherit; text-decoration: underline"
>Adarsh Gupta</a
>
&
<a
href="https://www.linkedin.com/in/shashwatk1956/"
target="_blank"
rel="noopener noreferrer"
style="color: inherit; text-decoration: underline"
>Shashwat</a
>
</p>
</div>
</footer>
<script>
document.addEventListener("DOMContentLoaded", function () {
const mobileMenuBtn = document.querySelector(".mobile-menu-btn");
const navLinks = document.querySelector(".nav-links");
const body = document.body;
const iframe = document.querySelector("iframe");
// Mobile Menu Toggle
mobileMenuBtn.addEventListener("click", function () {
this.classList.toggle("active");
navLinks.classList.toggle("active");
body.style.overflow = this.classList.contains("active")
? "hidden"
: "";
});
// Close menu when clicking outside
document.addEventListener("click", function (e) {
if (
!mobileMenuBtn.contains(e.target) &&
!navLinks.contains(e.target)
) {
mobileMenuBtn.classList.remove("active");
navLinks.classList.remove("active");
body.style.overflow = "";
}
});
// Iframe Adjustment Function
function adjustIframe() {
const windowWidth = window.innerWidth;
const windowHeight = window.innerHeight;
// Set proper zoom and height based on screen size
if (windowWidth <= 480) {
iframe.style.height = "80vh";
iframe.style.minHeight = "300px";
// Small mobile devices
document.querySelector(".doc").style.zoom = "1"; // Reset container zoom
} else if (windowWidth <= 768) {
iframe.style.height = "75vh";
iframe.style.minHeight = "350px";
// Tablets and larger phones
document.querySelector(".doc").style.zoom = "1"; // Reset container zoom
} else {
iframe.style.height = "70vh";
iframe.style.minHeight = "400px";
document.querySelector(".doc").style.zoom = "1"; // Reset container zoom
}
}
// Initial iframe adjustment
if (iframe) {
adjustIframe();
// Adjust iframe on resize
window.addEventListener("resize", adjustIframe);
// Handle iframe load
iframe.addEventListener("load", function () {
adjustIframe();
// Ensure content is scrollable
if (this.contentWindow) {
this.contentWindow.document.body.style.overflow = "auto";
}
});
}
});
</script>
</body>
</html>