-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
61 lines (57 loc) · 2.55 KB
/
test.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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta content="Example table" name="description">
<title>OCD Advocates Table Demo</title>
<meta name='viewport' content='width=device-width, initial-scale=1.0'/>
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,900,400italic|Source+Code+Pro:400' rel='stylesheet' type='text/css'>
<script src='https://cdnjs.cloudflare.com/ajax/libs/tabletop.js/1.5.1/tabletop.min.js'></script>
<script type='text/javascript' src='http://jlord.us/sheetsee.js/js/sheetsee.js'></script>
<link rel='stylesheet' type='text/css' href='http://jlord.us/sheetsee.js/assets/style.css'>
</head>
<style>
#Pagination {border-top: 4px solid #CCF4FF; margin: 10px 0px; padding-top: 10px; display: inline-block;}
#Pagination a {cursor: pointer;}
.no-pag {color: #acacac; border: none;}
.no-pag:hover {color: #acacac;}
input {border: none; border-bottom: 1px solid #333;margin: 10px 0px; width: 200px; font-size: 16px; padding-bottom: 6px;}
.tHeader {padding: 8px; cursor: pointer; text-align: left;}
</style>
<body>
<div class="container">
<h1>OCD Advocates Table Demo</h1>
<p><em><a href="https://docs.google.com/a/github.com/spreadsheet/ccc?key=1W7eqVfibwgmfLua50OvfTeC4zHQTrmD7fQ3oGDMQ5_0&usp=drive_web#gid=0" target="_blank">spreadsheet</a></em><p>
<input id="fullTableFilter" type="text" placeholder="filter by.."></input>
<a class="clear">Clear</a>
<div id="fullTable">Loading...</div>
<footer>
<h4><a class="home-link" href="../index.html">Home</a></h4>
</footer>
</div>
<script id="fullTable_template" type="text/html">
<table>
<tr><th class="tHeader">City</th><th class="tHeader">Place Name</th><th class="tHeader">Year</th><th class="tHeader">Image</th></tr>
{{#rows}}
<tr><td>{{City}}</td><td>{{PlaceName}}</td><td>{{Year}}</td><td>{{Image}}</td></tr>
{{/rows}}
</table>
</script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
var URL = "1W7eqVfibwgmfLua50OvfTeC4zHQTrmD7fQ3oGDMQ5_0"
Tabletop.init({key: URL, callback: showInfo, simpleSheet: true})
})
function showInfo (data) {
var tableOptions = {
"data": data,
"pagination": 10,
"tableDiv": "#fullTable",
"filterDiv": "#fullTableFilter"
}
Sheetsee.makeTable(tableOptions)
Sheetsee.initiateTableFilter(tableOptions)
}
</script>
</body>
</html>