-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.html
More file actions
89 lines (86 loc) · 3.02 KB
/
Copy pathapp.html
File metadata and controls
89 lines (86 loc) · 3.02 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arctic Time Trucking Co.</title>
<link rel="icon" href="favicon.ico" sizes="any">
<link rel="icon" href="favicon.png" type="image/png" sizes="256x256">
<link rel="apple-touch-icon" href="assets/icon-192.png" sizes="192x192">
<link rel="manifest" href="manifest.json">
<meta name="theme-color" content="#d97706">
<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="Arctic Time">
<link href="tailwind.css" rel="stylesheet">
<style>
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.animate-pulse {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
.animate-bounce {
animation: bounce 1s ease-in-out infinite;
}
@keyframes shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-5px); }
75% { transform: translateX(5px); }
}
.animate-shake {
animation: shake 0.3s ease-in-out;
}
.sidebar-transition {
transition: transform 0.3s ease-in-out;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #fef3c7;
}
::-webkit-scrollbar-thumb {
background: #d97706;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #b45309;
}
/* Dialog/Modal backdrop */
.modal-backdrop {
background-color: rgba(0, 0, 0, 0.5);
}
</style>
</head>
<body class="min-h-screen bg-gradient-to-b from-orange-50 via-amber-50 to-amber-100">
<div id="app"></div>
<div id="modal-root"></div>
<div id="toast-root" class="fixed bottom-4 right-4 z-50"></div>
<script src="js/translations.js"></script>
<script src="js/localDB.js"></script>
<script src="js/utils.js"></script>
<script src="js/components.js"></script>
<script src="js/pages.js"></script>
<script src="js/app.js"></script>
<script>
if ("serviceWorker" in navigator) {
// Service Workers only work on http/https, not file://
if (window.location.protocol.startsWith('http')) {
window.addEventListener("load", () => {
navigator.serviceWorker.register("sw.js")
.catch(err => console.log('SW registration failed: ', err));
});
} else {
console.log('Service Workers require HTTP/HTTPS. Skipping registration on file protocol.');
}
}
</script>
</body>
</html>