Geländebau
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: [2.5, 38],
connect: true,
range: {
min: [2.5],
max: [38]
}
});
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
- -5%Army Painter Gamemaster Wilderness & Woodlands Terrain Kit
Statt 39,99 EUR38,00 EUR ** inkl. MwSt. zzgl. Versand - -25%Army Painter Gamemaster Snow & Tundra Terrain Kit
Statt 39,99 EUR30,00 EUR ** inkl. MwSt. zzgl. Versand - -25%Army Painter Gamemaster Desert & Arid Wastes Terrain Kit
Statt 39,99 EUR30,00 EUR ** inkl. MwSt. zzgl. Versand - Evergreen 8612 Plasticcart HO Scale Strip 1,68x3,43x350mm (10)6,50 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8610 Plasticcart HO Scale Strip 1,68x2,84x350mm (10)6,50 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8608 Plasticcart HO Scale Strip 1,68x2,29x350mm (10)6,50 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8606 Plasticcart HO Scale Strip 1,68x1,68x350mm (10)6,50 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8412 Plasticcart HO Scale Strip 1,09x3,43x350mm (10)6,50 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8410 Plasticcart HO Scale Strip 1,09x2,84x350mm (10)6,50 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8408 Plasticcart HO Scale Strip 1,09x2,29x350mm (10)6,50 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8406 Plasticcart HO Scale Strip 1,09x1,68x350mm (10)6,50 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8404 Plasticcart HO Scale Strip 1,09x1,09x350mm (10)6,75 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8212 Plasticcart HO Scale Strip 0,56x3,4x350mm (10)6,50 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8210 Plasticcart HO Scale Strip 0,56x2,84x350mm (10)6,50 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8208 Plasticcart HO Scale Strip 0,56x2,29x350mm (10)6,50 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8206 Plasticcart HO Scale Strip 0,56x1,68x350mm (10)6,50 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8204 Plasticcart HO Scale Strip 0,56x1,09x350mm (10)6,50 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8203 Plasticcart HO Scale Strip 0,56x0,84x350mm (10)6,75 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8202 Plasticcart HO Scale Strip 0,56x0,56x350mm (10)6,75 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8112 Plasticcart HO Scale Strip 0,28x3,4x350mm (10)6,50 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8110 Plasticcart HO Scale Strip 0,28x2,8x350mm (10)6,50 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8108 Plasticcart HO Scale Strip 0,28x2,3x350mm (10)6,50 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8106 Plasticcart HO Scale Strip 0,28x1,68x350mm (10)6,50 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8104 Plasticcart HO Scale Strip 0,28x1,09x350mm (10)6,50 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8103 Plasticcart HO Scale Strip 0,28x0,84x350mm (10)6,75 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 8102 Plasticcart HO Scale Strip 0,28x0,56x350mm (10)6,75 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: [2.5, 38],
connect: true,
range: {
min: [2.5],
max: [38]
}
});
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;
}
});
});
});