-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinterlinkai.html
100 lines (96 loc) · 3.58 KB
/
interlinkai.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=0.8">
<title>𝙸𝚗𝚝𝚎𝚛𝚕𝚒𝚗𝚔𝙰𝙸</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: 0;
height: 100vh; /* Ensure main takes full viewport height */
overflow: hidden;
}
.iframe-container {
width: 100%;
height: 100%; /* Make the iframe container take full height */
overflow: hidden;
border-radius: 0; /* Remove border radius */
box-shadow: none; /* Remove box shadow */
}
.iframe-container iframe {
width: 100%;
height: 100%; /* Ensure the iframe fills the container */
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">InterlinkAI</h1>
</div>
<div id="nav-container"></div>
</header>
<main class="fade-in">
<div class="iframe-container">
<!-- Regular iframe -->
<iframe id="interlinkAI" title="InterlinkAI" src="https://interlinkai.streamlit.app/?embedded=True&embed_options=dark_theme" scrolling="no"></iframe>
</div>
</main>
<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>