let showKategorieText = document.getElementById("show-kategorie-text");
let hideKategorieText = document.getElementById("hide-kategorie-text");
let kategorieText = document.getElementById("kategorie-text");
showKategorieText.addEventListener("click", function() {
kategorieText.classList.add("show");
showKategorieText.classList.add("d-none");
hideKategorieText.classList.remove("d-none");
});
hideKategorieText.addEventListener("click", function() {
kategorieText.classList.remove("show");
showKategorieText.classList.remove("d-none");
hideKategorieText.classList.add("d-none");
});
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: [, ],
connect: true,
range: {
min: [],
max: []
}
});
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;
}
});
});
});
Sichere dir deinen
10% Neukunden Rabatt
Neukunde10
Ausgenommen sind bereits reduzierte Artikel, nur eine Einlösung pro Kunde möglich. Nicht mit anderen Aktionen kombinierbar.
if (navigator.clipboard) {
$('#promocode-kopieren').click(function() {
const promoCode = "Neukunde10";
navigator.clipboard.writeText(promoCode);
$('#promocode-kopieren').addClass('d-none');
$('#promocode-kopiert').removeClass('d-none');
});
} else {
$('#promocode-kopieren').text('Browser does not support clipboard copy');
}