-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
36 lines (33 loc) · 807 Bytes
/
Copy pathindex.html
File metadata and controls
36 lines (33 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<!-- Copyright © SixtyFPS GmbH <info@slint.dev> -->
<!-- SPDX-License-Identifier: MIT -->
<html>
<head>
<title>Slint Material 3 Gallery (Web Assembly version)</title>
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
/>
<style>
* {
margin: 0;
padding: 0;
overflow: hidden;
}
canvas {
width: 100dvw !important;
height: 100dvh !important;
background: black;
}
</style>
</head>
<body>
<!-- canvas required by the Slint runtime -->
<canvas id="canvas"></canvas>
<script type="module">
// import the generated file.
import init from "./pkg/my_app_lib.js";
init();
</script>
</body>
</html>