1

Adding history slider callback stub

This commit is contained in:
Alex Yatskov 2014-10-04 19:57:31 +09:00
parent 94d70dc9ea
commit 07b89725d8
2 changed files with 9 additions and 2 deletions

View File

@ -125,8 +125,10 @@
</div>
</div>
<div style="padding: 10px;">
<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">
<canvas id="grapher" width="800" height="550"></canvas>
<div class="text-right">
<input id="history" type="text" data-slider-max="20" data-slider-step="1">
</div>
</div>
</div>

View File

@ -138,6 +138,10 @@
});
}
function onHistory(arg) {
}
function outputResults(results, count) {
var searchResultCnt = String(results.length);
if (results.length < count) {
@ -191,6 +195,7 @@
});
});
$('#history').on('slideStop', onHistory);
$('#learnKeyword').click(onLearn);
$('#keywordToLearn').bind('input', function() {
$('#learnKeyword').prop('disabled', !$(this).val());