-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
42 lines (38 loc) · 952 Bytes
/
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>JSON-2-Table</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="json2table.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="simple-table-styling.css" type="text/css" media="all" charset="utf-8">
</head>
<body>
<script type="text/javascript" charset="utf-8">
<!--
var testData = {
'row1': {
'key1': 'val1',
'key2': 'val2'
},
'row2': {
'key1': 'val23',
'key2': 'val34'
},
'row3': {
'sub-row1': {
'key3': 'val45',
'key4': 'val56'
},
'sub-row2': {
'key5': 'val67',
'key6': 'val78'
}
}
};
$.json2table(testData, "testData").appendTo("body");
-->
</script>
</body>
</html>