Gut: Elben
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: [12, 65],
connect: true,
range: {
min: [12],
max: [65]
}
});
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
Kategorien
- -10%
- Herr der Ringe Befehlshaber der Galadhrim Elben [GW WEB EXKLUSIV]41,00 EUR ** inkl. MwSt. zzgl. Versand
- Herr der Ringe Haldir Wächter der Grenzen Lothlóriens [GW WEB EXKLUSIV]21,00 EUR ** inkl. MwSt. zzgl. Versand
- Herr der Ringe Galadriel Wächterin des Lothlórien [GW WEB EXKLUSIV]12,00 EUR ** inkl. MwSt. zzgl. Versand
- Hobbit Legolas Grünblatt und Tauriel Düsterwald Jäger [GW WEB EXKLUSIV]50,00 EUR ** inkl. MwSt. zzgl. Versand
- Herr der Ringe Elrond und Lindir Fürsten von Bruchtal [GW WEB EXKLUSIV]50,00 EUR ** inkl. MwSt. zzgl. Versand
- Hobbit Kriegerschar der Gerüsteten Elben von Düsterwald [GW WEB EXKLUSIV]65,00 EUR ** inkl. MwSt. zzgl. Versand
- Herr der Ringe Krieger des Letzten Bündnisses [GW WEB EXKLUSIV]41,00 EUR ** inkl. MwSt. zzgl. Versand
- Hobbit Gerüstete Elbenkavallerie des Düsterwaldes [GW WEB EXKLUSIV]31,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: [12, 65],
connect: true,
range: {
min: [12],
max: [65]
}
});
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;
}
});
});
});