slint/examples/slide_puzzle/index.html
Tobias Hunger 4230ac2572
Update copyright information to reflect name change
Also run resue over the codebase and fix complaints from that tool.
2022-02-09 10:27:47 +01:00

61 lines
1.7 KiB
HTML

<!DOCTYPE html>
<!-- Copyright © SixtyFPS GmbH <info@slint-ui.com> -->
<!-- SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial -->
<html>
<head>
<meta charset="UTF-8">
<title>Slint Slide Puzzle Demo (Web Assembly version)</title>
</head>
<link rel="stylesheet" href="https://slint-ui.com/css/demos-v1.css">
<style>
body {
padding: 0px;
margin: 0px;
max-width: none;
}
#container {
display: grid;
justify-items: stretch;
align-content: stretch;
align-items: stretch;
flex-direction: column;
width: 100vw;
height: 100vh;
padding: 0px;
margin: 0px;
grid-template-columns: auto;
grid-template-rows: max-content auto max-content;
}
</style>
<body>
<div id="spinner" style="position: absolute; top: 50%; width: 100%">
<div class="spinner">Loading...</div>
</div>
<div id="container">
<p>This is the <a href="https://slint-ui.com">Slint</a> Slide Puzzle compiled to WebAssembly. Note that the wasm
build is done for demonstration purposes. Native applications are the real target of the toolkit.
</p>
<canvas id="canvas"></canvas>
<p class="links">
<a href="https://github.com/slint-ui/slint/blob/master/examples/slide_puzzle/">
View Source Code on GitHub</a> -
<a
href="https://slint-ui.com/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/slide_puzzle/slide_puzzle.slint">
Edit in the online code editor
</a>
</p>
</div>
<script type="module">
import init from './pkg/slide_puzzle.js';
init().finally(() => {
document.getElementById("spinner").remove();
});
</script>
</body>
</html>