diff --git a/ui/experiments/editor.html b/ui/experiments/editor.html index ff6df8b3..c2dd3799 100755 --- a/ui/experiments/editor.html +++ b/ui/experiments/editor.html @@ -50,12 +50,28 @@ input[type='range']::-webkit-slider-thumb { } .value { + -webkit-appearance: none !important; display: inline-block; width: 40px; text-align: right; margin-left: 5px; margin-right: 5px; + background: white; + border: none; + border-radius: 2px; } +input::-webkit-outer-spin-button, +input::-webkit-inner-spin-button { + -webkit-appearance: none !important; + /* + display: inline-block; + background: white; + border-radius: 2px; + border: solid 1px gray; + width: 10px; + */ +} + @@ -161,12 +177,20 @@ function makeAbsRange(text, filter, target, min, max, dfl, step, tran, normalize .val(dfl) .change(function(){ var val = this.valueAsNumber - value.text(val) + value.val(val) updateFilter(target, this.id, tran(val)) }) .appendTo(elem) - var value = $('') - .html(dfl) + var value = $('') + .attr({ + min: min, + max: max, + step: step, + }) + .val(dfl) + .change(function(){ + range.val($(this).val()) + }) .appendTo(elem) $('') .click(function(){ @@ -209,6 +233,8 @@ $(function(){ .append($('