diff --git a/src/main/resources/public/lang.js b/src/main/resources/public/lang.js new file mode 100644 index 00000000..1af2015d --- /dev/null +++ b/src/main/resources/public/lang.js @@ -0,0 +1,5 @@ +function switchLang(lang) { + const searchParams = new URLSearchParams(window.location.search); + searchParams.set("lang", lang); + window.location.search = searchParams.toString(); +} diff --git a/src/main/resources/public/post.js b/src/main/resources/public/post.js new file mode 100644 index 00000000..6e8d0288 --- /dev/null +++ b/src/main/resources/public/post.js @@ -0,0 +1,6 @@ +window.handleState = function handleState() { + if (document.readyState === 'interactive' || document.readyState === "complete") { + document.forms[0].submit(); + } +}; +document.onreadystatechange = window.handleState; diff --git a/src/main/resources/templates/consent.html b/src/main/resources/templates/consent.html index fd2fb032..1ba1627c 100644 --- a/src/main/resources/templates/consent.html +++ b/src/main/resources/templates/consent.html @@ -138,13 +138,5 @@