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
- Evergreen 9517 Plasticcart Sheet Plain Black 150x300x2,0mm (1)7,75 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 9516 Plasticcart Sheet Plain Black 150x300x1,5mm (1)6,50 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 9515 Plasticcart Sheet Plain Black 150x300x1,0mm (2)7,75 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 9514 Plasticcart Sheet Plain Black 150x300x0,75mm (2)6,50 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 9513 Plasticcart Sheet Plain Black 150x300x0,50mm (3)7,75 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 9511 Plasticcart Sheet Plain Black 150x300x0,25mm (4)7,75 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 9905 Plasticcart Sheet Assortment Pack 150x300x0,25mm (5)15,50 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 9904 Plasticcart Sheet Yellow Transparent 150x300x0,25mm (2)6,90 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 9903 Plasticcart Sheet Green Transparent 150x300x0,25mm (2)6,90 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 9902 Plasticcart Sheet Blue Transparent 150x300x0,25mm (2)6,90 EUR ** inkl. MwSt. zzgl. Versand
- Evergreen 9901 Plasticcart Sheet Red Transparent 150x300x0,25mm (2)6,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: [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;
}
});
});
});