Zustand
für das Gerät
Komponenten
Hersteller
Preisspanne
€
―
€
"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: [14.9, 99.9],
connect: true,
range: {
min: [14.9],
max: [99.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;
}
});
});
});
Zustand
für das Gerät
Komponenten
Preisspanne
€
―
€
"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: [14.9, 99.9],
connect: true,
range: {
min: [14.9],
max: [99.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;
}
});
});
});
Hersteller
- NeuwareOrigin OMLC1TBM.2/80 Storage SSD M.2 Festplatte 1TB NEU OPEN BOX75,90 EUR ** inkl. ges. MwSt. zzgl. Versandkosten
- NeuwareHP 658071-B21 Server Festplatte 500GB HDD 7.2K 3.5'' SATA SC NEU OVP65,90 EUR ** inkl. ges. MwSt. zzgl. Versandkosten
- NeuwareLenovo 4XB0G80311 Festplatte 256GB SSD SATA 3.0 6Gbps 2.5" NEU OVP55,90 EUR ** inkl. ges. MwSt. zzgl. Versandkosten
- Samsung MZNLN256HCHP PM871 SSD M.2 256GB SATAIII Festplatte MZ-NLN256029,90 EUR ** inkl. ges. MwSt. zzgl. Versandkosten
- Dell 9CA158-056 EqualLogic Festplatte 1TB 3.5" SATA 7.2 rpm ST31000340NS89,90 EUR ** inkl. ges. MwSt. zzgl. Versandkosten
- Dell 9JW154-536 EqualLogic Festplatte 1TB 3.5" SATA 7.2K ST310005245NS89,90 EUR ** inkl. ges. MwSt. zzgl. Versandkosten
- DELL 0XK111 Festplatte 146GB SAS 3.5 Zoll 15k RPM Toshiba MBA3147RC17,90 EUR ** inkl. ges. MwSt. zzgl. Versandkosten
- IBM 40K1051 2.5" HDD 36GB 10k U320 SAS SFF Hard Drive NEU + OVP19,90 EUR ** inkl. ges. MwSt. zzgl. Versandkosten
- Lenovo 00YH993 Storage Festplatte 2TB SAS 7.2k LFF NL 3.5" Hot-Swap NEU OVP99,90 EUR ** inkl. ges. MwSt. zzgl. Versandkosten
- IBM Travelstar 92P6326 20GB IDE HDD 2,5" Festplatte 92P632714,90 EUR ** inkl. ges. MwSt. zzgl. Versandkosten