2014-09-30 08:40:31 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Reactive Search</title>
|
|
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
2015-02-27 08:23:41 +00:00
|
|
|
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css">
|
2014-09-30 08:40:31 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
<!-- busy spinner -->
|
|
|
|
<div class="page-header">
|
2014-10-05 10:00:17 +00:00
|
|
|
<h1><img id="spinner" alt="loading" class="pull-right" src="images/spinner.gif" style="display: none;" width="32" height="32">Reactive Search</h1>
|
2014-09-30 08:40:31 +00:00
|
|
|
</div>
|
|
|
|
|
2015-03-09 11:18:50 +00:00
|
|
|
<!-- profile dialog -->
|
2015-03-09 13:56:19 +00:00
|
|
|
<div id="profileDlg" class="modal fade" tabindex="-1" role="dialog">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="model-header">
|
|
|
|
<div class="modal-header">
|
2015-03-09 14:14:04 +00:00
|
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
2015-03-26 09:04:34 +00:00
|
|
|
<h3 class="modal-title">Profile Editor</h3>
|
2015-03-09 13:56:19 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<iframe src="/profile.html" width="100%" height="250" frameborder="0"></iframe>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2015-03-17 07:54:01 +00:00
|
|
|
<button class="btn btn-warning" id="resetStorage">Reset</button>
|
2015-03-17 06:23:57 +00:00
|
|
|
<button class="btn btn-default" data-dismiss="modal">Accept</button>
|
2015-03-09 13:56:19 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-03-09 11:18:50 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-11-08 09:54:39 +00:00
|
|
|
<div class="row">
|
|
|
|
<!-- query -->
|
2015-03-09 09:49:47 +00:00
|
|
|
<div class="col-md-3">
|
2014-11-08 09:54:39 +00:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<big>Query</big>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
2015-01-05 07:26:47 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="walkingDist">Walking distance (km)</label>
|
2015-01-05 07:34:13 +00:00
|
|
|
<input class="form-control" type="number" step="0.1" min="0.1" value="1.0" id="walkingDist">
|
2015-01-05 07:26:47 +00:00
|
|
|
</div>
|
2014-11-08 09:28:14 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="minScore">Minimum score</label>
|
2015-01-05 07:34:13 +00:00
|
|
|
<input class="form-control" type="number" step="0.01" value="0.25" id="minScore">
|
2014-11-08 09:28:14 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="hintSteps">Hint steps</label>
|
2015-01-05 07:34:13 +00:00
|
|
|
<input class="form-control" type="number" value="20" min="1" id="hintSteps">
|
2014-11-08 09:28:14 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="maxResults">Max results</label>
|
|
|
|
<input class="form-control" type="number" value="100" id="maxResults">
|
|
|
|
</div>
|
2015-03-21 11:46:20 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="displayType">Display type</label>
|
|
|
|
<select id="displayType" class="form-control">
|
|
|
|
<option value="density">Density</option>
|
|
|
|
<option value="compatibility">Compatibility</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2014-09-30 08:40:31 +00:00
|
|
|
<div class="checkbox">
|
2015-03-22 03:10:53 +00:00
|
|
|
<label><input type="checkbox" id="useLocalScale">Use local scale</label>
|
2014-09-30 08:40:31 +00:00
|
|
|
</div>
|
2015-03-26 09:04:34 +00:00
|
|
|
<button type="button" data-toggle="modal" data-target="#profileDlg" class="btn btn-default">Launch profile editor</button>
|
2014-09-30 08:40:31 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-03-09 09:49:47 +00:00
|
|
|
|
|
|
|
<!-- visualizer -->
|
|
|
|
<div class="col-md-9">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<big>Visualizer</big>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<svg id="svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="800" height="500"></svg>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-09-30 08:40:31 +00:00
|
|
|
</div>
|
2014-11-08 09:28:14 +00:00
|
|
|
|
|
|
|
<!-- result listing -->
|
2014-11-08 10:16:35 +00:00
|
|
|
<div class="panel panel-default" style="display: none;" id="resultPanel">
|
2014-11-08 09:28:14 +00:00
|
|
|
<div class="panel-heading">
|
2014-11-08 10:16:35 +00:00
|
|
|
<big>Results (<span id="resultCount"></span>)</big>
|
2014-11-08 09:28:14 +00:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<script id="template" type="text/x-handlers-template">
|
2015-03-25 11:25:27 +00:00
|
|
|
{{#if records}}
|
2014-11-08 09:28:14 +00:00
|
|
|
<table class="table table-striped table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
2015-01-05 11:28:39 +00:00
|
|
|
<th>Distance to user</th>
|
|
|
|
<th>Closest station</th>
|
|
|
|
<th>Distance to station</th>
|
2015-03-26 04:09:58 +00:00
|
|
|
<th>Compatibility</th>
|
2014-11-08 09:28:14 +00:00
|
|
|
<th>Score</th>
|
2015-03-26 04:09:58 +00:00
|
|
|
<th>Access count</th>
|
2014-11-08 09:28:14 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2015-03-25 11:25:27 +00:00
|
|
|
{{#each records}}
|
2014-11-08 09:28:14 +00:00
|
|
|
<tr>
|
2015-03-26 03:18:43 +00:00
|
|
|
<td><a href="{{url}}" target="_blank" onclick="javascript:accessReview({{id}});">{{name}}</a></td>
|
|
|
|
<td>{{#prettyFloat 2}}{{distanceToUser}}{{/prettyFloat}} km</td>
|
2015-03-25 10:27:25 +00:00
|
|
|
<td>{{closestStn}}</td>
|
2015-03-26 03:18:43 +00:00
|
|
|
<td>{{distanceToStn}} m</td>
|
2015-03-26 04:09:58 +00:00
|
|
|
<td>{{#prettyFloat 4}}{{compatibility}}{{/prettyFloat}}</td>
|
2015-03-26 03:18:43 +00:00
|
|
|
<td>{{#prettyFloat 4}}{{score}}{{/prettyFloat}}</td>
|
2015-03-26 04:09:58 +00:00
|
|
|
<td>{{accessCount}}</td>
|
2014-11-08 09:28:14 +00:00
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</table>
|
|
|
|
{{/if}}
|
|
|
|
</script>
|
2015-03-25 11:25:27 +00:00
|
|
|
<div id="records"></div>
|
2014-11-08 09:28:14 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-11-08 09:54:39 +00:00
|
|
|
|
2014-09-30 08:40:31 +00:00
|
|
|
</div>
|
2015-03-09 09:50:24 +00:00
|
|
|
|
2015-02-27 08:23:41 +00:00
|
|
|
<script src="bower_components/jquery/dist/jquery.js"></script>
|
|
|
|
<script src="bower_components/handlebars/handlebars.js"></script>
|
|
|
|
<script src="bower_components/underscore/underscore.js"></script>
|
|
|
|
<script src="bower_components/tinycolor/tinycolor.js"></script>
|
|
|
|
<script src="bower_components/snap.svg/dist/snap.svg-min.js"></script>
|
|
|
|
<script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
|
2015-02-27 08:32:15 +00:00
|
|
|
<script src="scripts/search.js"></script>
|
2015-02-27 08:23:41 +00:00
|
|
|
<script src="scripts/grapher.js"></script>
|
2015-03-09 09:50:24 +00:00
|
|
|
|
2014-09-30 08:40:31 +00:00
|
|
|
</body>
|
|
|
|
</html>
|