-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
76 lines (65 loc) · 1.96 KB
/
index.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!doctype html>
<html>
<head>
<title>Schemascii</title>
<script src="https://cdn.jsdelivr.net/pyodide/v0.23.2/full/pyodide.js"></script>
<style>
.flex {
display: flex;
flex: 1;
padding: 2px;
}
.flex.row {
flex-direction: row;
}
.flex.column {
flex-direction: column;
}
textarea {
min-height: 10em;
resize: vertical;
}
#errors {
color: red;
}
a,
a:visited {
color: blue;
}
@media screen and (prefers-color-scheme: dark) {
body,
textarea {
color: white;
background: black;
}
a,
a:visited {
color: magenta;
}
}
</style>
<style id="custom-css"></style>
</head>
<body>
<h1>Schemascii Playground</h1>
<h2>using schemascii version <select id="version"></select></h2>
<div class="flex row">
<div class="flex column">
<h2>Schemascii Source</h2><textarea id="schemascii" disabled></textarea>
</div>
<div class="flex column">
<h2>CSS</h2><textarea id="css" disabled></textarea>
</div>
</div>
<h2>Result <button id="download">Download</button></h2>
<div id="output"></div>
<h2>Messages</h2>
<pre id="console"></pre>
<h2>Errors</h2>
<pre id="errors"></pre>
<h2>More Information</h2>
<p><a href="https://github.com/dragoncoder047/schemascii/"
target="_blank">https://github.com/dragoncoder047/schemascii/</a></p>
</body>
<script src="scripts/web_startup.js"></script>
</html>