forked from slint-ui/slint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (53 loc) · 2.41 KB
/
index.html
File metadata and controls
58 lines (53 loc) · 2.41 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<title>Slint Online Editor</title>
<style>
canvas {
touch-action: none;
}
</style>
<script type="module" src="./index.ts"></script>
</head>
<body>
<p>This is a prototype for an online editor for the Slint language. More info <a
href="https://github.com/slint-ui/slint">github.com/slint-ui/slint</a> </p>
<p>Select a demo to load: <select id="select_combo">
<option value="">-- Select a demo --</option>
<option value="examples/gallery/gallery.slint">Gallery</option>
<option value="examples/printerdemo/ui/printerdemo.slint">Printer demo</option>
<option value="examples/todo/ui/todo.slint">Todo demo</option>
<option value="examples/iot-dashboard/main.slint">IOT Dashboard</option>
</select></p>
<p><button type="button" id="compile_button">Compile!</button>
<input type="checkbox" id="auto_compile" name="auto_compile" checked>
<label for="auto_compile">Automatically compile on change</label>
<!--
<label for="style_combo">Style:</label>
<select id="style_combo">
<option value="fluent">fluent</option>
</select>
-->
<a href="../docs/rust/slint/docs/langref/index.html">Slint Language Reference</a>
</p>
<div id="preview" style="max-width: 48%; float: right"></div>
<div id="editor_area" class="d-block" style="height:600px; width: 48%">
<ul id="tabs" class="nav nav-tabs">
</ul>
<div id="editor" class="h-100 border"></div>
<p><a id="permalink" href="#">permalink</a></p>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx"
crossorigin="anonymous"></script>
</body>
</html>