2014-07-08 04:35:52 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2014-07-14 23:23:49 +00:00
|
|
|
<title>Reactive Search</title>
|
2014-07-08 04:35:52 +00:00
|
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
2014-07-18 09:33:54 +00:00
|
|
|
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
|
|
|
|
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap-theme.min.css">
|
2014-09-04 02:47:15 +00:00
|
|
|
<link rel="stylesheet" href="style.css">
|
2014-07-08 04:35:52 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
<div class="page-header">
|
2014-07-28 09:18:54 +00:00
|
|
|
<h1>
|
|
|
|
Reactive Search
|
2014-07-28 09:21:42 +00:00
|
|
|
<img id="spinner" src="images/spinner.gif" style="float: right; display: none;" width="32" height="32">
|
2014-07-28 09:18:54 +00:00
|
|
|
</h1>
|
2014-07-08 04:35:52 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="input">
|
|
|
|
<form class="form-horizontal">
|
|
|
|
<div class="form-group">
|
2014-09-12 06:41:27 +00:00
|
|
|
<label for="keywords" class="col-md-2 control-label">Keywords</label>
|
2014-07-08 04:35:52 +00:00
|
|
|
<div class="col-md-10">
|
2014-09-12 06:41:27 +00:00
|
|
|
<select id="keywords" class="form-control" name="keywords" multiple="multiple"></select>
|
2014-07-08 04:35:52 +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">
|
2014-09-13 03:13:43 +00:00
|
|
|
<input type="text" class="form-control" value="1.0" id="minScore" name="minScore">
|
2014-07-08 04:35:52 +00:00
|
|
|
</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" name="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" name="maxResults">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-md-offset-2 col-md-10">
|
2014-07-28 01:57:04 +00:00
|
|
|
<button class="btn btn-primary" id="search" type="button" disabled="disabled">
|
2014-07-08 04:35:52 +00:00
|
|
|
<span class="glyphicon glyphicon-search"></span> Search
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="output" style="display: none;">
|
|
|
|
<form>
|
|
|
|
<div class="panel panel-default">
|
2014-07-28 02:52:30 +00:00
|
|
|
<div class="panel-heading"><big>Semantic tweaks to <span id="query" class="text-primary"></span></big></div>
|
2014-09-04 02:47:15 +00:00
|
|
|
<div style="padding: 10px;" class="unselectable">
|
2014-07-19 02:59:45 +00:00
|
|
|
<canvas id="grapher" width="500" height="550"></canvas><br>
|
|
|
|
<label class="checkbox-inline">
|
2014-07-28 07:48:24 +00:00
|
|
|
<input type="checkbox" id="useLocalScale" name="useLocalScale" checked="checked"> Use local scale
|
2014-07-19 02:59:45 +00:00
|
|
|
</label>
|
|
|
|
<label class="checkbox-inline">
|
2014-07-28 07:48:24 +00:00
|
|
|
<input type="checkbox" id="useRelativeScale" name="useRelativeScale" checked="checked"> Use relative scale
|
2014-07-19 02:59:45 +00:00
|
|
|
</label>
|
2014-07-08 04:35:52 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading"><big>Query results (<span id="count" class="text-primary"></span>)</big></div>
|
|
|
|
<div style="padding: 10px;">
|
|
|
|
<script id="template" type="text/x-handlers-template">
|
|
|
|
{{#if results}}
|
|
|
|
<table class="table table-striped table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Score</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
{{#each results}}
|
|
|
|
<tr>
|
|
|
|
<td>{{@index}}</td>
|
|
|
|
<td><a href="{{url}}">{{name}}</a></td>
|
|
|
|
<td>{{score}}</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</table>
|
|
|
|
{{/if}}
|
|
|
|
</script>
|
|
|
|
<div id="results"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-07-18 09:33:54 +00:00
|
|
|
<script src="bower_components/underscore/underscore.js"></script>
|
|
|
|
<script src="bower_components/handlebars/handlebars.min.js"></script>
|
|
|
|
<script src="bower_components/closurelibrary/closure/goog/base.js"></script>
|
|
|
|
<script src="bower_components/jquery/dist/jquery.min.js"></script>
|
|
|
|
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
|
|
|
|
<script src="bower_components/fabric/dist/fabric.min.js"></script>
|
2014-07-08 04:35:52 +00:00
|
|
|
|
2014-07-28 01:57:04 +00:00
|
|
|
<script src="application.js"></script>
|
2014-07-08 04:35:52 +00:00
|
|
|
<script src="grapher.js"></script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|