-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
270 lines (245 loc) · 11.2 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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Twitter Search Engine</title>
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css" />
<link rel="stylesheet" href="libs/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="res/css/search_engine.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="libs/bootstrap/js/bootstrap.js"></script>
<script src="libs/underscore-min.js"></script>
<script src="libs/bootstrap/js/bootstrap.min.js"></script>
<!--ajax solr -->
<script src="libs/core/Core.js"></script>
<script src="libs/core/AbstractManager.js"></script>
<script src="libs/managers/Manager.jquery.js"></script>
<script src="libs/core/Parameter.js"></script>
<script src="libs/core/ParameterStore.js"></script>
<script src="libs/core/AbstractWidget.js"></script>
<script src="libs/core/AbstractTextWidget.js"></script>
<script src="res/js/widgets/ResultWidgetDetailed.js"></script>
<script src="res/js/widgets/AutocompleteWidget.js"></script>
<script src="res/js/QueryBuilder.js"></script>
<script src="res/js/Twittersearch.js"></script>
<script src="res/js/CustomScrollbar.js"></script>
</head>
<body>
<!-- Button trigger modal
<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
Launch demo modal
</button> -->
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">Details zum Tweet</h4>
</div>
<div class="modal-body">
<div id="modal-content"></div>
<div id="modal-loader"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Schließen</button>
</div>
</div>
</div>
</div>
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand text-large" href="#">Twitter Search</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<form class="navbar-form navbar-left" role="search" id="search">
<div class="form-group">
<input id="search-field" type="text" class="form-control" placeholder="Tweets durchsuchen...">
<div id="autocomplete"></div>
</div>
<button id="search-button" type="submit" name="Search" class="btn btn-lg btn-info btn-default glyphicon glyphicon-search search-button"> </button>
</form>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<div class="main-container">
<div class="rowwerewr">
<div class="jumbotron col-sm-2 my-jumbotron left-sidebar">
<div>
<h4>Beliebte Suchbegriffe:</h4>
<ul id="last-search-terms">
<li class="col-sm-12"><a href="" data-toggle="tab">Apple</a></li>
<li class="col-sm-12"><a href="" data-toggle="tab">Swift</a></li>
<li class="col-sm-12"><a href="" data-toggle="tab">iOS</a></li>
<li class="col-sm-12"><a href="" data-toggle="tab">OSX1010</a></li>
<li class="col-sm-12"><a href="" data-toggle="tab">beats</a></li>
</ul>
</div>
</div>
<div class="jumbotron col-sm-4 my-jumbotron content-container">
<div id="tweet-container" class="col-sm-11">
<div id="docs" class="tweets-container">
<center><i>Bitte stelle eine Suchanfrage!</i></center>
</div>
</div>
<button id="button-show-right" type="button" class="col-sm-1 btn btn-default btn-lg">
<span id="arrow-show-right" class="glyphicon glyphicon-chevron-right"></span>
</button>
</div>
<div id="options" class=" tab-pane jumbotron col-sm-4 my-jumbotron content-container">
<!-- code ausschnitt von: https://gist.github.com/mnewt/4228037 abgeändert-->
<div id="content">
<ul id="tabs" class="nav nav-tabs" data-tabs="tabs">
<li class="active"><a href="#filter" data-toggle="tab">Erweitert</a></li>
<li><a href="#suggestions" data-toggle="tab">Vorschläge</a></li>
<li><a href="#favorites" data-toggle="tab">Favoriten</a></li>
<li><a href="#previous" data-toggle="tab">Verlauf</a></li>
</ul>
<div id="my-tab-content" class="tab-content">
<div class="tab-pane active" id="filter">
<div id="filter-terms">
<div class="checkboxes">
Hashtags: <input id="hashtag-search" class="form-control" type="text" value="">
</div>
<div class="checkboxes">
Nutzer: <input id="user-search" class="form-control" type="text" value="">
</div>
<div class="checkboxes">
Orte: <input id="location-search" class="form-control" type="text" value="">
</div>
<div class="checkboxes">
Inhalt: <input id="content-search" class="form-control" type="text" value="">
</div>
</br>
<!--
<div class="checkboxes">
Nur Tweets für folgende Tage suchen:</br>
<div id="day-1" class="date-box btn" value="02.06.2014"> 02.06.2014</div>
<div id="day-2" class="date-box btn" value="03.06.2014"> 03.06.2014</div>
<div id="day-3" class="date-box btn" value="04.06.2014"> 04.06.2014</div>
<div id="day-4" class="date-box btn" value="05.06.2014"> 05.06.2014</div>
<div id="day-5" class="date-box btn" value="06.06.2014"> 06.06.2014</div>
</div>-->
<button id="search-extended" type="button" class="search-again btn btn-info col-sm-12">Search Again!</button>
</div>
</div>
<div class="tab-pane" id="suggestions">
<div class="vorschlag col-sm-3">
<h3>Hashtags</h3>
<div class="checkboxes">
<label><input id="check-hashtag-1" type="checkbox" value='"apple"'> #Apple</label>
</div>
<div class="checkboxes">
<label><input id="check-hashtag-2" type="checkbox" value='"swift"'> #Swift</label>
</div>
<div class="checkboxes">
<label><input id="check-hashtag-3" type="checkbox" value='"ios"'> #iOS</label>
</div>
<div class="checkboxes">
<label><input id="check-hashtag-4" type="checkbox" value='"osx1010"'> #OSX1010</label>
</div>
<div class="checkboxes">
<label><input id="check-hashtag-5" type="checkbox" value='"beats"'> #beats</label>
</div>
</div>
<div class="vorschlag col-sm-3">
<h3>Personen</h3>
<div class="checkboxes">
<label><input id="check-person-1" type="checkbox" value='"tim cook"'> Tim Cook</label>
</div>
<div class="checkboxes">
<label><input id="check-person-2" type="checkbox" value='"craig federighi"'> Craig Federighi</label>
</div>
<div class="checkboxes">
<label><input id="check-person-3" type="checkbox" value='"steve jobs"'> Steve Jobs</label>
</div>
</div>
<div class="vorschlag col-sm-3">
<h3>Produkte</h3>
<div class="checkboxes">
<label><input id="check-produkt-1" type="checkbox" value='"iwatch"'> iWatch</label>
</div>
<div class="checkboxes">
<label><input id="check-produkt-2" type="checkbox" value='"healthkit"'> HealthKit</label>
</div>
<div class="checkboxes">
<label><input id="check-produkt-3" type="checkbox" value='"iphone"'> iPhone</label>
</div>
</div>
<div class="vorschlag col-sm-3">
<h3>Orte</h3>
<div class="checkboxes">
<label><input id="check-ort-1" type="checkbox" value='"deutschland"'> Deutschland</label>
</div>
<div class="checkboxes">
<label><input id="check-ort-2" type="checkbox" value='"amerika"'> Amerika</label>
</div>
<div class="checkboxes">
<label><input id="check-ort-3" type="checkbox" value='"frankreich"'> Frankreich</label>
</div>
</div>
<button id="search-suggestion" type="button" class="search-again btn btn-info col-sm-12">Search Again!</button>
</div>
<div class="tab-pane" id="favorites">
<div id="fav-container" class="tweets-container">
<div id="fav">
<div class="fav-punkt">
</div>
</div>
</div>
</div>
<div class="tab-pane" id="previous">
<div id="prev-container" class="tweets-container">
<div id="prev">
<div class="prev-punkt">
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function ($) {
$('#tabs').tab();
});
</script>
<script src="src/SearchEngine.js"></script>
<script src="src/UIController.js"></script>
<script src="src/SearchController.js"></script>
<script src="src/MainController.js"></script>
<script>
$(function(){
SearchEngine.init();
$('#docs').slimscroll({
color: '#33ccff',
size: '10px',
width: '100%',
height: '750px'
});
$('#fav-container').slimscroll({
color: '#33ccff',
size: '10px',
width: '100%',
height: '660px'
});
$('#prev-container').slimscroll({
color: '#33ccff',
size: '10px',
width: '100%',
height: '660px'
});
});
</script>
</body>
</html>