Weathering
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: [6.75, 52],
connect: true,
range: {
min: [6.75],
max: [52]
}
});
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
- AK Interactive Africa Korps Weathering Set12,25 EUR *105 Milliliter | 116,67 EUR / Liter* inkl. MwSt. zzgl. Versand
- AK Interactive Weathering Pencils Full Range Cloth Case52,00 EUR *37 Stück | 1,41 EUR / Stück* inkl. MwSt. zzgl. Versand
- AK Interactive Weathering Set for Green Vehicles12,25 EUR *105 Milliliter | 116,67 EUR / Liter* inkl. MwSt. zzgl. Versand
- AK Interactive Weathering Pencils Deluxe Edition Box49,75 EUR *37 Stück | 1,34 EUR / Stück* inkl. MwSt. zzgl. Versand
- AK Interactive Weathering Pencils Metallic Effects Set6,75 EUR *5 Stück | 1,35 EUR / Stück* inkl. MwSt. zzgl. Versand
- AK Interactive Weathering Pencils Basic Colors Shading and Demotion Set6,75 EUR *5 Stück | 1,35 EUR / Stück* inkl. MwSt. zzgl. Versand
- AK Interactive Weathering Pencils Dirt & Marks Set6,75 EUR *5 Stück | 1,35 EUR / Stück* inkl. MwSt. zzgl. Versand
- AK Interactive Weathering Pencils Grey & Blue Shading and Effects Set6,75 EUR *5 Stück | 1,35 EUR / Stück* inkl. MwSt. zzgl. Versand
- AK Interactive Weathering Pencils Chipping & Aging Set6,75 EUR *5 Stück | 1,35 EUR / Stück* inkl. MwSt. zzgl. Versand
- AK Interactive Weathering Pencils Rust & Streaking Effects Set6,75 EUR *5 Stück | 1,35 EUR / Stück* inkl. MwSt. zzgl. Versand
- AK Interactive Weathering Pencils Green & Brown Shading and Effects Set6,75 EUR *5 Stück | 1,35 EUR / Stück* inkl. MwSt. zzgl. Versand
- AK Interactive Weathering Pencils Black & White Shading and Effects Set6,75 EUR *5 Stück | 1,35 EUR / Stück* 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: [6.75, 52],
connect: true,
range: {
min: [6.75],
max: [52]
}
});
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;
}
});
});
});