Skip to main content
Call Our Team Email Us
Menu

Products

Promolux supermarket lighting guide diagram

Open Refrigerated Cases

Supermarket Lighting

Interactive Promolux Store Guide
Click on a department to discover the ideal Promolux lighting solution.

Recommended Products

';
return [
'',
start,
'',
'',
'',
'

', product.name, '

',
end,
''
].join("");
}

function setVars(point) {
var focus = point.focus || point.dot;
scene.style.setProperty("–x", focus[0] + "%");
scene.style.setProperty("–y", focus[1] + "%");
scene.style.setProperty("–lx", point.label[0] + "%");
scene.style.setProperty("–ly", point.label[1] + "%");
scene.style.setProperty("–w", point.light[2] + "%");
scene.style.setProperty("–h", point.light[3] + "%");
scene.style.setProperty("–dw", (point.dim ? point.dim[0] : 56) + "%");
scene.style.setProperty("–dh", (point.dim ? point.dim[1] : 42) + "%");
light.style.setProperty("–x", point.light[0] + "%");
light.style.setProperty("–y", point.light[1] + "%");
light.style.setProperty("–w", point.light[2] + "%");
light.style.setProperty("–h", point.light[3] + "%");
light.style.setProperty("–r", point.light[4] + "deg");
light.style.setProperty("–glow", point.glow);
}

function resetMap() {
root.classList.add("is-idle");
panel.classList.add("is-closed");
title.textContent = initialTitle;
description.innerHTML = initialDescription;
label.textContent = initialLabel;
products.innerHTML = "";
litStore.style.clipPath = "none";
litStore.style.webkitClipPath = "none";

root.querySelectorAll("[data-plx-id]").forEach(function (button) {
button.classList.remove("is-active");
button.setAttribute("aria-pressed", "false");
});

select.selectedIndex = -1;
}

function activate(id) {
var point = points.filter(function (item) { return item.id === id; })[0] || points[0];
root.classList.remove("is-idle");
setVars(point);
if (point.clip) {
litStore.style.clipPath = point.clip;
litStore.style.webkitClipPath = point.clip;
} else {
litStore.style.clipPath = "none";
litStore.style.webkitClipPath = "none";
}
// title.textContent = point.title;
title.textContent = point.sectionTitle || point.title;
label.textContent = point.title;
description.textContent = point.description;
products.innerHTML = point.products.map(function (name, index) {
return productCard(name);
}).join("");
panel.classList.remove("is-closed");

root.querySelectorAll("[data-plx-id]").forEach(function (button) {
var active = button.getAttribute("data-plx-id") === point.id;
button.classList.toggle("is-active", active);
button.setAttribute("aria-pressed", active ? "true" : "false");
});

if (select.value !== point.id) {
select.value = point.id;
}
}

hotspotWrap.innerHTML = points.map(function (point) {
return '';
}).join("");

select.innerHTML = points.map(function (point) {
return '' + point.title + '';
}).join("");
select.selectedIndex = -1;

hotspotWrap.addEventListener("click", function (event) {
var button = event.target.closest("[data-plx-id]");
if (button) {
activate(button.getAttribute("data-plx-id"));
}
});

hotspotWrap.addEventListener("pointerover", function (event) {
var button = event.target.closest("[data-plx-id]");
if (!button) return;
var point = points.filter(function (item) { return item.id === button.getAttribute("data-plx-id"); })[0];
if (!point) return;
label.textContent = point.title;
scene.style.setProperty("–lx", point.label[0] + "%");
scene.style.setProperty("–ly", point.label[1] + "%");
});

hotspotWrap.addEventListener("pointerout", function () {
var active = root.querySelector(".plx-hotspot.is-active");
var id = active ? active.getAttribute("data-plx-id") : points[0].id;
var point = points.filter(function (item) { return item.id === id; })[0] || points[0];
label.textContent = point.title;
scene.style.setProperty("–lx", point.label[0] + "%");
scene.style.setProperty("–ly", point.label[1] + "%");
});

select.addEventListener("change", function () {
activate(select.value);
});

close.addEventListener("click", function () {
resetMap();
});

document.addEventListener("click", function (event) {
if (root.contains(event.target) && event.target.closest("[data-plx-id]")) return;
if (root.contains(event.target) && event.target.closest("[data-plx-panel]")) return;
if (root.contains(event.target) && event.target.closest("[data-plx-select]")) return;
resetMap();
});

});
}());