Stanley
Categories
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: [18.7125, 127.4625],
connect: true,
range: {
min: [18.7125],
max: [127.4625]
}
});
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;
}
});
});
});
- Stanley Adventure Pint 0.47l Becher Weiß 669402
UVP 24,95 EUR18,71 EUR ** inkl. ges. MwSt. zzgl. Versandkosten - Stanley Flask 0.23l Flachmann Mehrfarbig 669706
UVP 34,95 EUR26,21 EUR ** inkl. ges. MwSt. zzgl. Versandkosten - Stanley NEVERLEAK 0.47l Travel Mug Kaffeebecher Blau 675202
UVP 37,95 EUR28,46 EUR ** inkl. ges. MwSt. zzgl. Versandkosten - Stanley NEVERLEAK 0.47l Travel Mug Kaffeebecher Braun 675203
UVP 37,95 EUR28,46 EUR ** inkl. ges. MwSt. zzgl. Versandkosten - Stanley Outdoor Geschirr Full Kitchen Base Camp
UVP 169,95 EUR127,46 EUR ** inkl. ges. MwSt. zzgl. Versandkosten