forked from slint-ui/slint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpreview.html
More file actions
33 lines (30 loc) · 938 Bytes
/
preview.html
File metadata and controls
33 lines (30 loc) · 938 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
<!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="./preview.ts"></script>
</head>
<body>
<div id="spinner" style="position: relative;">
<div class="spinner">Loading...</div>
</div>
<div id="preview"></div>
</body>
</html>