1
This commit is contained in:
Alex Yatskov 2014-11-08 18:28:14 +09:00
parent f3c36614a7
commit 121d236ef6

View File

@ -13,40 +13,26 @@
<h1><img id="spinner" alt="loading" class="pull-right" src="images/spinner.gif" style="display: none;" width="32" height="32">Reactive Search</h1> <h1><img id="spinner" alt="loading" class="pull-right" src="images/spinner.gif" style="display: none;" width="32" height="32">Reactive Search</h1>
</div> </div>
<!-- query input -->
<div class="form-horizontal">
<div class="form-group">
<label for="searchKeyword" class="col-md-2 control-label">Keywords</label>
<div class="col-md-10">
<select id="searchKeyword" class="form-control"></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 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>
<!-- options dialog --> <!-- options dialog -->
<div class="modal fade" id="optionsDialog" tabindex="-1"> <div class="modal fade" id="optionsDialog" tabindex="-1">
<div class="modal-dialog modal-sm"> <div class="modal-dialog modal-sm">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"><big>Visualization Options</big></div> <div class="modal-header">
<big>Options</big>
</div>
<div class="modal-body"> <div class="modal-body">
<div class="form-group">
<label for="minScore">Minimum score</label>
<input class="form-control" type="number" step="any" value="0.25" id="minScore">
</div>
<div class="form-group">
<label for="hintSteps">Hint steps</label>
<input class="form-control" type="number" value="20" id="hintSteps">
</div>
<div class="form-group">
<label for="maxResults">Max results</label>
<input class="form-control" type="number" value="100" id="maxResults">
</div>
<div class="checkbox"> <div class="checkbox">
<label><input type="checkbox" id="useLocalScale" checked="checked">Use local scale</label> <label><input type="checkbox" id="useLocalScale" checked="checked">Use local scale</label>
</div> </div>
@ -61,17 +47,28 @@
</div> </div>
</div> </div>
<!-- query output --> <!-- query input -->
<div>
<!-- semantic tweaker -->
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<big>Semantic tweaker</big> <big>Query</big>
<div class="btn-group pull-right"> <div class="btn-group pull-right">
<button class="btn btn-xs btn-default" data-toggle="modal" data-target="#optionsDialog">Options</button> <button class="btn btn-xs btn-default" data-toggle="modal" data-target="#optionsDialog">Options</button>
</div> </div>
</div> </div>
<div style="padding: 10px;"> <div class="panel-body">
<div class="form-group">
<label for="searchKeyword">Keywords</label>
<select id="searchKeyword" class="form-control"></select>
</div>
</div>
</div>
<!-- semantic tweaker -->
<div class="panel panel-default">
<div class="panel-heading">
<big>Semantic tweaker</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> <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;"> <div class="text-center" style="display: none;">
<input id="history" style="width: 90%;" type="text" data-slider-reversed="true" data-slider-max="0"> <input id="history" style="width: 90%;" type="text" data-slider-reversed="true" data-slider-max="0">
@ -81,8 +78,10 @@
<!-- result listing --> <!-- result listing -->
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"><big>Query results (<span id="count"></span>)</big></div> <div class="panel-heading">
<div style="padding: 10px;"> <big>Query results (<span id="count"></span>)</big>
</div>
<div class="panel-body">
<script id="template" type="text/x-handlers-template"> <script id="template" type="text/x-handlers-template">
{{#if results}} {{#if results}}
<table class="table table-striped table-condensed"> <table class="table table-striped table-condensed">
@ -107,7 +106,6 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<!-- inject:js --> <!-- inject:js -->
<!-- endinject --> <!-- endinject -->
</body> </body>