-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
179 lines (164 loc) · 8.48 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!DOCTYPE html>
<!-- TODO: remove bootstrap -->
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Visualization - TED Statistic Chart</title>
<link rel="stylesheet" href="css/styles.css" />
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- TODO: remove bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
crossorigin="anonymous"></script>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="bower_components/d3-layout/d3.layout.cloud.js"></script>
<script src="bower_components/d3-tip/index.js"></script>
<script src="https://rawgit.com/padolsey/jQuery-Plugins/master/sortElements/jquery.sortElements.js"></script><script type="application/javascript" src="js/radarChart.js"></script>
</head>
<body>
<!-- TEDmap header -->
<div class="col-md-12 page-header" id="header">
<div class="col-md-8 container">
<h1>TEDmap <small> TED talks topic trend visualization </small> </h1>
</div>
<div class="col-md-4 container">
<a href="https://github.com/cwkenwaysun/TEDmap/blob/master/final_report/ProcessBook_v2.pdf"> <button type="button" class="btn btn-default">Process Book</button></a>
<a href="https://youtu.be/cPfT3kuISxQ"><button type="button" class="btn btn-primary">How to Use</button></a>
</div>
</div>
<div class="col-md-6 container" id="tagCloud" >
<h3 >Word Cloud - Category of Tags</h3>
<br><br>
<ul class="nav nav-tabs" id="ulid">
<li id="exploration" role="presentation" ><a href="#">exploration</a></li>
<li id="society" role="presentation" class="active"><a href="#">society</a></li>
<li id="computers" role="presentation"><a href="#">computers</a></li>
<li id="health" role="presentation"><a href="#">health</a></li>
<li id="brain" role="presentation"><a href="#">brain</a></li>
<li id="culture" role="presentation"><a href="#">culture</a></li>
<li id="design" role="presentation"><a href="#">design</a></li>
<li id="relationships" role="presentation"><a href="#">relationships</a></li>
<li id="future" role="presentation"><a href="#">future</a></li>
<li id="other" role="presentation"><a href="#">other</a></li>
</ul>
</div>
<!-- TODO: remove so many layers of div .container -->
<div class="col-md-6 container" id="networkChart" >
<div class="col-md-9 container">
<h3> Network Chart - Co-occurrence of Tags </h3>
</div>
<div class="col-md-3 container yearbutton" id='yearbutton'>
<div class="btn-group" style="margin-top:20px">
<a class="btn btn-primary" id='showYear' ><i class="fa fa-user fa-fw"></i>All</a>
<a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#" id='yeardd'>
<span class="fa fa-caret-down" title="Toggle dropdown menu"></span>
</a>
<ul class="dropdown-menu" id="YearSelection">
<li><a href="#">2001</a></li>
<li><a href="#">2002</a></li>
<li><a href="#">2003</a></li>
<li><a href="#">2004</a></li>
<li><a href="#">2005</a></li>
<li><a href="#">2006</a></li>
<li><a href="#">2007</a></li>
<li><a href="#">2008</a></li>
<li><a href="#">2009</a></li>
<li><a href="#">2010</a></li>
<li><a href="#">2011</a></li>
<li><a href="#">2012</a></li>
<li><a href="#">2013</a></li>
<li><a href="#">2014</a></li>
<li><a href="#">2015</a></li>
<li><a href="#">2016</a></li>
<li><a href="#">2017</a></li>
<li class="divider"></li>
<li><a href="#"><i class="fa fa-unlock"></i>All</a></li>
</ul>
</div>
</div>
</div>
<!-- buttons -->
<div class="col-md-6">
<h3 >Tag Frequency versus Year <button id='clearButtons' type='button' class='btn btn-primary'>clear all</button></h3>
<h5 >Observe the trend of science</h5>
<!--<ul class="nav nav-pills col-md-6" id="buttons">-->
<div id="buttons"> </div>
<!-- line chart -->
<div class="container">
<!-- TODO: remove numbers -->
<svg height="550" id="lineChart">
<g id="lines">
<g id="xAxis"></g>
<g id="yAxis"></g>
</g>
</svg>
</div>
</div>
<div class="col-md-6">
<h3>TED Talks within seleted tags</h3>
<div id="outter_table">
<table class="tableHeader table table-striped table-hover">
<thead id="tablehead">
<!-- TODO: var name -->
<tr class="table-primary" width="100%">
<th id="t_number">#</th>
<th id="t_headline">Headline</th>
<th id="t_speaker">Speaker</th>
<th id="t_views">Views</th>
<!-- <th class="col-xs-2" onclick="sortTable(3)">Views</th> -->
</tr>
</thead>
</table>
<div id="table_container">
<table class="table table-striped table-hover" id="myTable2">
<tbody id="videos">
</tbody>
</table>
</div>
</div>
</div>
<footer class="footer col-md-12 footstyle">
<!--Footer Links-->
<div class="container" >
<div class="row my-4">
<!--First column-->
<div class="col-md-4 col-lg-5">
<h5 class="title mb-4 font-bold">Introduction</h5>
<p>This website is designed to observe the trendency of tags on TED Talks.</p>
<p>Click on text in word cloud or network chart to choose tag and then observe its frequency. Double-click on text in word cloud or network chart to focus on one tag, and its relationship with other tags are visualized as network.</p>
</div>
<!-- Second column -->
<div class="col-md-4 col-lg-3">
<h5 class="title mb-4 font-bold">Amanda Lee</h5>
<!--Info-->
<p><i class="fa fa-envelope" style="font-size:130%;"></i> [email protected]</p>
<p><i class="fa fa-github" style="font-size:170%;"></i><a href="https://github.com/Roia2529"> GitHub</a></p>
<p><i class="fa fa fa-address-book-o" style="font-size:170%;"></i><a href="https://roia2529.github.io"> Portfolio</a></p>
</div>
<!--Third column-->
<div class="col-md-4 col-lg-3">
<h5 class="title mb-4 font-bold">Kenway Sun</h5>
<!--Info-->
<p><i class="fa fa-envelope" style="font-size:130%;"></i> [email protected]</p>
<p><i class="fa fa-github" style="font-size:170%;"></i><a href="https://github.com/cwkenwaysun/"> GitHub</a></p>
<p><i class="fa fa fa-address-book-o" style="font-size:170%;"></i><a href="#"> Portfolio</a></p>
</div>
</div>
</div>
<!--Copyright-->
<div class="copyright">
<div class="container-fluid">
© 2017 Copyright: <a href="https://github.com/cwkenwaysun/TEDmap"> github.com/cwkenwaysun/TEDmap </a>
</div>
</div>
</footer>
</body>
<script type="application/javascript" src="js/textCloudChart.js"></script>
<script type="application/javascript" src="js/lineChart.js"></script>
<script type="application/javascript" src="js/networkChart.js"></script>
<script type="application/javascript" src="js/script.js"></script>
<script type="application/javascript" src="js/table.js"></script>
</html>