-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.htm
59 lines (49 loc) · 1.29 KB
/
main.htm
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
59
<html
window-resizable="true"
window-width="500dip"
window-height="300dip"
>
<head>
<title>sciter fontawesome demo</title>
<style>
@import url(node_modules/sciter-logger/src/logger.css);
@import url(src/fontawesome.css);
html > * {
border-spacing: 1em;
}
</style>
<script type="module">
import Logger from "./node_modules/sciter-logger/src/logger.js";
import Utils from "./node_modules/sciter-utils/src/utils.js";
// capture unhandled exceptions
Logger.capture();
// initialize logger
Logger.init();
// attach logger to console
Logger.attach();
document.on("ready", function() {
// redirect logger output to plaintext
Logger.plaintext(document.$("plaintext#logger"));
// close window on escape key press
Utils.closeWindowOnEscape(Window.this);
});
</script>
</head>
<body>
<div>
<i class="fa fa-camera-retro fa-5x" />retro camera 5x
</div>
<div>
<i class="fas fa-star"></i>icons aligned with text<i class="fas fa-star"></i>
</div>
<div>
<button><i class="fas fa-star"></i>icons aligned inside button<i class="fas fa-star"></i></button>
</div>
<div>
<toggle #autoReload checked>
<i class="fa-brands fa-watchman-monitoring fa-2x" />
</toggle>
</div>
<plaintext #logger readonly />
</body>
</html>