Starter-Sets & Grundboxen
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: [16.75, 125.75],
connect: true,
range: {
min: [16.75],
max: [125.75]
}
});
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
KoW Fraktion
Kategorien
Kategorien
- KoW Trident Realm Dambuster Pondwarden Sentinel
Statt 30,00 EUR25,00 EUR ** inkl. MwSt. zzgl. Versand - -16%
- -17%KoW The Chill of Twilight 2-Player Ambush Starter Set
Statt 80,00 EUR66,75 EUR ** inkl. MwSt. zzgl. Versand - -17%KoW The Raging Void 2-Player Starter Set (Englisch)
Statt 110,00 EUR91,75 EUR ** inkl. MwSt. zzgl. Versand - -17%KoW Ice and Shadow 2-Player Starter Set (Englisch)
Statt 100,00 EUR83,50 EUR ** inkl. MwSt. zzgl. Versand - -6%
- -16%
- -17%KoW Sands of Ahmun 2-Player Starter Set (Englisch)
Statt 100,00 EUR83,50 EUR ** inkl. MwSt. zzgl. Versand - -17%KoW A Storm in the Shires 2-Player Starter Set (Englisch)
Statt 100,00 EUR83,50 EUR ** inkl. MwSt. zzgl. Versand - -17%KoW War in the Holds Kings of War 2-Player Starter Set (Englisch)
Statt 100,00 EUR83,50 EUR ** inkl. MwSt. zzgl. Versand - -16%
- -20%KoW Shadows in the North Kings of War 2-Player Starter Set (Englisch)
Statt 100,00 EUR80,00 EUR ** inkl. MwSt. zzgl. Versand - -16%
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: [16.75, 125.75],
connect: true,
range: {
min: [16.75],
max: [125.75]
}
});
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;
}
});
});
});