1

Adding slider stub

This commit is contained in:
Alex Yatskov 2014-10-04 19:22:41 +09:00
parent ccb5b5d7a2
commit 94d70dc9ea
3 changed files with 7 additions and 4 deletions

View File

@ -18,6 +18,7 @@
"handlebars": "~1.3.0",
"underscore": "~1.6.0",
"bootstrap-select": "~1.6.2",
"tinycolor": "~1.0.0"
"tinycolor": "~1.0.0",
"seiyria-bootstrap-slider": "~4.0.1"
}
}

View File

@ -117,7 +117,7 @@
<!-- semantic tweaker -->
<div class="panel panel-default unselectable">
<div class="panel-heading">
<big>Semantic tweaks to <span id="query" class="text-primary"></span></big>
<big>Semantic tweaks to: <span id="query"></span></big>
<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>
@ -125,13 +125,14 @@
</div>
</div>
<div style="padding: 10px;">
<canvas id="grapher" width="800" height="550"></canvas>
<canvas id="grapher" width="800" height="550"></canvas><br>
<input id="history" type="text" data-slider-min="0" data-slider-max="20" data-slider-step="1">
</div>
</div>
<!-- result listing -->
<div class="panel panel-default">
<div class="panel-heading"><big>Query results (<span id="count" class="text-primary"></span>)</big></div>
<div class="panel-heading"><big>Query results (<span id="count"></span>)</big></div>
<div style="padding: 10px;">
<script id="template" type="text/x-handlers-template">
{{#if results}}

View File

@ -161,6 +161,7 @@
ready: function() {
$('#keywordsToSearch').selectpicker();
$('#history').slider();
$.getJSON('/get_keywords', function(keywords) {
$('#searchKeywords').click(onSearch);