PanOceania
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: [10.25, 265],
connect: true,
range: {
min: [10.25],
max: [265]
}
});
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
Spielsysteme & Marken
Maßstab
Infinity Fraktion
Kategorien
Kategorien
- Reinforcements PanOceania Squalos Mk-II PanOceanian Armored Cavalry36,95 EUR ** inkl. MwSt. zzgl. Versand
- PanOceania Nøkken Special Intervention and Recon Team (Spitfire)12,95 EUR ** inkl. MwSt. zzgl. Versand
- PanOceania Echo-Bravo Fast Intervention Unit (Light Rocket Launcher)13,95 EUR ** inkl. MwSt. zzgl. Versand
- Deep Cut Studio Wargames Terrain Mat PanOceania 4x4 Infinity75,00 EUR ** inkl. MwSt. zzgl. Versand
- PanOceania Patsy Garnett Orc Troops Varuna Div. NCO (Submachine Gun)14,95 EUR ** inkl. MwSt. zzgl. Versand
- PanOceania Zulu Cobra Special Recon and Intervention Team (Hacker)14,95 EUR ** inkl. MwSt. zzgl. Versand
- PanOceania Hexas Strategic Security Divisin (Multi Sniper Rifle)11,95 EUR ** inkl. MwSt. zzgl. Versand
- PanOceania Tech Bee and Crabbot Acillary Remote Unit (Pistol, Flash Pulse)23,95 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: [10.25, 265],
connect: true,
range: {
min: [10.25],
max: [265]
}
});
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;
}
});
});
});