Würfel von Oakie Doakie
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: [0.2, 10],
connect: true,
range: {
min: [0.2],
max: [10]
}
});
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
Kategorien
Kategorien
- -31%Oakie Doakie Dice RPG Würfel Set Gemidice Liquid Steel (7)
Statt 12,95 EUR9,00 EUR ** inkl. MwSt. zzgl. Versand - -31%Oakie Doakie Dice RPG Würfel Set Gemidice Sunstone (7)
Statt 12,95 EUR9,00 EUR ** inkl. MwSt. zzgl. Versand - -31%Oakie Doakie Dice RPG Würfel Set Gemidice Twilight Stone (7)
Statt 12,95 EUR9,00 EUR ** inkl. MwSt. zzgl. Versand - -37%Oakie Doakie Dice RPG Würfel Set Glow in the Dark Lava (7)
Statt 15,95 EUR10,00 EUR ** inkl. MwSt. zzgl. Versand - -14%Oakie Doakie Dice RPG Würfel Set Speckled Hellblau (7)
Statt 6,95 EUR6,00 EUR ** inkl. MwSt. zzgl. Versand - -14%Oakie Doakie Dice RPG Würfel Set Speckled Orange (7)
Statt 6,95 EUR6,00 EUR ** inkl. MwSt. zzgl. Versand - -14%Oakie Doakie Dice RPG Würfel Set Speckled Rosa (7)
Statt 6,95 EUR6,00 EUR ** inkl. MwSt. zzgl. Versand - -14%Oakie Doakie Dice RPG Würfel Set Speckled Blau (7)
Statt 6,95 EUR6,00 EUR ** inkl. MwSt. zzgl. Versand - -14%Oakie Doakie Dice RPG Würfel Set Speckled Rot (7)
Statt 6,95 EUR6,00 EUR ** inkl. MwSt. zzgl. Versand - -16%Oakie Doakie Dice RPG Würfel Set Marble Gelb (7)
Statt 5,95 EUR5,00 EUR ** inkl. MwSt. zzgl. Versand - -16%Oakie Doakie Dice RPG Würfel Set Marble Rot (7)
Statt 5,95 EUR5,00 EUR ** inkl. MwSt. zzgl. Versand - -19%Oakie Doakie Dice RPG Würfel Set Solid Grün (7)
Statt 4,95 EUR4,00 EUR ** inkl. MwSt. zzgl. Versand - -19%Oakie Doakie Dice RPG Würfel Set Solid Rot (7)
Statt 4,95 EUR4,00 EUR ** inkl. MwSt. zzgl. Versand - -16%Oakie Doakie Dice RPG Würfel Set Translucent Orange (7)
Statt 5,95 EUR5,00 EUR ** inkl. MwSt. zzgl. Versand - -16%Oakie Doakie Dice RPG Würfel Set Translucent Grün (7)
Statt 5,95 EUR5,00 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: [0.2, 10],
connect: true,
range: {
min: [0.2],
max: [10]
}
});
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;
}
});
});
});