1
restaurant-search/client/html/index.html

161 lines
8.0 KiB
HTML
Raw Normal View History

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">
<!-- inject:css -->
<!-- endinject -->
</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>
<!-- query input -->
<div class="form-horizontal">
2014-10-31 02:51:11 +00:00
<div class="form-group">
<label for="keywordsToSearch" class="col-md-2 control-label">Keywords</label>
<div class="col-md-10">
<select id="keywordsToSearch" class="form-control"></select>
2014-10-31 02:51:11 +00:00
</div>
</div>
<div class="form-group">
<label for="minScore" class="col-md-2 control-label">Minimum score</label>
<div class="col-md-10">
<input class="form-control" type="number" step="any" value="0.25" id="minScore">
</div>
</div>
<div class="form-group">
<label for="hintSteps" class="col-md-2 control-label">Hint steps</label>
<div class="col-md-10">
<input class="form-control" type="number" value="20" id="hintSteps">
</div>
</div>
<div class="form-group">
<label for="maxResults" class="col-md-2 control-label">Max results</label>
<div class="col-md-10">
<input class="form-control" type="number" value="100" id="maxResults">
</div>
</div>
</div>
2014-09-30 08:40:31 +00:00
<!-- options dialog -->
<div class="modal fade" id="optionsDialog" tabindex="-1">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header"><big>Visualization Options</big></div>
<div class="modal-body">
<div class="checkbox">
<label><input type="checkbox" id="useLocalScale" checked="checked">Use local scale</label>
</div>
<div class="checkbox">
<label><input type="checkbox" id="useRelativeScale" checked="checked">Use relative scale</label>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- learn keyword dialog -->
<div class="modal fade" id="learnDialog" tabindex="-1">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header"><big>Learn Keyword</big></div>
<div class="modal-body">
<div class="form-group">
2014-10-05 10:00:17 +00:00
<label for="keywordToLearn" class="control-label">Learn keyword as</label>
<input id="keywordToLearn" class="form-control" type="text">
2014-09-30 08:40:31 +00:00
</div>
<div class="alert alert-danger" id="learnError" style="display: none;">Unable to learn keyword</div>
</div>
<div class="modal-footer">
<div class="btn-group">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-success" id="learnKeyword" disabled="disabled">Learn</button>
</div>
</div>
</div>
</div>
</div>
<!-- forget keyword dialog -->
<div class="modal fade" id="forgetDialog" tabindex="-1">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header"><big>Forget Keyword</big></div>
<div class="modal-body">
<div class="form-group">
<label for="keywordToForget">Keyword to forget</label>
<select id="keywordToForget" class="form-control"></select>
</div>
<div class="alert alert-danger" id="forgetError" style="display: none;">Unable to forget keyword</div>
</div>
<div class="modal-footer">
<div class="btn-group">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-danger" id="forgetKeyword" disabled="disabled">Forget</button>
</div>
</div>
</div>
</div>
</div>
<!-- query output -->
<div>
2014-09-30 08:40:31 +00:00
<!-- semantic tweaker -->
<div class="panel panel-default">
2014-09-30 08:40:31 +00:00
<div class="panel-heading">
2014-10-04 10:22:41 +00:00
<big>Semantic tweaks to: <span id="query"></span></big>
2014-09-30 08:40:31 +00:00
<div class="btn-group pull-right">
<button class="btn btn-xs btn-success" data-toggle="modal" data-target="#learnDialog">Learn</button>
<button class="btn btn-xs btn-danger" data-toggle="modal" data-target="#forgetDialog">Forget</button>
<button class="btn btn-xs btn-default" data-toggle="modal" data-target="#optionsDialog">Options</button>
</div>
</div>
<div style="padding: 10px;">
2014-11-05 09:44:07 +00:00
<svg id="svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="800" height="500"></svg>
<div class="text-center" style="display: none;">
<input id="history" style="width: 90%;" type="text" data-slider-reversed="true" data-slider-max="0">
2014-10-04 10:57:31 +00:00
</div>
2014-09-30 08:40:31 +00:00
</div>
</div>
<!-- result listing -->
<div class="panel panel-default">
2014-10-04 10:22:41 +00:00
<div class="panel-heading"><big>Query results (<span id="count"></span>)</big></div>
2014-09-30 08:40:31 +00:00
<div style="padding: 10px;">
<script id="template" type="text/x-handlers-template">
{{#if results}}
<table class="table table-striped table-condensed">
<thead>
<tr>
<th>Id</th>
2014-09-30 08:40:31 +00:00
<th>Name</th>
<th>Score</th>
</tr>
</thead>
{{#each results}}
<tr>
<td>{{id}}</td>
2014-09-30 08:40:31 +00:00
<td><a href="{{url}}">{{name}}</a></td>
<td>{{score}}</td>
</tr>
{{/each}}
</table>
{{/if}}
</script>
<div id="results"></div>
</div>
</div>
</div>
</div>
<!-- inject:js -->
<!-- endinject -->
</body>
</html>