1
restaurant-search/client/index.html

126 lines
6.2 KiB
HTML
Raw Normal View History

2014-07-08 04:35:52 +00:00
<!DOCTYPE html>
<html>
<head>
<title>Multidimensional Search Forecasting</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="bootstrap/css/bootstrap-theme.min.css">
</head>
<body>
<div class="container">
<div class="page-header">
<h1>Multidimensional Search Forecasting</h1>
</div>
<div id="input">
<form class="form-horizontal">
<div class="form-group">
<label for="query" class="col-md-2 control-label">Keyword</label>
<div class="col-md-10">
<select id="query" class="form-control" name="query"></select>
</div>
</div>
<div class="form-group">
<label for="minScore" class="col-md-2 control-label">Minimum score</label>
<div class="col-md-10">
<input type="number" class="form-control" value="1.0" id="minScore" name="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" 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">
<button class="btn btn-primary" id="search" type="button">
<span class="glyphicon glyphicon-search"></span> Search
</button>
</div>
</div>
</form>
</div>
<div id="output" style="display: none;">
<form>
<div class="panel panel-default">
<div class="panel-heading"><big>Semantic tweaks to <span id="keyword" class="text-primary"></span></big></div>
<div class="row" style="padding: 10px;">
<div class="col-md-7">
<canvas id="grapher" width="500" height="550"></canvas>
<label class="checkbox-inline">
<input type="checkbox" id="useLocalScale" name="useLocalScale"> Use local scale
</label>
<label class="checkbox-inline">
<input type="checkbox" id="useRelativeScale" name="useRelativeScale"> Use relative scale
</label>
</div>
<div class="col-md-5">
<div class="text-center">
<canvas id="plotter" width="350" height="350" style="border: 1px #d3d7cf solid;"></canvas>
</div>
<div class="form-group">
<label class="control-label" for="plotAxisX">Plotter X axis</label>
<select class="form-control plotAxes" name="plotAxisX" id="plotAxisX"></select>
</div>
<div class="form-group">
<label class="control-label" for="plotAxisY">Plotter Y axis</label>
<select class="form-control plotAxes" name="plotAxisY" id="plotAxisY"></select>
</div>
</div>
</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>
<script src="underscore/underscore-min.js"></script>
<script src="handlebars.js/handlebars.min.js"></script>
<script src="closure-library/closure/goog/base.js"></script>
<script src="jquery/jquery.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="fabric.js/dist/fabric.min.js"></script>
<script src="grapher.js"></script>
<script src="plotter.js"></script>
<script src="projection.js"></script>
<script src="keywords.json"></script>
<script src="data.json"></script>
</body>
</html>