diff --git a/assets/title.png b/assets/title.png deleted file mode 100644 index b99fa6d..0000000 Binary files a/assets/title.png and /dev/null differ diff --git a/index.html b/index.html index ac83387..33b486a 100644 --- a/index.html +++ b/index.html @@ -39,7 +39,14 @@
To explore the poster, give access to your phone camera and calibrate it.
diff --git a/src/i18n.js b/src/i18n.js index 5cfeaa7..a814567 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -14,6 +14,11 @@ const update = (lang) => { for (const el of Array.from(document.querySelectorAll('[data-i18n-alt]'))) { el.alt = getString(lang, el.dataset['i18nAlt']); } + + for (const el of Array.from(document.querySelectorAll('[data-i18n-src]'))) { + el.src = el.dataset['i18nSrc'] + lang + '.png'; + el.onerror = () => el.src = el.dataset['i18nSrc'] + 'en.png'; + } }; module.exports = (select) => {