aboutsummaryrefslogtreecommitdiff
path: root/src/main/assets/scripts.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-07 15:54:04 +0300
committerGravatar Vitaly Takmazov2022-12-07 15:54:04 +0300
commit206742aed99a20fea014c83408fb44ff36089351 (patch)
treeddc7858c8b2d9e94787fdd7a7ea3dae05f07c047 /src/main/assets/scripts.js
parent360c42ee8a5a4e190195670e1f19c262801eb45f (diff)
Remove login popup
Diffstat (limited to 'src/main/assets/scripts.js')
-rw-r--r--src/main/assets/scripts.js29
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) {