CMXX - Language selection
This commit is contained in:
@@ -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";
|
||||
}
|
||||
Reference in New Issue
Block a user