From 58fb6ee38de4b00a66319ce3b6a1d8ef4c7dbdcf Mon Sep 17 00:00:00 2001 From: Killy Date: Thu, 26 Oct 2017 22:43:30 +0300 Subject: www: evilIcons cleanup, fb login i18n --- juick-www/src/main/static/scripts.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index 0660a34c..160d7fe4 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -46,8 +46,9 @@ function autosize(el) { el.attachEvent('onkeyup', () => resize(el)); } } -function svgIconHtml(name) { - return `
`; + +function evilIcon(name) { + return `
`; } /* eslint-disable only-ascii/only-ascii */ @@ -72,6 +73,7 @@ const translations = { 'loginDialog.registeredAlready': 'Registered already?', 'loginDialog.username': 'Username', 'loginDialog.password': 'Password', + 'loginDialog.facebook': 'Login with Facebook', 'loginDialog.vk': 'Login with VK', 'error.error': 'Error' }, @@ -95,6 +97,7 @@ const translations = { 'loginDialog.registeredAlready': 'Уже зарегистрированы?', 'loginDialog.username': 'Имя пользователя', 'loginDialog.password': 'Пароль', + 'loginDialog.facebook': 'Войти через Facebook', 'loginDialog.vk': 'Войти через ВКонтакте', 'error.error': 'Ошибка' } @@ -435,9 +438,9 @@ function showMessageLinksDialog(mid, rid) { ${i18n('shareDialog.messageNumber')}:
${mlink}
${i18n('shareDialog.share')}: `; @@ -525,8 +528,8 @@ function openDialogLogin() { let html = `

${i18n('loginDialog.pleaseIntroduceYourself')}:

- ${svgIconHtml('sc-facebook')}Login with Facebook - ${svgIconHtml('sc-vk')}${i18n('loginDialog.vk')} + ${evilIcon('ei-sc-facebook')}${i18n('loginDialog.facebook')} + ${evilIcon('ei-sc-vk')}${i18n('loginDialog.vk')}

${i18n('loginDialog.registeredAlready')}


-- cgit v1.2.3