slint/tools/slintpad/preview.html
Tobias Hunger de0dc20e5b
slintpad: Move into tools/slintpad (#2435)
* Add "slintpad" to cspell white list for all languages
* Mention online_editor to slintpad rename in CHANGELOG
* Move tools/online_editor into tools/slintpad
* Update github actions accordingly

Co-authored-by: Olivier Goffart <olivier@woboq.com>
2023-03-29 16:32:30 +02:00

43 lines
1.2 KiB
HTML

<!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>