auth/phone-invisible.html [271:329]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - || !!window.signingIn; } /** * Updates the Verify-code button state depending on form values state. */ function updateVerifyCodeButtonUI() { document.getElementById('verify-code-button').disabled = !!window.verifyingCode || !getCodeFromUserInput(); } /** * Updates the state of the Sign-in form. */ function updateSignInFormUI() { if (firebase.auth().currentUser || window.confirmationResult) { document.getElementById('sign-in-form').style.display = 'none'; } else { resetReCaptcha(); document.getElementById('sign-in-form').style.display = 'block'; } } /** * Updates the state of the Verify code form. */ function updateVerificationCodeFormUI() { if (!firebase.auth().currentUser && window.confirmationResult) { document.getElementById('verification-code-form').style.display = 'block'; } else { document.getElementById('verification-code-form').style.display = 'none'; } } /** * Updates the state of the Sign out button. */ function updateSignOutButtonUI() { if (firebase.auth().currentUser) { document.getElementById('sign-out-button').style.display = 'block'; } else { document.getElementById('sign-out-button').style.display = 'none'; } } /** * Updates the Signed in user status panel. */ function updateSignedInUserStatusUI() { var user = firebase.auth().currentUser; if (user) { document.getElementById('sign-in-status').textContent = 'Signed in'; document.getElementById('account-details').textContent = JSON.stringify(user, null, ' '); } else { document.getElementById('sign-in-status').textContent = 'Signed out'; document.getElementById('account-details').textContent = 'null'; } } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auth/phone-visible.html [292:350]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - || !!window.signingIn; } /** * Updates the Verify-code button state depending on form values state. */ function updateVerifyCodeButtonUI() { document.getElementById('verify-code-button').disabled = !!window.verifyingCode || !getCodeFromUserInput(); } /** * Updates the state of the Sign-in form. */ function updateSignInFormUI() { if (firebase.auth().currentUser || window.confirmationResult) { document.getElementById('sign-in-form').style.display = 'none'; } else { resetReCaptcha(); document.getElementById('sign-in-form').style.display = 'block'; } } /** * Updates the state of the Verify code form. */ function updateVerificationCodeFormUI() { if (!firebase.auth().currentUser && window.confirmationResult) { document.getElementById('verification-code-form').style.display = 'block'; } else { document.getElementById('verification-code-form').style.display = 'none'; } } /** * Updates the state of the Sign out button. */ function updateSignOutButtonUI() { if (firebase.auth().currentUser) { document.getElementById('sign-out-button').style.display = 'block'; } else { document.getElementById('sign-out-button').style.display = 'none'; } } /** * Updates the Signed in user status panel. */ function updateSignedInUserStatusUI() { var user = firebase.auth().currentUser; if (user) { document.getElementById('sign-in-status').textContent = 'Signed in'; document.getElementById('account-details').textContent = JSON.stringify(user, null, ' '); } else { document.getElementById('sign-in-status').textContent = 'Signed out'; document.getElementById('account-details').textContent = 'null'; } } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -