Bemalhilfen
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: [1.5, 73.5],
connect: true,
range: {
min: [1.5],
max: [73.5]
}
});
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
Maßstab
Kategorien
Kategorien
- RedgrassGames Mounting Putty 15g for RGG360 Neutral Gray3,50 EUR *0.015 Kilogramm | 175,00 EUR / Kilogramm* inkl. MwSt. zzgl. Versand
- Abteilung 502 Liquid Mask 100ml7,50 EUR *100 Milliliter | 75,00 EUR / Liter* inkl. MwSt. zzgl. Versand
- AK Interactive Xtreme Cleaner and Thinner 100ml6,75 EUR *100 Milliliter | 67,50 EUR / Liter* inkl. MwSt. zzgl. Versand
- AK Interactive Paint Stripper 100ml7,50 EUR *100 Milliliter | 75,00 EUR / Liter* inkl. MwSt. zzgl. Versand
- JETZT im SALE!AK Interactive Perfect Cleaner 100ml5,50 EUR *100 Milliliter | 55,00 EUR / Liter* inkl. MwSt. zzgl. Versand
- -4%
- -3%Mixing Balls Stainless Steel 100 Agitatorkugeln
Statt 8,99 EUR8,75 EUR *100 Stück* inkl. MwSt. zzgl. Versand - AK Interactive Stainless Steel Shakers 250 Agitatorkugeln5,50 EUR *250 Stück* 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: [1.5, 73.5],
connect: true,
range: {
min: [1.5],
max: [73.5]
}
});
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;
}
});
});
});