CMXX - Language selection

This commit is contained in:
“VeLiTi”
2025-02-19 16:48:48 +01:00
parent 0e9d133ff9
commit 8bb78d2a08
19 changed files with 139 additions and 58 deletions

View File

@@ -152,4 +152,12 @@ function update(id_large, IMG_large, option_id, price){
function updateOption(id_large, IMG_large){
//change picture
document.getElementById(id_large).src = IMG_large;
}
// Function to change the title and flag when a language is selected
function changeLanguage(language, langCode, flagUrl) {
const title = document.getElementById("title");
title.src = flagUrl;
title.alt = language+" Flag";
}