diff --git a/web/html/login.html b/web/html/login.html index bebcdded..9a42aefe 100644 --- a/web/html/login.html +++ b/web/html/login.html @@ -488,12 +488,12 @@ -

+

{{ i18n "pages.login.hello" }} {{ i18n "pages.login.title" }} -

+
@@ -557,43 +557,6 @@ async mounted() { this.lang = LanguageManager.getLanguage(); this.secretEnable = await this.getSecretStatus(); - - document.addEventListener("DOMContentLoaded", function () { - var animationDelay = 2000; - initHeadline(); - - function initHeadline() { - animateHeadline(document.querySelectorAll('.headline')); - } - - function animateHeadline(headlines) { - var duration = animationDelay; - headlines.forEach(function (headline) { - setTimeout(function () { - hideWord(headline.querySelector('.is-visible')); - }, duration); - }); - } - - function hideWord(word) { - var nextWord = takeNext(word); - switchWord(word, nextWord); - setTimeout(function () { - hideWord(nextWord); - }, animationDelay); - } - - function takeNext(word) { - return (word.nextElementSibling) ? word.nextElementSibling : word.parentElement.firstElementChild; - } - - function switchWord(oldWord, newWord) { - oldWord.classList.remove('is-visible'); - oldWord.classList.add('is-hidden'); - newWord.classList.remove('is-hidden'); - newWord.classList.add('is-visible'); - } - }); }, methods: { async login() { @@ -615,7 +578,43 @@ }, }, }); + + document.addEventListener("DOMContentLoaded", function () { + var animationDelay = 2000; + initHeadline(); + + function initHeadline() { + animateHeadline(document.querySelectorAll('.headline')); + } + + function animateHeadline(headlines) { + var duration = animationDelay; + headlines.forEach(function (headline) { + setTimeout(function () { + hideWord(headline.querySelector('.is-visible')); + }, duration); + }); + } + + function hideWord(word) { + var nextWord = takeNext(word); + switchWord(word, nextWord); + setTimeout(function () { + hideWord(nextWord); + }, animationDelay); + } + + function takeNext(word) { + return word.nextElementSibling ? word.nextElementSibling : word.parentElement.firstElementChild; + } + + function switchWord(oldWord, newWord) { + oldWord.classList.remove('is-visible'); + oldWord.classList.add('is-hidden'); + newWord.classList.remove('is-hidden'); + newWord.classList.add('is-visible'); + } + }); - \ No newline at end of file