-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
79 lines (73 loc) · 2.54 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>sketch-to-lineart</title>
<meta name="description" content="tool for converting sketches to transparent lineart" />
<meta name="robots" content="index, follow" />
<meta name="theme-color" content="#FFFFFF">
<meta property="og:type" content="website" />
<meta property="og:url" content="https://seansleblanc.itch.io/sketch-to-lineart" />
<meta property="og:title" content="sketch-to-lineart" />
<meta property="og:description" content="tool for converting sketches to transparent lineart" />
<meta property="og:image" content="https://raw.githubusercontent.com/seleb/sketch-to-lineart/main/cover.png" />
<link rel="icon" href="./src/icon.png" type="image/png" />
<link rel="apple-touch-icon" href="./src/icon_512.png" />
<link rel="manifest" href="./manifest.webmanifest" />
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "WebApplication",
"name": "sketch-to-lineart",
"description": "tool for converting sketches to transparent lineart",
"url": "https://seansleblanc.itch.io/sketch-to-lineart",
"applicationCategory": "Art",
"operatingSystem": "all",
"browserRequirements": "Requires JavaScript. Requires HTML5.",
"offers": {
"@type": "Offer",
"priceCurrency": "USD",
"price": "0.00"
},
"softwareHelp": {
"@type": "CreativeWork",
"url": "https://github.com/seleb/sketch-to-lineart/issues"
}
}
</script>
<script>
// https://www.bha.ee/how-to-make-your-parcel-js-app-progressive/
// this is needed because parcel will not try to resolve this as a file
const sw = "service-worker.js";
navigator.serviceWorker
.register(sw)
.then(registration => {
registration.onupdatefound = () => {
const installingWorker = registration.installing;
if (installingWorker == null) {
return;
}
installingWorker.onstatechange = () => {
if (installingWorker.state === "installed") {
if (navigator.serviceWorker.controller) {
console.log(
"New content is available and will be used when all tabs for this page are closed."
);
} else {
console.log("Content is cached for offline use.");
}
}
};
};
})
.catch(error => {
console.error("Error during service worker registration:", error);
});
</script>
</head>
<body>
<script src="./src/index.ts"></script>
<noscript>This tool requires javascript to be enabled.</noscript>
</body>
</html>