Ga naar de inhoud
(function($){
$(window).on('elementor/frontend/init', function(){
window.chooseLocation = function(choice) {
document.getElementById("step1").style.display = "none";
const step2 = document.getElementById("step2");
step2.style.display = "block";
step2.classList.add("fade-in");
const question = document.getElementById("step2-question");
const options = document.getElementById("step2-options");
if (choice === "binnen") {
question.innerText = "Voor hoeveel medewerkers?";
options.innerHTML = `
`;
} else {
question.innerText = "Heb je een buitenkast nodig?";
options.innerHTML = `
`;
}
};
window.chooseStaff = function(amount) {
let result = "";
let link = "";
if (amount === 20) {
result = "Voor kleine teams adviseren wij de DefiSign LIFE AED — compact, betrouwbaar en eenvoudig te bedienen.";
link = "https://bhv2dayshop.nl/product/defisign-life-aed/";
} else if (amount === 50) {
result = "Voor middelgrote organisaties is de HeartSine Samaritan 360P een uitstekende keuze — licht, robuust en onderhoudsarm.";
link = "https://bhv2dayshop.nl/product/heartsine-samaritan-360p-pad-aed/";
} else {
result = "Voor grotere organisaties adviseren wij de Defibtech Lifeline AED — krachtig, duurzaam en zeer gebruiksvriendelijk.";
link = "https://bhv2dayshop.nl/product/defibtech-lifeline-aed/";
}
showResult(result, link);
};
window.chooseOutdoor = function(needsCabinet) {
let result = "";
let link = "";
if (needsCabinet) {
result = "Voor buitengebruik adviseren wij het DefiSign Buitenpakket — robuust, weerbestendig en direct inzetbaar.";
link = "https://bhv2dayshop.nl/product/defisign-life-aed-set/";
} else {
result = "De DefiSign LIFE AED kan niet buiten worden geplaatst, wij adviseren daarom altijd een verwarmde beschermende buitenkast.";
link = "https://bhv2dayshop.nl/product/defisign-life-aed/";
}
showResult(result, link);
};
window.showResult = function(text, link) {
document.getElementById("step2").style.display = "none";
const result = document.getElementById("result");
result.style.display = "block";
result.classList.add("fade-in");
document.getElementById("result-text").innerHTML = text;
document.getElementById("result-link").href = link;
};
});
})(jQuery);
window.addEventListener('load', function() {
console.log('Script geladen en klaar!');
});