slint/examples/todo/rust/index.html
Olivier Goffart 3fb6bd7bb4 Wasm: fix todo example
Same fix as last commit to the printerdemo
2024-04-02 10:21:11 +02:00

41 lines
1.2 KiB
HTML

<!DOCTYPE html>
<!-- Copyright © SixtyFPS GmbH <info@slint.dev> -->
<!-- SPDX-License-Identifier: MIT -->
<html>
<!--
This is a static html file used to display the wasm build.
In order to generate the build
- Run `wasm-pack build --release --target web` in this directory.
-->
<head>
<meta charset="UTF-8">
<title>Slint Todo Demo (Web Assembly version)</title>
<link rel="stylesheet" href="https://slint.dev/css/demos-v1.css">
</head>
<body>
<p>This is the <a href="https://slint.dev">Slint</a> Todo Demo compiled to WebAssembly.</p>
<div id="spinner" style="position: relative;">
<div class="spinner">Loading...</div>
</div>
<canvas id="canvas" unselectable="on" data-slint-auto-resize-to-preferred="true"></canvas>
<p class="links">
<a href="https://github.com/slint-ui/slint/blob/master/examples/todo/">
View Source Code on GitHub</a> -
<a href="https://slint.dev/editor?load_demo=examples/todo/ui/todo.slint">
Open in SlintPad
</a>
</p>
<script type="module">
import init from './pkg/todo_lib.js';
init().finally(() => {
document.getElementById("spinner").remove();
});
</script>
</body>
</html>