-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (53 loc) · 1.79 KB
/
index.html
File metadata and controls
56 lines (53 loc) · 1.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Time Tracker" />
<meta name="theme-color" content="#020202" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<title>Street Lamp - Time Tracker</title>
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
width: 100%;
height: 100%;
background: #020202;
overflow: hidden; /* prevent body scroll — iframe handles its own */
}
iframe {
display: block;
width: 100%;
height: 100%;
border: none;
position: fixed;
inset: 0;
}
</style>
</head>
<body>
<iframe
id="trackerFrame"
src="https://script.google.com/macros/s/AKfycbwt-M9s_KyqfLTIX-4IMP5aCSY28HAYjZlW7F82zvzyU-4l0inlq2FnZNsAbgdR1_hfnA/exec"
title="Street Lamp Time Tracker"
allow="clipboard-write"
></iframe>
<script>
window.addEventListener('message', function(e) {
// Resize iframe to match content height
if (e.data && e.data.type === 'resize') {
var frame = document.getElementById('trackerFrame');
if (frame) frame.style.height = (e.data.height + 50) + 'px';
}
// Scroll to top when a modal opens
if (e.data && e.data.type === 'scrollTop') {
window.scrollTo({ top: 0, behavior: 'smooth' });
}
});
</script>
</body>
</html>