-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (59 loc) · 1.49 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
<!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%;
box-sizing: border-box;
min-height: 14em;
}
.test-box,
.test-box>li {
padding: 0;
display: block;
border-top: 1px solid #aaa;
margin: 0.6em;
}
#output_value {
max-height: 50vh;
overflow-y: auto;
}
</style>
</head>
<body>
<script>exports = {}</script>
<script src="js/test.js" type="text/javascript"></script>
<ul class="test-box">
<li>
CSS value definition syntax
<textarea id="input_vds"></textarea>
</li>
<li>
Test data
<textarea id="input_csv"></textarea>
</li>
<li>
<button id="btn_output">
Output
</button>
</li>
<li id="output_value"></li>
</ul>
<script>
input_vds.value = test_vds;
input_csv.value = test_csv;
btn_output.onclick = function () {
var res = vdsParser(input_vds.value)(input_csv.value);
console.log(res);
output_value.innerText = res.found.map(
function (record) {
return JSON.stringify(record)
}
).join("\n");
}
</script>
</body>
</html>