genia.likes.science@gmail.com | 6d6aa8e | 2013-07-23 01:23:21 -0700 | [diff] [blame] | 1 | <!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.com | d42b402 | 2013-08-09 05:05:23 -0700 | [diff] [blame] | 7 | <link rel="shortcut icon" type="image/png" href="static/img/hyrax.png"> |
genia.likes.science@gmail.com | 6d6aa8e | 2013-07-23 01:23:21 -0700 | [diff] [blame] | 8 | |
genia.likes.science@gmail.com | 724476d | 2013-10-04 03:31:16 -0700 | [diff] [blame] | 9 | <!-- 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.com | 724476d | 2013-10-04 03:31:16 -0700 | [diff] [blame] | 12 | |
| 13 | <style type="text/css"> |
genia.likes.science@gmail.com | 6d6aa8e | 2013-07-23 01:23:21 -0700 | [diff] [blame] | 14 | |
| 15 | #map_canvas img { |
| 16 | max-width: none; |
| 17 | } |
| 18 | |
genia.likes.science@gmail.com | 724476d | 2013-10-04 03:31:16 -0700 | [diff] [blame] | 19 | .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.com | 6d6aa8e | 2013-07-23 01:23:21 -0700 | [diff] [blame] | 36 | |
| 37 | </style> |
| 38 | </head> |
| 39 | <body style="width: 100%; height: 100%;"> |
| 40 | |
| 41 | <!-- Nav --> |
genia.likes.science@gmail.com | 724476d | 2013-10-04 03:31:16 -0700 | [diff] [blame] | 42 | <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.com | 2de4c18 | 2013-10-04 11:39:11 -0700 | [diff] [blame] | 56 | <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.com | 724476d | 2013-10-04 03:31:16 -0700 | [diff] [blame] | 58 | <li id="review-active"><a id="review-mode" href="#">Review</a></li> |
| 59 | </ul> |
| 60 | </div> |
genia.likes.science@gmail.com | 6d6aa8e | 2013-07-23 01:23:21 -0700 | [diff] [blame] | 61 | </div> |
genia.likes.science@gmail.com | 724476d | 2013-10-04 03:31:16 -0700 | [diff] [blame] | 62 | </div><!-- /Nav --> |
genia.likes.science@gmail.com | 6d6aa8e | 2013-07-23 01:23:21 -0700 | [diff] [blame] | 63 | |
| 64 | <!-- Search Box --> |
genia.likes.science@gmail.com | 724476d | 2013-10-04 03:31:16 -0700 | [diff] [blame] | 65 | <div class="container"> |
genia.likes.science@gmail.com | 6d6aa8e | 2013-07-23 01:23:21 -0700 | [diff] [blame] | 66 | |
genia.likes.science@gmail.com | 724476d | 2013-10-04 03:31:16 -0700 | [diff] [blame] | 67 | <div class="row" id="r1"> |
| 68 | <div class="col-md-5"> |
| 69 | <div class="container well" id="explore-well"> |
genia.likes.science@gmail.com | 6d6aa8e | 2013-07-23 01:23:21 -0700 | [diff] [blame] | 70 | |
genia.likes.science@gmail.com | 724476d | 2013-10-04 03:31:16 -0700 | [diff] [blame] | 71 | <!-- 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 Gabrielova | 8b34c65 | 2013-10-19 06:53:27 -0700 | [diff] [blame^] | 117 | <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.com | 724476d | 2013-10-04 03:31:16 -0700 | [diff] [blame] | 120 | <input type="checkbox" value="Submit Asynchronously" name="async" id="asbox" /> |
| 121 | Submit asynchronously? |
| 122 | </li> |
genia.likes.science@gmail.com | 724476d | 2013-10-04 03:31:16 -0700 | [diff] [blame] | 123 | </ul> |
genia.likes.science@gmail.com | 6d6aa8e | 2013-07-23 01:23:21 -0700 | [diff] [blame] | 124 | </div> |
genia.likes.science@gmail.com | 2de4c18 | 2013-10-04 11:39:11 -0700 | [diff] [blame] | 125 | </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.com | 1400a75 | 2013-10-04 04:59:12 -0700 | [diff] [blame] | 141 | </div> |
genia.likes.science@gmail.com | 2de4c18 | 2013-10-04 11:39:11 -0700 | [diff] [blame] | 142 | <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.com | 1400a75 | 2013-10-04 04:59:12 -0700 | [diff] [blame] | 158 | </div> |
| 159 | </div> |
genia.likes.science@gmail.com | 6d6aa8e | 2013-07-23 01:23:21 -0700 | [diff] [blame] | 160 | </div> |
Eugenia Gabrielova | dbd50a4 | 2013-10-19 00:30:27 -0700 | [diff] [blame] | 161 | |
| 162 | <!-- Div to hold success/error messages --> |
| 163 | <div id="report-message"></div> |
genia.likes.science@gmail.com | 724476d | 2013-10-04 03:31:16 -0700 | [diff] [blame] | 164 | </div> |
genia.likes.science@gmail.com | 6d6aa8e | 2013-07-23 01:23:21 -0700 | [diff] [blame] | 165 | |
genia.likes.science@gmail.com | 724476d | 2013-10-04 03:31:16 -0700 | [diff] [blame] | 166 | <div class="col-md-7"> |
Eugenia Gabrielova | 8b34c65 | 2013-10-19 06:53:27 -0700 | [diff] [blame^] | 167 | <!-- Map Container --> |
genia.likes.science@gmail.com | 724476d | 2013-10-04 03:31:16 -0700 | [diff] [blame] | 168 | <div class="container well" id="right-col"> |
Eugenia Gabrielova | d07556a | 2013-10-11 03:45:06 -0700 | [diff] [blame] | 169 | <div id="map_canvas" style="max-width: 100%; height: auto;"></div> |
genia.likes.science@gmail.com | 724476d | 2013-10-04 03:31:16 -0700 | [diff] [blame] | 170 | </div> |
Eugenia Gabrielova | 8b34c65 | 2013-10-19 06:53:27 -0700 | [diff] [blame^] | 171 | |
| 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.com | 724476d | 2013-10-04 03:31:16 -0700 | [diff] [blame] | 184 | </div> |
| 185 | </div> |
| 186 | |
| 187 | <!-- Modals and Dialogs --> |
| 188 | <div class="row"> |
genia.likes.science@gmail.com | 724476d | 2013-10-04 03:31:16 -0700 | [diff] [blame] | 189 | |
genia.likes.science@gmail.com | 2de4c18 | 2013-10-04 11:39:11 -0700 | [diff] [blame] | 190 | <!-- 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.com | 0f67d9e | 2013-10-04 17:08:50 -0700 | [diff] [blame] | 194 | <div class="modal-body" id="drilldown_modal_body"> |
| 195 | |
| 196 | <!-- Tweet --> |
Eugenia Gabrielova | d07556a | 2013-10-11 03:45:06 -0700 | [diff] [blame] | 197 | <div id="modal-body-tweet" class="well well-sm"></div> |
genia.likes.science@gmail.com | 0f67d9e | 2013-10-04 17:08:50 -0700 | [diff] [blame] | 198 | |
| 199 | <!-- Existing comments about this tweet --> |
| 200 | <!-- Create new comment --> |
Eugenia Gabrielova | d07556a | 2013-10-11 03:45:06 -0700 | [diff] [blame] | 201 | <div class="panel panel-default" id="modal-existing-note"> |
| 202 | <div class="panel-heading">About this Tweetbook</div> |
genia.likes.science@gmail.com | 0f67d9e | 2013-10-04 17:08:50 -0700 | [diff] [blame] | 203 | <div class="panel-body" id="modal-body-notes-holder"> |
| 204 | |
Eugenia Gabrielova | d07556a | 2013-10-11 03:45:06 -0700 | [diff] [blame] | 205 | <div class="input-group"> |
genia.likes.science@gmail.com | 0f67d9e | 2013-10-04 17:08:50 -0700 | [diff] [blame] | 206 | <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 Gabrielova | d07556a | 2013-10-11 03:45:06 -0700 | [diff] [blame] | 219 | <div class="panel panel-default" id="modal-save-tweet-panel"> |
genia.likes.science@gmail.com | 0f67d9e | 2013-10-04 17:08:50 -0700 | [diff] [blame] | 220 | <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 Gabrielova | d07556a | 2013-10-11 03:45:06 -0700 | [diff] [blame] | 235 | |
| 236 | <div id="modal-body-message-holder"></div> |
| 237 | |
genia.likes.science@gmail.com | 0f67d9e | 2013-10-04 17:08:50 -0700 | [diff] [blame] | 238 | </div> |
| 239 | </div> |
| 240 | </div> |
genia.likes.science@gmail.com | 2de4c18 | 2013-10-04 11:39:11 -0700 | [diff] [blame] | 241 | <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.com | 724476d | 2013-10-04 03:31:16 -0700 | [diff] [blame] | 248 | </div><!-- Row --> |
genia.likes.science@gmail.com | 2de4c18 | 2013-10-04 11:39:11 -0700 | [diff] [blame] | 249 | |
| 250 | <!-- About Row --> |
genia.likes.science@gmail.com | 0f67d9e | 2013-10-04 17:08:50 -0700 | [diff] [blame] | 251 | <div class="row" id="aboutr" style="display:none;"> |
genia.likes.science@gmail.com | 2de4c18 | 2013-10-04 11:39:11 -0700 | [diff] [blame] | 252 | <div class="container"> |
Eugenia Gabrielova | 8b34c65 | 2013-10-19 06:53:27 -0700 | [diff] [blame^] | 253 | |
| 254 | <!-- Welcome Message --> |
| 255 | <div class="row"> |
| 256 | |
| 257 | <!-- Welcome Message --> |
genia.likes.science@gmail.com | 2de4c18 | 2013-10-04 11:39:11 -0700 | [diff] [blame] | 258 | <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 Gabrielova | 8b34c65 | 2013-10-19 06:53:27 -0700 | [diff] [blame^] | 260 | <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.com | 2de4c18 | 2013-10-04 11:39:11 -0700 | [diff] [blame] | 282 | </div> |
Eugenia Gabrielova | 8b34c65 | 2013-10-19 06:53:27 -0700 | [diff] [blame^] | 283 | |
genia.likes.science@gmail.com | 0f67d9e | 2013-10-04 17:08:50 -0700 | [diff] [blame] | 284 | |
genia.likes.science@gmail.com | 2de4c18 | 2013-10-04 11:39:11 -0700 | [diff] [blame] | 285 | </div> |
| 286 | </div><!-- /About --> |
genia.likes.science@gmail.com | 724476d | 2013-10-04 03:31:16 -0700 | [diff] [blame] | 287 | |
Eugenia Gabrielova | 8b34c65 | 2013-10-19 06:53:27 -0700 | [diff] [blame^] | 288 | </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.com | 724476d | 2013-10-04 03:31:16 -0700 | [diff] [blame] | 298 | </body> |
| 299 | </html> |