blob: 02016a5b1c0191cb681c42d27b48e4ebd21214ab [file] [log] [blame]
genia.likes.science@gmail.com6d6aa8e2013-07-23 01:23:21 -07001<!DOCTYPE html>
2<html style="width: 100%; height: 100%;">
3 <head>
4 <title>ASTERIX Demo</title>
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
genia.likes.science@gmail.comd42b4022013-08-09 05:05:23 -07007 <link rel="shortcut icon" type="image/png" href="static/img/hyrax.png">
genia.likes.science@gmail.com6d6aa8e2013-07-23 01:23:21 -07008
genia.likes.science@gmail.com724476d2013-10-04 03:31:16 -07009 <!-- Bootstrap & jQuery Styles -->
10 <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
11 <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" type="text/css">
genia.likes.science@gmail.com724476d2013-10-04 03:31:16 -070012
13 <style type="text/css">
genia.likes.science@gmail.com6d6aa8e2013-07-23 01:23:21 -070014
15 #map_canvas img {
16 max-width: none;
17 }
18
genia.likes.science@gmail.com724476d2013-10-04 03:31:16 -070019 .panel-primary {
20 border-color: #273f93;
21 }
22
23 .panel-primary .panel-heading {
24 color: white;
25 background-color: #273f93;
26 border-color: #273f93;
27 }
28
29 #start-date, #end-date {
30 position: relative; z-index:100;
31 }
32
33 #keyword-textbox, #location-text-box {
34 width: 100%;
35 }
genia.likes.science@gmail.com6d6aa8e2013-07-23 01:23:21 -070036
37 </style>
38 </head>
39 <body style="width: 100%; height: 100%;">
40
41 <!-- Nav -->
genia.likes.science@gmail.com724476d2013-10-04 03:31:16 -070042 <div class="navbar navbar-default navbar-static-top">
43 <div class="container">
44 <div class="navbar-header">
45 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
46 <span class="icon-bar"></span>
47 <span class="icon-bar"></span>
48 <span class="icon-bar"></span>
49 </button>
50 <a class="navbar-brand" href="#" style="padding: 0.25em;">
51 <img src="static/img/finalasterixlogo.png">
52 </a>
53 </div>
54 <div class="navbar-collapse collapse">
55 <ul class="nav navbar-nav">
genia.likes.science@gmail.com2de4c182013-10-04 11:39:11 -070056 <li id="about-active"><a id="about-mode" href="#">About</a></li>
57 <li id="explore-active" class="active"><a id="explore-mode" href="#">Explore</a></li>
genia.likes.science@gmail.com724476d2013-10-04 03:31:16 -070058 <li id="review-active"><a id="review-mode" href="#">Review</a></li>
59 </ul>
60 </div>
genia.likes.science@gmail.com6d6aa8e2013-07-23 01:23:21 -070061 </div>
genia.likes.science@gmail.com724476d2013-10-04 03:31:16 -070062 </div><!-- /Nav -->
genia.likes.science@gmail.com6d6aa8e2013-07-23 01:23:21 -070063
64 <!-- Search Box -->
genia.likes.science@gmail.com724476d2013-10-04 03:31:16 -070065 <div class="container">
genia.likes.science@gmail.com6d6aa8e2013-07-23 01:23:21 -070066
genia.likes.science@gmail.com724476d2013-10-04 03:31:16 -070067 <div class="row" id="r1">
68 <div class="col-md-5">
69 <div class="container well" id="explore-well">
genia.likes.science@gmail.com6d6aa8e2013-07-23 01:23:21 -070070
genia.likes.science@gmail.com724476d2013-10-04 03:31:16 -070071 <!-- Query Builder -->
72 <div class="panel panel-primary">
73 <div class="panel-heading"><h4><b>Query Builder</b></h4></div>
74
75 <!-- List group -->
76 <ul class="list-group">
77
78 <!-- Search Keyword -->
79 <li class="list-group-item">
80 <h4 class="list-group-item-heading">Keyword</h4>
81 <input type="text" id="keyword-textbox" placeholder="Enter a keyword, e.g., verizon">
82 </li>
83
84 <!-- Location -->
85 <li class="list-group-item">
86 <h4 class="list-group-item-heading">Location</h4>
87 <input class="textbox" type="text" id="location-text-box">
88 <div class="btn-group" data-toggle="buttons">
89 <label class="btn btn-default">
90 <input type="radio" id="location-button"> Location
91 </label>
92 <label class="btn btn-default">
93 <input type="radio" id="selection-button"> Selection
94 </label>
95 </div>
96 </li>
97
98 <!-- Date Range -->
99 <li class="list-group-item">
100 <h4 class="list-group-item-heading">Limit Date Range</h4>
101 <input type="text" class="textbox" id="start-date"><span class="badge">Start Date</span><br/>
102 <input type="text" class="textbox" id="end-date"><span class="badge">End Date</span>
103 </li>
104
105 <!-- Results Resolution -->
106 <li class="list-group-item">
107 <h4 class="list-group-item-heading">Result Group Size</h4>
108 <div class="grid-slider" id="grid-lat-slider"></div>
109 <div class="control-label">Latitude: <span id="gridlat">3.0</span></div>
110
111 <div class="grid-slider" id="grid-lng-slider"></div>
112 <div class="control-label">Longitude: <span id="gridlng">3.0</span></div>
113 </li>
114
115 <!-- Submission Buttons -->
116 <li class="list-group-item">
Eugenia Gabrielova8b34c652013-10-19 06:53:27 -0700117 <button class="btn btn-primary" type="button" id="submit-button">Submit</button>
118 <button class="btn btn-primary" type="button" id="clear-button">Clear</button>
119 <button class="btn btn-primary" type="button" id="show-query-button">Show Query</button><br/>
genia.likes.science@gmail.com724476d2013-10-04 03:31:16 -0700120 <input type="checkbox" value="Submit Asynchronously" name="async" id="asbox" />
121 Submit asynchronously?
122 </li>
genia.likes.science@gmail.com724476d2013-10-04 03:31:16 -0700123 </ul>
genia.likes.science@gmail.com6d6aa8e2013-07-23 01:23:21 -0700124 </div>
genia.likes.science@gmail.com2de4c182013-10-04 11:39:11 -0700125 </div>
126
127 <div class="container well" id="review-well" style="display:none;">
128
129 <!-- Tweetbooks -->
130 <div class="panel panel-default">
131 <div class="panel-heading">
132 <h4 class="panel-title">Tweetbooks</h4>
133 </div>
134 <div class="panel-body">
135 <!-- Box to add a new Tweetbook -->
136 <div class="input-group">
137 <input type="text" class="form-control" id="new-tweetbook-entry" placeholder="Name a new tweetbook">
138 <span class="input-group-btn">
139 <button type="button" class="btn" id="new-tweetbook-button">Add</button>
140 </span>
genia.likes.science@gmail.com1400a752013-10-04 04:59:12 -0700141 </div>
genia.likes.science@gmail.com2de4c182013-10-04 11:39:11 -0700142 <hr/>
143
144 <!-- List to add existing tweetbooks -->
145 <div class="btn-group-vertical" id="review-tweetbook-titles"></div>
146 </div>
147 </div>
148
149 <!-- Background queries -->
150 <div class="panel panel-default">
151 <div class="panel-heading">
152 <h4 class="panel-title">Background Queries</h4>
153 </div>
154 <div class="panel-body">
155 <!-- Add existing background queries to list -->
156 <div class="btn-group-vertical" id="review-tweetbook-titles"></div>
157 <div id="async-handle-controls"></div>
genia.likes.science@gmail.com1400a752013-10-04 04:59:12 -0700158 </div>
159 </div>
genia.likes.science@gmail.com6d6aa8e2013-07-23 01:23:21 -0700160 </div>
Eugenia Gabrielovadbd50a42013-10-19 00:30:27 -0700161
162 <!-- Div to hold success/error messages -->
163 <div id="report-message"></div>
genia.likes.science@gmail.com724476d2013-10-04 03:31:16 -0700164 </div>
genia.likes.science@gmail.com6d6aa8e2013-07-23 01:23:21 -0700165
genia.likes.science@gmail.com724476d2013-10-04 03:31:16 -0700166 <div class="col-md-7">
Eugenia Gabrielova8b34c652013-10-19 06:53:27 -0700167 <!-- Map Container -->
genia.likes.science@gmail.com724476d2013-10-04 03:31:16 -0700168 <div class="container well" id="right-col">
Eugenia Gabrielovad07556a2013-10-11 03:45:06 -0700169 <div id="map_canvas" style="max-width: 100%; height: auto;"></div>
genia.likes.science@gmail.com724476d2013-10-04 03:31:16 -0700170 </div>
Eugenia Gabrielova8b34c652013-10-19 06:53:27 -0700171
172 <!-- Legend Container -->
173 <div id="rainbow-legend-container" class="container well">
174 <div id="legend-min" class="col-md-1"></div>
175 <div id="legend-gradient" class="col-md-6"></div>
176 <div id="legend-max" class="col-md-2"></div>
177 <div class="col-md-3">
178 <button id="windows-off-btn" class="btn btn-default">
179 Close Counts
180 </button>
181 </div>
182 </div>
183
genia.likes.science@gmail.com724476d2013-10-04 03:31:16 -0700184 </div>
185 </div>
186
187 <!-- Modals and Dialogs -->
188 <div class="row">
genia.likes.science@gmail.com724476d2013-10-04 03:31:16 -0700189
genia.likes.science@gmail.com2de4c182013-10-04 11:39:11 -0700190 <!-- On Drilldown, here is a nice modal -->
191 <div class="modal fade" id="drilldown_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
192 <div class="modal-dialog">
193 <div class="modal-content">
genia.likes.science@gmail.com0f67d9e2013-10-04 17:08:50 -0700194 <div class="modal-body" id="drilldown_modal_body">
195
196 <!-- Tweet -->
Eugenia Gabrielovad07556a2013-10-11 03:45:06 -0700197 <div id="modal-body-tweet" class="well well-sm"></div>
genia.likes.science@gmail.com0f67d9e2013-10-04 17:08:50 -0700198
199 <!-- Existing comments about this tweet -->
200 <!-- Create new comment -->
Eugenia Gabrielovad07556a2013-10-11 03:45:06 -0700201 <div class="panel panel-default" id="modal-existing-note">
202 <div class="panel-heading">About this Tweetbook</div>
genia.likes.science@gmail.com0f67d9e2013-10-04 17:08:50 -0700203 <div class="panel-body" id="modal-body-notes-holder">
204
Eugenia Gabrielovad07556a2013-10-11 03:45:06 -0700205 <div class="input-group">
genia.likes.science@gmail.com0f67d9e2013-10-04 17:08:50 -0700206 <input type="text" class="form-control" id="modal-body-tweet-note">
207 <span class="input-group-btn">
208 <button class="btn btn-default" id="modal-body-trash-icon">
209 <span class="glyphicon glyphicon-trash"></span>
210 </button>
211 </span>
212 <span class="badge" id="modal-current-tweetbook"></span>
213 </div>
214
215 </div>
216 </div>
217
218 <!-- Create new comment -->
Eugenia Gabrielovad07556a2013-10-11 03:45:06 -0700219 <div class="panel panel-default" id="modal-save-tweet-panel">
genia.likes.science@gmail.com0f67d9e2013-10-04 17:08:50 -0700220 <div class="panel-heading">Save to tweetbook</div>
221 <div class="panel-body" id="modal-save-body">
222
223 <div class="input-group">
224 <span class="input-group-addon">Note</span>
225 <input type="text" class="form-control" id="modal-body-add-note" placeholder="Add a note about this tweet">
226 </div>
227
228 <div class="input-group">
229 <span class="input-group-addon">Add to</span>
230 <input type="text" class="form-control" id="modal-body-add-to" placeholder="Add it to a Tweetbook">
231 </div><br/>
232
233 <!-- Comment on tweet to save -->
234 <button type="button" class="btn btn-default" id="save-comment-tweetbook-modal">Save</button>
Eugenia Gabrielovad07556a2013-10-11 03:45:06 -0700235
236 <div id="modal-body-message-holder"></div>
237
genia.likes.science@gmail.com0f67d9e2013-10-04 17:08:50 -0700238 </div>
239 </div>
240 </div>
genia.likes.science@gmail.com2de4c182013-10-04 11:39:11 -0700241 <div class="modal-footer">
242 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
243 </div>
244 </div>
245 </div>
246 </div><!-- Modal -->
247
genia.likes.science@gmail.com724476d2013-10-04 03:31:16 -0700248 </div><!-- Row -->
genia.likes.science@gmail.com2de4c182013-10-04 11:39:11 -0700249
250 <!-- About Row -->
genia.likes.science@gmail.com0f67d9e2013-10-04 17:08:50 -0700251 <div class="row" id="aboutr" style="display:none;">
genia.likes.science@gmail.com2de4c182013-10-04 11:39:11 -0700252 <div class="container">
Eugenia Gabrielova8b34c652013-10-19 06:53:27 -0700253
254 <!-- Welcome Message -->
255 <div class="row">
256
257 <!-- Welcome Message -->
genia.likes.science@gmail.com2de4c182013-10-04 11:39:11 -0700258 <p>Welcome to the top-level page of the mysteriously named Black Cherry Demo of AsterixDB. The purpose of this demo is to illustrate how a "cool application" can be built using the JavaScript SDK of AsterixDB and to exercise all of the AsterixDB HTTP APIs. If you are building an app of your own, reading the code for this app is a great way to get acquainted with what you'll need to know.</p>
259
Eugenia Gabrielova8b34c652013-10-19 06:53:27 -0700260 <p>In this demo, which is based on spatial analysis of Tweets (it is 2013, afterall), you will see how to formulate aggregate queries and drill-down queries using the query door of the AsterixDB API. You will see how to do this either synchronously or asynchronously (for larger queries whose results may take a while to cook). You will also see how to create and drop datasets (to manage Tweetbooks, notebooks with user commentary on Tweets) and how to perform inserts and deletes (to add/remove Tweetbook entries). Let's walk through the demo.</p>
261
262 <hr/>
263
264 <div style="margin-bottom: 2em; text-align: center;">
265 <img src="static/img/Tutorial1.png" style="max-width:100%;">
266 </div><hr/>
267
268 <!-- Tutorial Part 2: Location Search -->
269 <div style="margin-bottom: 2em; text-align: center;">
270 <img src="static/img/Tutorial2.png" style="max-width:100%;">
271 </div><hr/>
272
273 <!-- Tutorial Part 3: Search Results, Drilling Down, Saving Comments -->
274 <div style="margin-bottom: 2em; text-align: center;">
275 <!--<img src="static/img/Tutorial3.png" style="max-width:100%;">-->
276 </div><hr/>
277
278 <!-- Tutorial Part 4: Review Mode -->
279 <div style="margin-bottom: 2em; text-align: center;">
280 <img src="static/img/Tutorial4.png" style="max-width:100%;">
281 </div>
genia.likes.science@gmail.com2de4c182013-10-04 11:39:11 -0700282 </div>
Eugenia Gabrielova8b34c652013-10-19 06:53:27 -0700283
genia.likes.science@gmail.com0f67d9e2013-10-04 17:08:50 -0700284
genia.likes.science@gmail.com2de4c182013-10-04 11:39:11 -0700285 </div>
286 </div><!-- /About -->
genia.likes.science@gmail.com724476d2013-10-04 03:31:16 -0700287
Eugenia Gabrielova8b34c652013-10-19 06:53:27 -0700288 </div><!-- container -->
289
290 <!-- Bootstrap Javascript -->
291 <script src="http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places" type="text/javascript"></script>
292 <script src="http://code.jquery.com/jquery.min.js"></script>
293 <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
294 <script src="static/js/bootstrap.min.js"></script>
295 <script src="static/js/asterix-sdk-stable.js"></script>
296 <script src="static/js/rainbowvis.js"></script>
297 <script src="static/js/cherry.js"></script>
genia.likes.science@gmail.com724476d2013-10-04 03:31:16 -0700298 </body>
299</html>