Modellbau
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: [10.5, 235],
connect: true,
range: {
min: [10.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
Maßstab
Kategorien
Kategorien
- Pz.Kpfw.VI Sd.Kfz.182 Tiger II (Porsche Early production vehicle Fgst.Nr.280009) 1:16235,00 EUR ** inkl. MwSt. zzgl. Versand
- Meng Russian Main Battle Tank T-72B3M w/KMT-8 Mine Clearing System 1/3570,75 EUR ** inkl. MwSt. zzgl. Versand
- Meng U.S. Infantry Fighting Vehicle M2A3 Bradley w/BUSK III 1/3579,90 EUR ** inkl. MwSt. zzgl. Versand
- Meng British Mastiff 2 6X6 Wheeled Protected Patrol Vehicle 1/3579,90 EUR ** inkl. MwSt. zzgl. Versand
- Meng Russian Air Defense Weapon System 96K6 Pantsir-S1 1/35127,25 EUR ** inkl. MwSt. zzgl. Versand
- Takom Jagdpanzer 38(t) Hetzer LATE mit komplettem Interieur 1/3552,90 EUR ** inkl. MwSt. zzgl. Versand
- Takom WWI French Light Tank Renault FT Char Canon / Girod Turret 1/1699,90 EUR ** inkl. MwSt. zzgl. Versand
- Das Werk Schwerer kleiner Panzer German Heavy Tank Project 1944 2in1 1/3541,25 EUR ** inkl. MwSt. zzgl. Versand
- Das Werk PzKpfwg.VI Tiger I Late Sd.Kfz.181 mit Zimmerit 1/3568,25 EUR ** inkl. MwSt. zzgl. Versand
- JETZT im SALE!
- Meng German Medium Tank Sd.Kfz.171 Panther Ausf. G Early with Air Defense Armor 1/3548,50 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: [10.5, 235],
connect: true,
range: {
min: [10.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;
}
});
});
});