Fantasy / Mittelalter
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, 342.9],
connect: true,
range: {
min: [3.5],
max: [342.9]
}
});
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
- Dungeons & Lasers Pathfinder Terrain Abomination Vaults Pre-painted86,90 EUR ** inkl. MwSt. zzgl. Versand
- -16%Terrain Crate Fantasy Gaming Neoprene Terrain Templates (8)
Statt 20,00 EUR16,75 EUR ** inkl. MwSt. zzgl. Versand - -17%
- Battlefield in a Box The Wartorn Village Cobblestone Road Expansion Sandstone22,25 EUR ** inkl. MwSt. zzgl. Versand
- Battlefield in a Box The Wartorn Village Cobblestone Road Sandstone43,50 EUR ** inkl. MwSt. zzgl. Versand
- Battlefield in a Box The Wartorn Village Ruined Bridge Sandstone18,25 EUR ** inkl. MwSt. zzgl. Versand
- Battlefield in a Box The Wartorn Village Barricades Sandstone22,25 EUR ** inkl. MwSt. zzgl. Versand
- Battlefield in a Box The Wartorn Village Large Ruin Sandstone26,90 EUR ** inkl. MwSt. zzgl. Versand
- Battlefield in a Box The Wartorn Village Small Ruin Sandstone22,00 EUR ** inkl. MwSt. zzgl. Versand
- Battlefield in a Box The Wartorn Village Medium Ruin Sandstone26,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, 342.9],
connect: true,
range: {
min: [3.5],
max: [342.9]
}
});
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;
}
});
});
});