-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrequests.html
115 lines (110 loc) · 4 KB
/
requests.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=0.8">
<title>Request Form</title>
<link rel="stylesheet" href="https://interlinkcvhs.org/styles.css">
<link rel="icon" href="https://interlinkcvhs.org/favicon.png" type="image/png">
<style>
body {
margin: 0;
padding: 0;
}
.glass-header {
position: sticky;
top: 0;
z-index: 1000;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
padding: 10px 20px;
}
main {
padding: 20px;
}
.assignments-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
}
.assignments-row {
display: flex;
width: 100%;
gap: 20px;
}
.assignment-card {
flex: 1;
min-width: calc(33.333% - 14px);
max-width: calc(33.333% - 14px);
}
.iframe-container {
width: 100%;
height: 80vh; /* Adjust the height as needed */
overflow: hidden;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.iframe-container iframe {
width: 100%;
height: 90vh;
border: none;
}
</style>
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-8W81FT4M1N"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-8W81FT4M1N');
</script>
<body class="dark-theme">
<div id="banner-container"></div>
<header class="glass-header">
<div class="logo-container">
<a href="https://interlinkcvhs.org">
<img src="https://interlinkcvhs.org/favicon.png" style="width:50px;height:50px">
</a>
<h1 class="glow-text">Requests</h1>
</div>
<div id="nav-container"></div>
</header>
<main class="fade-in">
<div class="iframe-container">
<iframe id="JotFormIFrame-243494087444060" title="InterlinkCVHS Request Form" onload="window.parent.scrollTo(0,0)" allowtransparency="true" allow="geolocation; microphone;" src="https://form.jotform.com/243494087444060" frameborder="0" scrolling="no" > </iframe>
</div>
</main>
<script src='https://cdn.jotfor.ms/s/umd/latest/for-form-embed-handler.js'></script>
<script>window.jotformEmbedHandler("iframe[id='JotFormIFrame-243494087444060']", "https://form.jotform.com/")</script>
<script>
// Load navigation from nav.html
async function loadNav() {
try {
const response = await fetch('https://interlinkcvhs.org/navnav.html');
const nav = await response.text();
document.getElementById('nav-container').innerHTML = nav;
} catch (error) {
console.error('Error loading navigation:', error);
document.getElementById('nav-container').innerHTML = '<p>Error loading navigation. Please try again later.</p>';
}
}
// Function to load the banner
async function loadBanner() {
try {
const response = await fetch('https://interlinkcvhs.org/banner.html');
const bannerContent = await response.text();
document.getElementById('banner-container').innerHTML = bannerContent;
} catch (error) {
console.error('Error loading banner:', error);
document.getElementById('banner-container').innerHTML = '<p>Error loading banner. Please try again later.</p>';
}
}
// Fetch assignments and load navigation when the page loads
document.addEventListener('DOMContentLoaded', () => {
loadNav();
loadBanner();
});
</script>
</body>
</html>