-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomment.html
More file actions
86 lines (77 loc) · 2.15 KB
/
comment.html
File metadata and controls
86 lines (77 loc) · 2.15 KB
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
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Comment</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="http://cdn.bootcss.com/semantic-ui/2.1.6/semantic.min.js"></script>
<link href="http://cdn.bootcss.com/semantic-ui/2.1.6/semantic.min.css" rel="stylesheet">
<style>
.mynav .column, .main .column {
display: flex !important;
text-align: center;
justify-content: center;
align-items: center;
flex-direction: column;
}
#nav-title {
color: #1b1c1d;
font-size: 3rem;
text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}
</style>
</head>
<body>
<div class="ui stackable grid">
<div class="equal widths row mynav">
<div class="column"></div>
<div class="column">
<table width="300" height="80">
</table>
<div class="ui header" id="nav-title" style="padding-top: 8px;" >評論</div>
</div>
<div class="column"></div>
</div>
<div class="ui ten wide column">
<div class="three column row">
<table class="ui celled striped table">
<thead>
<tr>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody id="table-content"></tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="three wide column"></div>
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.6/semantic.min.js"></script>
<script src="js/spreadsheetSoup.js"></script>
<script>
jQuery(document).ready(function(){
function myCallback(data){
data.reverse()
console.log(data);
var doc = data
doc.forEach(function(data_text) {
var temp = "<tr>";
for(var key in data_text) {
temp += '<td>' + data_text[key] + '</td>';
}
temp += '</tr>';
$(temp).appendTo("#table-content");
})
}
var key = '1cM-t3znTEeOjUx8X53H6CK1OQjvP3kt9K6-efaNlDDo';
var soup = new SpreadsheetSoup(key, myCallback);
});
</script>
</body>
</html>