Update index.html

This commit is contained in:
Piotr Siuszko 2025-09-18 11:55:24 +02:00
parent fa4d218dae
commit 32268c330b
1 changed files with 134 additions and 121 deletions

View File

@ -1,11 +1,14 @@
<!DOCTYPE html>
<!doctype html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Disable zooming: -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<!-- Disable zooming: -->
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=no"
/>
<head>
<head>
<!-- change this to your project name -->
<title>rPack</title>
@ -14,21 +17,27 @@
<!-- this is the base url relative to which other urls will be constructed. trunk will insert this from the public-url option -->
<base data-trunk-public-url />
<link data-trunk rel="icon" href="assets/favicon.ico">
<link data-trunk rel="icon" href="assets/favicon.ico" />
<link data-trunk rel="copy-file" href="assets/sw.js" />
<link data-trunk rel="copy-file" href="assets/manifest.json" />
<link data-trunk rel="copy-file" href="assets/icon-1024.png" />
<!--<link data-trunk rel="copy-file" href="assets/icon-1024.png" />
<link data-trunk rel="copy-file" href="assets/icon-256.png" />
<link data-trunk rel="copy-file" href="assets/icon_ios_touch_192.png" />
<link data-trunk rel="copy-file" href="assets/maskable_icon_x512.png" />
<link data-trunk rel="copy-file" href="assets/maskable_icon_x512.png" />-->
<link rel="manifest" href="manifest.json">
<link rel="apple-touch-icon" href="icon_ios_touch_192.png">
<meta name="theme-color" media="(prefers-color-scheme: light)" content="white">
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#404040">
<link rel="manifest" href="manifest.json" />
<!--<link rel="apple-touch-icon" href="icon_ios_touch_192.png" />-->
<meta
name="theme-color"
media="(prefers-color-scheme: light)"
content="white"
/>
<meta
name="theme-color"
media="(prefers-color-scheme: dark)"
content="#404040"
/>
<style>
html {
@ -115,11 +124,10 @@
transform: rotate(360deg);
}
}
</style>
</head>
</head>
<body>
<body>
<!-- The WASM code will resize the canvas dynamically -->
<!-- the id is hardcoded in main.rs . so, make sure both match. -->
<canvas id="the_canvas_id"></canvas>
@ -128,18 +136,23 @@
<!-- Force refresh (Ctrl + F5) to load the latest files instead of cached files -->
<script>
// We disable caching during development so that we always view the latest version.
if ('serviceWorker' in navigator && window.location.hash !== "#dev") {
window.addEventListener('load', function () {
navigator.serviceWorker.register('sw.js');
if (
"serviceWorker" in navigator &&
window.location.hash !== "#dev"
) {
window.addEventListener("load", function () {
navigator.serviceWorker.register("sw.js");
});
}
</script>
<script data-goatcounter="https://mevlyshkin.goatcounter.com/count"
<script
data-goatcounter="https://mevlyshkin.goatcounter.com/count"
data-goatcounter-settings='{"path": "/rpack"}'
async src="//zgo.at/count.js"></script>
</body>
async
src="//zgo.at/count.js"
></script>
</body>
</html>
<!-- Powered by egui: https://github.com/emilk/egui/ -->