Spaces:
Running
Running
adaptive
Browse files- index.html +1 -2
- static/js/index.js +2 -2
index.html
CHANGED
|
@@ -451,8 +451,7 @@
|
|
| 451 |
<div id="c10-image-wrapper" >
|
| 452 |
Loading...
|
| 453 |
</div>
|
| 454 |
-
<input name="c10" class="slider is-full-width is-large is-info"
|
| 455 |
-
id="interpolation-slider"
|
| 456 |
step="1" min="0" max="6" value="0" type="range">
|
| 457 |
<label for="interpolation-slider"><strong>Perturbation Budget Ε</strong> from 2/255 to 128/255</label>
|
| 458 |
</div>
|
|
|
|
| 451 |
<div id="c10-image-wrapper" >
|
| 452 |
Loading...
|
| 453 |
</div>
|
| 454 |
+
<input name="c10" class="slider is-full-width is-large is-info interpolation-slider"
|
|
|
|
| 455 |
step="1" min="0" max="6" value="0" type="range">
|
| 456 |
<label for="interpolation-slider"><strong>Perturbation Budget Ε</strong> from 2/255 to 128/255</label>
|
| 457 |
</div>
|
static/js/index.js
CHANGED
|
@@ -91,12 +91,12 @@ $(document).ready(function() {
|
|
| 91 |
}, false);*/
|
| 92 |
preloadInterpolationImages();
|
| 93 |
|
| 94 |
-
$('
|
| 95 |
console.log(this.name)
|
| 96 |
setInterpolationImage(this.name, this.value);
|
| 97 |
});
|
| 98 |
setInterpolationImage(0);
|
| 99 |
-
$('
|
| 100 |
|
| 101 |
bulmaSlider.attach();
|
| 102 |
|
|
|
|
| 91 |
}, false);*/
|
| 92 |
preloadInterpolationImages();
|
| 93 |
|
| 94 |
+
$('.interpolation-slider').on('input', function(event) {
|
| 95 |
console.log(this.name)
|
| 96 |
setInterpolationImage(this.name, this.value);
|
| 97 |
});
|
| 98 |
setInterpolationImage(0);
|
| 99 |
+
$('.interpolation-slider').prop('max', NUM_INTERP_FRAMES - 1);
|
| 100 |
|
| 101 |
bulmaSlider.attach();
|
| 102 |
|