mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +00:00
37 lines
1.1 KiB
HTML
37 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
|
|
<!-- Copyright © SixtyFPS GmbH <info@slint-ui.com> -->
|
|
<!-- SPDX-License-Identifier: MIT -->
|
|
|
|
<html>
|
|
<!--
|
|
This is a static html file used to display the wasm build.
|
|
In order to generate the build
|
|
- uncomment the #wasm# lines in Cargo.toml
|
|
- Run `wasm-pack build --release --target web` in this directory.
|
|
-->
|
|
|
|
<head>
|
|
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
|
|
<link rel="stylesheet" href="https://slint-ui.com/css/demos-v1.css">
|
|
</head>
|
|
|
|
<body>
|
|
<p>This is the <a href="https://slint-ui.com">Slint</a> Plotter example compiled to WebAssembly.</p>
|
|
<div id="spinner" style="position: relative;">
|
|
<div class="spinner">Loading...</div>
|
|
</div>
|
|
<canvas id="canvas"></canvas>
|
|
<p class="links">
|
|
<a href="https://github.com/slint-ui/slint/blob/master/examples/plotter/main.rs">
|
|
View Source Code on GitHub</a>
|
|
</p>
|
|
<script type="module">
|
|
import init from "./pkg/plotter.js";
|
|
init().finally(() => {
|
|
document.getElementById("spinner").remove();
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|