diff options
Diffstat (limited to 'src/main/assets/scripts.js')
-rw-r--r-- | src/main/assets/scripts.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/main/assets/scripts.js b/src/main/assets/scripts.js index cc811808..8d201438 100644 --- a/src/main/assets/scripts.js +++ b/src/main/assets/scripts.js @@ -416,29 +416,6 @@ function checkUsername() { /******************************************************************************/ -function openDialogLogin() { - const token = document.body.getAttribute('data-token'); - let html = ` - <div class="dialoglogin"> - <p>${i18n('loginDialog.pleaseIntroduceYourself')}:</p> - <a href="mailto:juick@juick.com?subject=LOGIN" id="signemail">${evilIcon('ei-envelope')}${i18n('loginDialog.email')}</a> - <a href="/_fblogin" id="signfb">${evilIcon('ei-sc-facebook')}${i18n('loginDialog.facebook')}</a> - <a href="/_vklogin" id="signvk">${evilIcon('ei-sc-vk')}${i18n('loginDialog.vk')}</a> - <a href="/_apple" id="signapple"><img src="https://appleid.cdn-apple.com/appleid/button"></a> - <p>${i18n('loginDialog.registeredAlready')}</p> - <form action="/login" method="POST"> - <input type="hidden" name="_csrf" value="${token}" /> - <input class="signinput" type="text" name="username" placeholder="${i18n('loginDialog.username')}" autocomplete="username" /><br/> - <input class="signinput" type="password" name="password" placeholder="${i18n('loginDialog.password')}" autocomplete="current-password" /><br/> - <input class="signsubmit Button" type="submit" value="OK"/> - </form> - </div>`; - openDialog(html); - return false; -} - -/******************************************************************************/ - function resultMessage(str) { var result = document.createElement('p'); result.textContent = str; @@ -711,12 +688,6 @@ ready(() => { e.preventDefault(); }); }); - Array.from(document.querySelectorAll('.a-login')).forEach(function(el) { - el.addEventListener('click', function(e) { - openDialogLogin(); - e.preventDefault(); - }); - }); var unfoldall = document.getElementById('unfoldall'); if (unfoldall) { unfoldall.addEventListener('click', function(e) { |