Hobbyzone Transporttabletts
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: [3.25, 78.25],
connect: true,
range: {
min: [3.25],
max: [78.25]
}
});
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
- Aufkleber Artefakt für Tragbare Hobby Station (Sticker Artifact)3,25 EUR ** inkl. MwSt. zzgl. Versand
- Multifunktionseinsatz für Tragbare Hobby Station (Multifunctional Insert)19,25 EUR ** inkl. MwSt. zzgl. Versand
- Pinsel und Werkzeuge Einsatz für Tragbare Hobby Station (Brushes and Tools Insert)8,50 EUR ** inkl. MwSt. zzgl. Versand
- Palette und Pinsel Einsatz für Tragbare Hobby Station (Palette and Brushes Insert)9,90 EUR ** inkl. MwSt. zzgl. Versand
- Stahlfolieneinsatz für Tragbare Hobby Station (Steel Trey Insert)11,50 EUR ** inkl. MwSt. zzgl. Versand
- Schubladeneinsatz für Werkzeuge und Zubehör für Tragbare Hobby Station (Tools and Accessories Drawer Insert)7,25 EUR ** inkl. MwSt. zzgl. Versand
- Großer Schubladeneinsatz für Tragbare Hobby Station (Large Capacity Drawer Insert)8,90 EUR ** inkl. MwSt. zzgl. Versand
- Universeller Schubladeneinsatz für Tragbare Hobby Station (Universal Drawer Insert)9,50 EUR ** inkl. MwSt. zzgl. Versand
- Professionelle Miniaturen Transport Box (Professional Transport Case)78,25 EUR ** 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: [3.25, 78.25],
connect: true,
range: {
min: [3.25],
max: [78.25]
}
});
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;
}
});
});
});