66 lines
2.7 KiB
HTML
66 lines
2.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>Цветные линии</title>
|
|
|
|
<base href="/" />
|
|
|
|
<!-- This meta viewport ensures the webpage's dimensions change according to the device it's on. This is called Responsive Web Design.-->
|
|
<meta name="viewport"
|
|
content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
|
|
<meta name="description" content="Цветные линии" />
|
|
|
|
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#181818" />
|
|
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#f3f3f3" />
|
|
|
|
<!-- These meta tags are Apple-specific, and set the web application to run in full-screen mode with a black status bar. Learn more at https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html-->
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-title" content="Цветные линии" />
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
|
|
|
<!-- This tag is used by the PWA Starter CLI to identify template projects. Don't remove if you are using the CLI. -->
|
|
<meta name="pwa-starter-template-identity" content="lines"/>
|
|
|
|
<!-- Imports an icon to represent the document. -->
|
|
<link rel="icon" href="/games/lines/assets/icons/icon-48x48.png" type="image/x-icon" />
|
|
|
|
<!-- Imports the manifest to represent the web application. A web app must have a manifest to be a PWA. -->
|
|
<link rel="manifest" href="/games/lines/manifest.webmanifest" />
|
|
|
|
<!-- light mode and dark mode CSS -->
|
|
<link rel="stylesheet" media="(prefers-color-scheme:light)"
|
|
href="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0-beta.73/dist/themes/light.css">
|
|
<link rel="stylesheet" media="(prefers-color-scheme:dark)"
|
|
href="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0-beta.73/dist/themes/dark.css"
|
|
onload="document.documentElement.classList.add('sl-theme-dark');">
|
|
</head>
|
|
|
|
<body>
|
|
<script>
|
|
if ('serviceWorker' in navigator) {
|
|
navigator.serviceWorker.register(
|
|
'/games/lines/sw.js'
|
|
);
|
|
}
|
|
</script>
|
|
<script src="/games/lines/wasm_exec.js"></script>
|
|
<script>
|
|
// Polyfill
|
|
if (!WebAssembly.instantiateStreaming) {
|
|
WebAssembly.instantiateStreaming = async (resp, importObject) => {
|
|
const source = await (await resp).arrayBuffer();
|
|
return await WebAssembly.instantiate(source, importObject);
|
|
};
|
|
}
|
|
|
|
const go = new Go();
|
|
WebAssembly.instantiateStreaming(fetch("/games/lines/lines.wasm"), go.importObject).then(result => {
|
|
go.run(result.instance);
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|