document.addEventListener("DOMContentLoaded", function () {
const params = new URLSearchParams(
window.location.search
);
const partnerSlug = (
params.get("partner") || ""
).toLowerCase();
const partners = {
be: {
name: "BE Group",
facility: "Delivery Service Hub"
},
daesang: {
name: "Daesang",
facility: "Cooking Academy"
},
honda: {
name: "Honda",
facility: "EV Technology Studio"
},
hongngoc: {
name: "Hong Ngoc Hospital",
facility: "Hospital"
},
hyundai: {
name: "Hyundai Thanh Cong",
facility: "Car Innovation Center"
},
unicef: {
name: "UNICEF",
facility: "Learn & Care Corner"
},
lottemart: {
name: "Lotte Mart",
facility: "Lotte Mart"
},
lotteria: {
name: "Lotteria",
facility: "Chicken & Burger Lab"
},
morinaga: {
name: "Morinaga",
facility: "Dairy Café"
},
ottogi: {
name: "Ottogi",
facility: "Ramen R&D Center"
},
samdasoo: {
name: "Jeju Samdasoo",
facility: "Water Ad Modeling Studio"
},
shinhan: {
name: "Shinhan Bank",
facility: "Bank"
}
};
const selected = partners[partnerSlug];
if (!selected) return;
// Partner name
document.querySelectorAll(
".ll-partner-title"
).forEach(el => {
el.textContent = selected.name;
});
// Facility name
document.querySelectorAll(
".ll-facility-name"
).forEach(el => {
el.textContent = selected.facility;
});
// English letter templates
document.querySelectorAll(
".ll-partner-name-en"
).forEach(el => {
el.textContent = selected.name;
});
// Vietnamese letter templates
document.querySelectorAll(
".ll-partner-name-vi"
).forEach(el => {
el.textContent = selected.name;
});
});