forked from AkashHiwale/daily-checklist-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
44 lines (41 loc) · 1.3 KB
/
Copy pathindex.html
File metadata and controls
44 lines (41 loc) · 1.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Daily Checklist</title>
<!-- Favicon for browser tab -->
<link rel="icon" href="https://cdn-icons-png.flaticon.com/512/6194/6194029.png" type="image/png">
<style>
/* Dynamic viewport height variable for mobile */
html, body {
margin: 0;
padding: 0;
height: calc(var(--vh, 1vh) * 100);
width: 100%;
overflow: auto; /* allow scroll for pull-to-refresh */
-webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
background-color: #f8f9fa;
}
iframe {
width: 100%;
height: 100%;
border: none;
}
</style>
</head>
<body>
<!-- Google Apps Script web app -->
<iframe
src="https://script.google.com/macros/s/AKfycbzTJMyca-eOTtkM_EfLNl-gfKA0Aie-0-giktKfJB_KpnrXRkcfOHRr460FEBOKSaix/exec"></iframe>
<script>
// Calculate actual viewport height for mobile
function setViewportHeight() {
const vh = window.innerHeight * 0.01; // 1% of real viewport height
document.documentElement.style.setProperty('--vh', `${vh}px`);
}
window.addEventListener('load', setViewportHeight);
window.addEventListener('resize', setViewportHeight);
</script>
</body>
</html>