Kartenboxen
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: [1.5, 95],
connect: true,
range: {
min: [1.5],
max: [95]
}
});
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
Kategorien
Kategorien
- Sidewinder 100+ Katana The Shogun's Journey Part 2 Seigaiha Dark Blue/Dark Red22,25 EUR ** inkl. MwSt. zzgl. Versand
- Sidewinder 100+ Katana The Shogun's Journey Part 2 Ajiro Green/Light Blue22,25 EUR ** inkl. MwSt. zzgl. Versand
- Sidewinder 100+ Katana The Shogun's Journey Part 2 Kikko White/Blue22,25 EUR ** inkl. MwSt. zzgl. Versand
- Sidewinder 100+ Katana The Shogun's Journey Part 2 Shippou Blue/Dark Red22,25 EUR ** inkl. MwSt. zzgl. Versand
- Katana The Shogun's Journey Part 1 "Samurai's Chest" Omnihive 1000+ Xenoskin & Play-Mat95,00 EUR ** inkl. MwSt. zzgl. Versand
- RTE Boulder 100+ Artist Edition #2 Mario Renaud In Icy Bloom19,25 EUR ** inkl. MwSt. zzgl. Versand
- RTE Boulder 100+ 2024 Exclusive Duo-Pack Dominik Mayer Crowned With Fire43,25 EUR ** inkl. MwSt. zzgl. Versand
- -4%
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: [1.5, 95],
connect: true,
range: {
min: [1.5],
max: [95]
}
});
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;
}
});
});
});