Show romanizations on map
This commit is contained in:
@@ -17,5 +17,11 @@ function updateTranslations(response) {
|
||||
.then((data) => {
|
||||
elem.classList.toggle("loading");
|
||||
console.log(data);
|
||||
const romanizations = data;
|
||||
document.querySelectorAll(".romanizationText").forEach(element => {
|
||||
if (element.id.replace("Romanization", "") in romanizations) {
|
||||
element.textContent = "(" + romanizations[element.id.replace("Romanization", "")][0] + ")";
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user