-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
33 lines (31 loc) · 1.16 KB
/
index.html
File metadata and controls
33 lines (31 loc) · 1.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SnapStack</title>
<link rel="manifest" href="manifest.json">
<link rel="icon" href="snap-stack.jpg" type="image/jpeg">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>SnapStack</h1>
<label class="upload-label" for="imageUpload">Select Photos</label>
<input type="file" id="imageUpload" multiple accept="image/*" style="display: none;">
<div class="canvas-container">
<canvas id="collageCanvas"></canvas>
</div>
<button id="downloadButton" onclick="downloadCollage()">Download Collage</button>
<script src="app.js"></script>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/service-worker.js').then((registration) => {
console.log("Service Worker registered with scope:", registration.scope);
}).catch((error) => {
console.error("Service Worker registration failed:", error);
});
}
</script>
</body>
</html>