-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
46 lines (46 loc) · 1.82 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Gallery</title>
<link rel="stylesheet" href="assets/styles/style.css">
<link rel="icon" href="./assets/images/icons/icon-256.ico" type="image/x-icon">
<!-- Manifest -->
<link rel="manifest" href="manifest.json">
<!-- Some things out of the manifest -->
<meta name="description" content="Simple photo gallery app test">
<meta name="theme-color" content="#000000"/>
<!-- Safari on iOS doesn't support the web app manifest so we need to specify things manually -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#000000">
<meta name="apple-mobile-web-app-title" content="Gallery test">
<link rel="apple-touch-icon" href="./assets/images/icons/icon-192-no-transparent.png">
</head>
<body>
<main>
<button id="previousImage">Previous<br />image</button>
<img alt="Sunflowers" id="slider" src="./assets/images/1.jpg" width="400" height="200"/>
<button id="nextImage">Next<br />image</button>
<button id="install-button">Add to home screen</button>
</main>
<footer>
<p>
<a href="./assets/images/verified-css3.gif">
<img style="border:0;width:88px;height:31px" src="https://jigsaw.w3.org/css-validator/images/vcss" alt="¡CSS Válido!" />
</a>
</p>
</footer>
<script src="./assets/scripts/script.js"></script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('./sw.js')
.then((reg) => {
console.log('Service worker registered.', reg);
});
});
}
</script>
</body>
</html>