-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate.html
79 lines (76 loc) · 2.82 KB
/
template.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
77
78
79
<!-- From: https://www.jqueryscript.net/table/jQuery-JSON-To-Table-Plugin.html -->
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Output</title>
<link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans:300|Open+Sans+Condensed:300|Open+Sans:300"
rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="./JSON-to-Table.min.1.0.0.js"></script>
<style>
body {
font-family: 'Josefin Sans', sans-serif;
background-color:#fafafa;
}
h1 {
font-size: 40px;
color: #08090d;
text-align: center;
}
h1 span {
font-size: 25px;
color: #477dd7;
}
h2 {
font-family: "Open Sans Condensed", sans-serif;
font-size: 18px;
}
.margin-bottom {
margin-bottom: 50px;
}
h1 { margin:150px auto 30px auto;}
</style>
</head>
<body>
<h1>Memoeb</h1>
<h2>JSON Object variable Example</h2>
<div id="table-2" class="margin-bottom"></div>
<script type="text/javascript">
$(document).ready(function () {
$.getJSON("sample-data.json", function (data) {
$('.table').createTable(data, {
// General Style for Table
borderWidth: '1px',
borderStyle: 'solid',
borderColor: '#DDDDDD',
fontFamily: 'Verdana, Helvetica, Arial, FreeSans, sans-serif',
// Table Header Style
thBg: '#F3F3F3',
thColor: '#0E0E0E',
thHeight: '30px',
thFontFamily: '"Open Sans Condensed", sans-serif',
thFontSize: '14px',
thTextTransform: 'capitalize',
// Table Body/Row Style
trBg: '#fff',
trColor: '#0E0E0E',
trHeight: '25px',
trFontFamily: '"Open Sans", sans-serif',
trFontSize: '13px',
// Table Body's Column Style
tdPaddingLeft: '10px',
tdPaddingRight: '10px'
});
});
var data = [
F4743CAD170C9488DEC39344E0CB25ED9CE357A5
];
$('#table-2').createTable(data, {});
});
</script>
</body>
</html>