-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (40 loc) · 1.18 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
<!DOCTYPE html>
<html>
<head>
<title>test</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
textarea {
width: 100%;
min-height: 86vh;
}
</style>
</head>
<body>
<script>exports = {}</script>
<script src="js/test.js" type="text/javascript"></script>
<table width="100%">
<tr>
<th>css</th>
<th>html</th>
<th>json</th>
</tr>
<tr>
<td><button onclick="console.log(cssScanner.scan(input_css.value))">Parse</button></td>
<td><button onclick="console.log(htmlScanner.scan(input_html.value))">Parse</button></td>
<td><button onclick="console.log(jsonScanner.scan(input_json.value))">Parse</button></td>
</tr>
<tr>
<td><textarea id="input_css"></textarea></td>
<td><textarea id="input_html"></textarea></td>
<td><textarea id="input_json"></textarea></td>
</tr>
</table>
<script>
input_css.value = css_text;
input_html.value = html_text;
input_json.value = json_text;
</script>
</body>
</html>