-
-
Notifications
You must be signed in to change notification settings - Fork 48
/
index.html
216 lines (194 loc) · 7.97 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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<!doctype html>
<html>
<head>
<title>TwitWork</title>
<script src="js/jquery-3.4.1.min.js"></script>
<link rel="stylesheet" href="css/uikit.min.css" />
<script src="js/uikit.min.js"></script>
<script src="js/uikit-icons.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/moment@latest"></script>
<script type="text/javascript" src="https://unpkg.com/vis-data@latest"></script>
<script type="text/javascript" src="https://unpkg.com/vis-timeline@latest/peer/umd/vis-timeline-graph2d.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://unpkg.com/vis-timeline/styles/vis-timeline-graph2d.min.css" />
<style type="text/css">
#mynetwork {
width: 950px;
height: 670px;
}
*:focus {
outline: 0;
}
</style>
</head>
<body>
<div class="uk-position-top">
<a href="#" uk-toggle="target: #offcanvas-nav"><span class="uk-margin-small-right" uk-icon="icon: table"></span></a>
</div>
<div id="offcanvas-nav" uk-offcanvas="mode: reveal; overlay: true">
<div class="uk-offcanvas-bar">
<ul class="uk-nav uk-nav-default">
<li class="uk-nav-header">TwitWork</li>
<li><a href="#" id="openPro"><span class="uk-margin-small-right" uk-icon="icon: push"></span> Save this track</a></li>
<li><a href="#" id="openPro"><span class="uk-margin-small-right" uk-icon="icon: pull"></span> Add new track</a></li>
<li class="uk-nav-divider"></li>
<li><a href="#" id="openApi"><span class="uk-margin-small-right" uk-icon="icon: code"></span>Twitter Api key</a></li>
<li><a href="#" id="openSettings"><span class="uk-margin-small-right" uk-icon="icon: settings"></span> Settings</a></li>
<li class="uk-nav-divider"></li>
<li><a id="githubHelp"><span class="uk-margin-small-right" uk-icon="icon: question"></span> Help</a></li>
<br /><br />
<a id="twitterAtmon3r" class="uk-icon-button uk-margin-small-right" uk-icon="twitter"></a>
<a id="TwitWorkGithub" class="uk-icon-button uk-margin-small-right" uk-icon="github"></a>
</ul>
</div>
</div>
<div class="uk-container" id="all"><br />
<input class="uk-input uk-form-width-medium" type="text" placeholder="#hastag or @user" value="macron" id="searchBox">
<button class="uk-button uk-button-primary " id="startStream" type="button"><span class="uk-margin-small-right" uk-icon="icon: play"></span> Start</button>
<button class="uk-button uk-button-danger" id="stopStream" type="button" style="display: none;"><span class="uk-margin-small-right" uk-icon="icon: ban"></span> Stop</button>
<button class="uk-button uk-button-primary " id="saveScreen" type="button"><span class="uk-margin-small-right" uk-icon="icon: copy"></span> Save screen</button>
<button class="uk-button uk-button-primary " id="clear" type="button"> <span class="uk-margin-small-right" uk-icon="icon: trash"></span> Clear</button>
<button class="uk-button uk-button-primary " id="stabilize" type="button"> <span class="uk-margin-small-right" uk-icon="icon: code"></span> stabilize</button>
<button class="uk-button uk-button-primary" id="options" type="button" uk-toggle="target: #toggle-usage">Options</button>
<!-- <button class="uk-button uk-button-primary" id="stabilize" type="button">Stabilize</button> -->
<button class="uk-button uk-button-primary" id="Output" type="button">Output</button>
<br /> <br />
<div uk-grid>
<div>
<label id="toggle-usage" >
<div>
<label>
<input class="uk-checkbox" type='checkbox' name='edgesFilter' value='retweeted' checked></input>
Is <span style="color:red">retweeted</span> <span class="uk-badge" id="retweetStats">0</span>
</label>
</div>
<div>
<label>
<input class="uk-checkbox" type='checkbox' name='edgesFilter' value='quoted' checked></input>
Is <span style="color:green">quoted</span> <span class="uk-badge" id="quoteStats">0</span>
</label>
</div>
<div>
<label>
<input class="uk-checkbox" type='checkbox' name='edgesFilter' value='tweet' checked></input>
Is <span style="color:blue">tweet</span> <span class="uk-badge" id="tweetStats">0</span>
</label>
</div>
<!--<div>
<label>
<input class="uk-checkbox" type='checkbox' name='edgesFilter' value='hashtag' checked></input>
Is <span style="color:yellow">hashtag</span> <span class="uk-badge" id="tweetStats">0</span>
</label>
</div> -->
</label>
</div>
<div>
</div>
</div>
<div uk-grid>
<div>
<div id="mynetwork"></div>
</div>
<div>
<table class="uk-table uk-table-small ">
<caption>Stats</caption>
<thead>
<tr>
<th>Key</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>Node</td>
<td><div id="TwitNode"></div></td>
</tr>
<tr>
<td>Edge</td>
<td><div id="TwitEdge"></div></td>
</tr>
</tbody>
</table>
<button class="uk-button uk-button-primary uk-margin-small-right" type="button" uk-toggle="target: #ViewHashtag">View Hashtag</button>
<br />
</div>
</div>
<div id="detailNode" uk-modal>
<div class="uk-modal-dialog">
<div class="uk-modal-header">
<h2 class="uk-modal-title">Detail node</h2>
</div>
<div class="uk-modal-body">
<div id="returnUrlHref"></div>
</div>
</div>
</div>
</div>
<!-- All modal -->
<div id="apiKeyModal" uk-modal>
<div class="uk-modal-dialog">
<button class="uk-modal-close-default" type="button" uk-close></button>
<div class="uk-modal-header">
<h2 class="uk-modal-title">Set your twitter api key</h2>
</div>
<div class="uk-modal-body">
<div class="uk-margin">
<label class="uk-form-label" for="form-stacked-text">Consumer key (consumer_key)</label>
<div class="uk-form-controls">
<input class="uk-input" id="consumer_key" type="password">
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="form-stacked-text">Consumer secret (consumer_secret)</label>
<div class="uk-form-controls">
<input class="uk-input" id="consumer_secret" type="password">
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="form-stacked-text">Access token (access_token)</label>
<div class="uk-form-controls">
<input class="uk-input" id="access_token" type="password">
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="form-stacked-text">Access token secret (access_token_secret)</label>
<div class="uk-form-controls">
<input class="uk-input" id="access_token_secret" type="password">
</div>
</div>
</div>
<div class="uk-modal-footer uk-text-right">
<button class="uk-button uk-button-primary" id="testapi" type="button">Save</button>
</div>
</div>
</div>
<div id="openSettingsModal" uk-modal>
<div class="uk-modal-dialog">
<button class="uk-modal-close-default" type="button" uk-close></button>
<div class="uk-modal-header">
<h2 class="uk-modal-title">Settings</h2>
</div>
<div class="uk-modal-body">
</div>
<div class="uk-modal-footer uk-text-right">
<button class="uk-button uk-button-primary" id="" type="button">Save</button>
</div>
</div>
</div>
<div id="ViewHashtag" uk-modal>
<div class="uk-modal-dialog uk-modal-body">
<h2 class="uk-modal-title">Hashtag Stats</h2>
<table class="uk-table uk-table-divider uk-table-small">
<thead>
<tr>
<th>HashTag</th>
<th>Used</th>
</tr>
</thead>
<tbody id="returnHastag">
</tbody>
</table>
</div>
</div>
<script src="./renderer.js"></script>
</body>
</html>