Milliput
Sortierung
Filter
Preis
€
―
€
"use strict";
var keypressSlider = document.querySelector(".slider-keypress");
var input0 = document.querySelector(".input-with-keypress-0");
var input1 = document.querySelector(".input-with-keypress-1");
var inputs = [input0, input1];
noUiSlider.create(keypressSlider, {
start: [5.75, 10.9],
connect: true,
range: {
min: [5.75],
max: [10.9]
}
});
keypressSlider.noUiSlider.on("update", function(values, handle) {
inputs[handle].value = values[handle];
function setSliderHandle(i, value) {
var r = [null, null];
r[i] = value;
keypressSlider.noUiSlider.set(r);
}
inputs.forEach(function(input, handle) {
input.addEventListener("change", function() {
setSliderHandle(handle, this.value);
});
input.addEventListener("keydown", function(e) {
var values = keypressSlider.noUiSlider.get();
var value = Number(values[handle]);
var steps = keypressSlider.noUiSlider.steps();
var step = steps[handle];
var position;
switch (e.which) {
case 13: setSliderHandle(handle, this.value); break;
case 38: position = step[1]; if (position === false) { position = 1; } if (position !== null) {setSliderHandle(handle, value + position); } break;
case 40: position = step[0]; if (position === false) { position = 1; } if (position !== null) { setSliderHandle(handle, value - position); } break;
}
});
});
});
Verfügbarkeit
Hersteller
Kategorien
Kategorien
- Milliput Modelliermasse Turquoise Blue 113.4g (Epoxy Putty)10,90 EUR *0.113 Kilogramm | 99,09 EUR / Kilogramm* inkl. MwSt. zzgl. Versand
- Milliput Modelliermasse Superfine White 113.4g (Epoxy Putty)10,25 EUR *0.113 Kilogramm | 93,18 EUR / Kilogramm* inkl. MwSt. zzgl. Versand
- Milliput Modelliermasse Black 113.4g (Epoxy Putty)9,90 EUR *0.113 Kilogramm | 90,00 EUR / Kilogramm* inkl. MwSt. zzgl. Versand
- Milliput Modelliermasse Silver - Grey 113.4g (Epoxy Putty)8,90 EUR *0.113 Kilogramm | 80,91 EUR / Kilogramm* inkl. MwSt. zzgl. Versand
- Milliput Modelliermasse Standard Yellow - Grey 113.4g (Epoxy Putty)5,75 EUR *0.113 Kilogramm | 52,27 EUR / Kilogramm* inkl. MwSt. zzgl. Versand
- Milliput Modelliermasse Terracotta 113.4g (Epoxy Putty)6,75 EUR *0.113 Kilogramm | 61,36 EUR / Kilogramm* inkl. MwSt. zzgl. Versand
Preis
€
―
€
"use strict";
var keypressSlider = document.querySelector(".slider-keypress");
var input0 = document.querySelector(".input-with-keypress-0");
var input1 = document.querySelector(".input-with-keypress-1");
var inputs = [input0, input1];
noUiSlider.create(keypressSlider, {
start: [5.75, 10.9],
connect: true,
range: {
min: [5.75],
max: [10.9]
}
});
keypressSlider.noUiSlider.on("update", function(values, handle) {
inputs[handle].value = values[handle];
function setSliderHandle(i, value) {
var r = [null, null];
r[i] = value;
keypressSlider.noUiSlider.set(r);
}
inputs.forEach(function(input, handle) {
input.addEventListener("change", function() {
setSliderHandle(handle, this.value);
});
input.addEventListener("keydown", function(e) {
var values = keypressSlider.noUiSlider.get();
var value = Number(values[handle]);
var steps = keypressSlider.noUiSlider.steps();
var step = steps[handle];
var position;
switch (e.which) {
case 13: setSliderHandle(handle, this.value); break;
case 38: position = step[1]; if (position === false) { position = 1; } if (position !== null) {setSliderHandle(handle, value + position); } break;
case 40: position = step[0]; if (position === false) { position = 1; } if (position !== null) { setSliderHandle(handle, value - position); } break;
}
});
});
});