Alliierte: Amerika
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.5, 295],
connect: true,
range: {
min: [3.5],
max: [295]
}
});
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
Sprache
Maßstab
Bolt Action Fraktion
Kategorien
Kategorien
- Bolt Action Starter Set Battle of the Bulge 28mm (Englisch)106,50 EUR ** inkl. MwSt. zzgl. Versand
- United States Gemini Blue-Red/White 12x W6 16mm War Dice Set10,00 EUR ** inkl. MwSt. zzgl. Versand
- AK Interactive US Airborn Division D-Day Wargame Starter Set43,00 EUR *1 Stück* inkl. MwSt. zzgl. Versand
- AK Interactive Fortunate Sons 101st Airborne Division43,00 EUR *1 Stück* inkl. MwSt. zzgl. Versand
- 75mm Field Gun M1897A3 Anti Tank Gun on M2A3 Carriage with US Gun Crew 1/56 28mm24,00 EUR ** inkl. MwSt. zzgl. Versand
- Artikelpaket
- LVT-2 / LVT(A)-2 Water Buffalo Landing Vehicle Tracked 1/56 28mm26,50 EUR ** inkl. MwSt. zzgl. Versand
- LVT(A)-1 / LVT(A)-4 AmTank Landing Vehicle Tracked 1/56 28mm25,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.5, 295],
connect: true,
range: {
min: [3.5],
max: [295]
}
});
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;
}
});
});
});