-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatform2.html
More file actions
237 lines (221 loc) · 8.83 KB
/
Copy pathplatform2.html
File metadata and controls
237 lines (221 loc) · 8.83 KB
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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Search, Indexing & Federated Access</title>
<link href="https://fonts.googleapis.com/css2?family=Lexend:wght@400;600;700;800&display=swap" rel="stylesheet">
<style>
:root{
--o:#ffb300; --p:#f72ea7; --v:#7e57c2; --text:#fff;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{
min-height:100%;
color:var(--text);
background:url('Assets/PortalBG.jpeg')
center/cover fixed no-repeat;
font-family:'Lexend',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,sans-serif;
text-align:center;
padding:40px;
position:relative;
overflow-x:hidden;
}
body::after{content:"";position:fixed;inset:0;background:rgba(0,0,0,.65);z-index:0}
.wrap{position:relative;z-index:1;max-width:1600px;margin:0 auto}
/* Logos (below iframe) */
.logos{display:flex;justify-content:center;align-items:center;gap:18px;margin-top:28px}
.logo-cisco{height:50px;filter:drop-shadow(0 0 8px rgba(0,0,0,.25))}
.logo-splunk{height:44px;filter:drop-shadow(0 0 8px rgba(0,0,0,.25))}
.plus{font-size:42px;font-weight:800;line-height:1;opacity:.9}
/* Title */
h1{
font-size:clamp(36px,6vw,64px);
margin:10px 0 10px;
font-weight:800;
letter-spacing:.35px;
}
.grad{
background:linear-gradient(90deg,var(--o),var(--p));
-webkit-background-clip:text;
background-clip:text;
color:transparent;
}
/* Subtitle */
h2{
font-size:clamp(20px,3vw,28px);
font-weight:600;
margin:0 0 32px;
opacity:.85;
}
/* Frame */
.frame{
width:90%;
max-width:1250px;
height:74vh;
margin:-5px auto 0;
border-radius:16px;
border:3px solid rgba(255,255,255,.2);
box-shadow:0 0 30px rgba(0,0,0,.4);
background:#000;
overflow:hidden;
transition:all .3s ease;
position:relative;
}
iframe{width:100%;height:100%;border:0;}
/* Fullscreen overlay inside the frame (ai1.html pattern) */
.frame .fs-overlay{position:absolute;bottom:12px;right:12px;pointer-events:none;z-index:30}
.frame .fs-exit-btn{pointer-events:auto;align-items:center;display:inline-flex;gap:6px;padding:6px 10px;border-radius:8px;background:linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35));color:#fff;border:1px solid rgba(255,255,255,.12);font-weight:600;cursor:pointer;font-size:12px}
.frame .fs-exit-btn:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(0,0,0,.5)}
.frame .fs-exit-btn[hidden]{display:none}
/* Back button (uses JS now) */
.back{
position:fixed;
top:22px;
left:26px;
display:flex;
align-items:center;
justify-content:center;
width:48px;
height:48px;
border-radius:12px;
background:rgba(255,255,255,.06);
text-decoration:none;
color:#fff;
font-size:26px;
font-weight:700;
border:1px solid rgba(255,255,255,.12);
transition:background .2s ease, transform .2s ease;
z-index:20;
cursor:pointer;
}
.back:hover{
background:rgba(255,255,255,.1);
transform:translateX(-2px);
}
/* Corner icon (top-right) */
.corner-img{
position:fixed; top:20px; right:25px;
width:240px; max-width:18vw; height:auto;
border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,.5);
background:rgba(0,0,0,.04); object-fit:contain;
z-index:10; opacity:0.95; pointer-events:auto;
}
@media(max-width:720px){
body{padding:24px}
.logo-cisco{height:40px}
.logo-splunk{height:36px}
.frame{width:90%;height:65vh;margin-top:-6px;}
h1{margin-bottom:10px;}
h2{margin-bottom:26px;}
.corner-img{width:160px; top:15px; right:18px}
.back{width:40px;height:40px;font-size:22px;top:16px;left:18px;}
}
</style>
<style>
/* Fullscreen button (ai1.html exact) */
.fullscreen-btn{
position:fixed; top:214px; right:80px; display:flex; align-items:center; gap:8px;
padding:8px 11px; height:38px; border-radius:12px;
background:linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
color:#fff; font-family:'Lexend',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,sans-serif; font-size:14px; font-weight:700;
border:1px solid rgba(255,255,255,.28);
box-shadow:0 6px 22px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.15);
transition:background .2s ease, transform .2s ease, box-shadow .2s ease;
z-index:20; cursor:pointer; backdrop-filter: blur(4px);
}
.fullscreen-btn:hover{ background:linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.1)); transform:translateY(-1px); box-shadow:0 10px 26px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.2); }
.fullscreen-btn:focus-visible{ outline:2px solid #fff; outline-offset:3px; }
.fullscreen-btn .label{font-size:13px;letter-spacing:.2px;opacity:.95}
.fullscreen-btn .icon{font-size:16px;line-height:1}
@media(max-width:720px){ .fullscreen-btn{right:98px;height:32px;font-size:14px;top:163px;padding:6px 10px;gap:6px} .fullscreen-btn .label{display:none} .fullscreen-btn .icon{font-size:14px} }
</style>
<script>
// Inactivity timeout: redirect to index.html after 10 minutes
let inactivityTimer;
function resetTimer() {
clearTimeout(inactivityTimer);
inactivityTimer = setTimeout(() => { window.location.href = 'index.html'; }, 600000); // 10 min
}
['mousedown', 'mousemove', 'keypress', 'scroll', 'touchstart', 'click'].forEach(evt =>
document.addEventListener(evt, resetTimer, true)
);
resetTimer();
// Back behavior that avoids stepping the iframe's history:
function smartBack(fallback = 'index.html') {
if (document.referrer && document.referrer !== location.href) {
// Navigate directly to the referrer URL (top-level), bypassing session history steps
window.top.location.replace(document.referrer);
} else {
// No referrer? Go to your fallback page
window.top.location.href = fallback;
}
}
</script>
<script>
// Fullscreen toggle (ai1.html exact)
function toggleFullscreen() {
const frame = document.querySelector('.frame');
if (!document.fullscreenElement) {
frame.requestFullscreen().catch(err => { console.error('Fullscreen failed:', err); });
} else {
document.exitFullscreen();
}
}
document.addEventListener('keydown', (e) => {
const tag = (e.target && e.target.tagName) ? e.target.tagName.toLowerCase() : '';
if (tag === 'input' || tag === 'textarea' || e.altKey || e.ctrlKey || e.metaKey) return;
if (e.key === 'f' || e.key === 'F') { e.preventDefault(); toggleFullscreen(); }
});
function updateFullscreenUI(){
const frame = document.querySelector('.frame');
const exitBtn = document.getElementById('fsExitBtn');
if (!frame || !exitBtn) return;
if (document.fullscreenElement === frame) {
frame.classList.add('is-fullscreen');
exitBtn.removeAttribute('hidden');
} else {
frame.classList.remove('is-fullscreen');
exitBtn.setAttribute('hidden','');
}
}
document.addEventListener('fullscreenchange', updateFullscreenUI);
document.addEventListener('DOMContentLoaded', updateFullscreenUI);
</script>
</head>
<body>
<!-- Back button -->
<button class="back" aria-label="Go Back" onclick="smartBack('index.html')">←</button>
<!-- Fullscreen button (ai1.html exact) -->
<button class="fullscreen-btn" aria-label="Toggle Fullscreen" title="Toggle Fullscreen (F)" onclick="toggleFullscreen()">
<span class="icon" aria-hidden="true">⛶</span>
<span class="label">Fullscreen</span>
</button>
<!-- Corner icon -->
<a href="index.html" aria-label="Back to homepage"><img class="corner-img" src="Assets/platthumb2.png" alt="Splunk Platform icon"></a>
<div class="wrap" role="main">
<!-- Title and subtitle -->
<h1><span style="color:white;">Splunk</span> <span class="grad">Platform</span></h1>
<h2>Search, Indexing & Federated Access</h2>
<!-- Frame -->
<div class="frame">
<div class="fs-overlay" aria-hidden="true">
<button class="fs-exit-btn" id="fsExitBtn" aria-label="Exit fullscreen" title="Exit fullscreen" hidden onclick="toggleFullscreen()">
✕ <span class="fs-label">Exit</span>
</button>
</div>
<iframe
src="https://cisco-full-stack-observability.navattic.com/FS-S3-Demo"
title="Ingest & Data Pipelines"
allow="fullscreen; autoplay; encrypted-media; clipboard-read; clipboard-write"
loading="lazy">
</iframe>
</div>
</div>
<!-- Fallback -->
<noscript>
<p><a href="index.html">Go back</a></p>
</noscript>
</body>
</html>