Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12345678910111213141516171819202122
  1. import {checkAppUrl} from './common-global.js';
  2. export function initUserAuthOauth2() {
  3. const outer = document.getElementById('oauth2-login-navigator');
  4. if (!outer) return;
  5. const inner = document.getElementById('oauth2-login-navigator-inner');
  6. checkAppUrl();
  7. for (const link of outer.querySelectorAll('.oauth-login-link')) {
  8. link.addEventListener('click', () => {
  9. inner.classList.add('tw-invisible');
  10. outer.classList.add('is-loading');
  11. setTimeout(() => {
  12. // recover previous content to let user try again
  13. // usually redirection will be performed before this action
  14. outer.classList.remove('is-loading');
  15. inner.classList.remove('tw-invisible');
  16. }, 5000);
  17. });
  18. }
  19. }