-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
37 lines (31 loc) · 1.09 KB
/
index.html
File metadata and controls
37 lines (31 loc) · 1.09 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Mosquito Repeller</title>
<link rel="stylesheet" href="style.css"/>
<link rel="manifest" href="manifest.json"/>
<meta name="theme-color" content="#2196f3" />
<link rel="icon" href="favicon.ico" type="image/x-icon">
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- App Icons for iOS -->
<link rel="apple-touch-icon" href="icons/icon-192.png" />
</head>
<body>
<h1>Mosquito Repeller</h1>
<p>Click the button below to play a frequency that only Mosquitos and your kids will hear</p>
<button id="start">Start Sound</button>
<button id="stop">Stop Sound</button>
<script src="app.js"></script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('service-worker.js')
.then(reg => console.log('SW registered:', reg))
.catch(err => console.error('SW registration failed:', err));
});
}
</script>
</body>
</html>