forked from slint-ui/slint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
preview.html
43 lines (42 loc) · 1.21 KB
/
preview.html
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
37
38
39
40
41
42
43
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Slint File WASM Preview</title>
<style>
/* beautify ignore:start */
.spinner:before {
content: "";
box-sizing: border-box;
position: absolute;
top: 50%;
left: 50%;
width: 100px;
height: 100px;
margin-top: -10px;
margin-left: -10px;
border-radius: 50%;
border: 2px solid transparent;
border-top-color: #07d;
border-bottom-color: #07d;
animation: spinner 1s ease infinite;
}
@keyframes spinner {
to {
transform: rotate(360deg);
}
}
/* beautify ignore:end */
canvas {
touch-action: none;
}
</style>
<script type="module" src="./src/preview.ts"></script>
</head>
<body>
<div id="spinner" style="position: relative">
<div class="spinner">Loading...</div>
</div>
<div id="preview"></div>
</body>
</html>