Alternative Miniaturen - nach Marke
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: [2.5, 235],
connect: true,
range: {
min: [2.5],
max: [235]
}
});
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
Spielsysteme & Marken
Maßstab
Bolt Action Fraktion
Kategorien
- Sd.Kfz. 250/11 and 251/7 Expansion Set for Sd.Kfz. 250/251 1/56 28mm13,50 EUR ** inkl. MwSt. zzgl. Versand
- Sd.Kfz. 250/8 and 251/9 Expansion Set for Sd.Kfz. 250/251 1/56 28mm12,00 EUR ** inkl. MwSt. zzgl. Versand
- Sd.Kfz. 250/3 and 251/3 Expansion Set for Sd.Kfz. 250/251 1/56 28mm11,50 EUR ** inkl. MwSt. zzgl. Versand
- Sd.Kfz. 251/16 Ausf C/D Expansion Set for Sd.Kfz. 250/251 1/56 28mm9,90 EUR ** inkl. MwSt. zzgl. Versand
- Sd.Kfz. 251/22 Ausf D Expansion Set for Sd.Kfz. 250/251 1/56 28mm12,00 EUR ** inkl. MwSt. zzgl. Versand
- JETZT im SALE!Leviathan Right Handed Vulkan Cannon - 28mm Accessory Weapon10,00 EUR ** inkl. MwSt. zzgl. Versand
- JETZT im SALE!
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: [2.5, 235],
connect: true,
range: {
min: [2.5],
max: [235]
}
});
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;
}
});
});
});