Kingdom of Bretonnia
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: [20.5, 190.8],
connect: true,
range: {
min: [20.5],
max: [190.8]
}
});
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
Sprache
Maßstab
Kategorien
Kategorien
- -10%
- Kingdom of Bretonnia Questing Knights Command [GW WEB EXKLUSIV]50,00 EUR ** inkl. MwSt. zzgl. Versand
- Kingdom of Bretonnia Lord with Great Weapon [GW WEB EXKLUSIV]20,50 EUR ** inkl. MwSt. zzgl. Versand
- Kingdom of Bretonnia Prophetesses of the Lady [GW WEB EXKLUSIV]41,00 EUR ** inkl. MwSt. zzgl. Versand
- -10%
- -10%Kingdom of Bretonnia Knights of the Realm on Foot
Statt 67,50 EUR60,75 EUR ** inkl. MwSt. zzgl. Versand - Kingdom of Bretonnia Grail Knights Command [GW WEB EXKLUSIV]47,50 EUR ** inkl. MwSt. zzgl. Versand
- Warhammer The Old World Arcane Journal Kingdom of Bretonnia (Englisch)21,00 EUR ** inkl. MwSt. zzgl. Versand
- -10%Kingdom of Bretonnia Battle Standard Bearer on Royal Pegasus
Statt 55,00 EUR49,50 EUR ** inkl. MwSt. zzgl. Versand - -10%Warhammer The Old World Kingdom of Bretonnia Core Set (Englisch)
Statt 212,00 EUR190,80 EUR ** inkl. MwSt. zzgl. Versand - -10%Warhammer The Old World Kingdom of Bretonnia Starter Set (Deutsch)
Statt 212,00 EUR190,80 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: [20.5, 190.8],
connect: true,
range: {
min: [20.5],
max: [190.8]
}
});
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;
}
});
});
});