Connexion
function postForgotPassword() {
document.forms[0]['pf.passwordreset'].value = 'clicked'; document.forms[0].submit(); }
function postRecoverUsername() { document.forms[0]['pf.usernamerecovery'].value = 'clicked'; document.forms[0].submit(); }
function postAlternateAuthnSystem(system) { var variants = ["Biometrics", "Windows Hello", "Face ID", "Touch ID"]; for (i = 0; i < variants.length; i++) { if(variants[i] == system) { system = "FIDO"; } } document.forms[0]['$alternateAuthnSystem'].value = system; document.forms[0].submit(); } function postRegistration() { document.forms[0]['$registrationValue'].value = true; document.forms[0].submit(); } function postOk() { if (false) { grecaptcha.execute(); } else { // remove error tips if (document.forms[0]['pf.username'].value !== '') { document.getElementById('username-text').className = 'place-bottom type-alert tooltip-text'; } if (document.forms[0]['pf.pass'].value !== '') { document.getElementById('password-text').className = 'place-bottom type-alert tooltip-text'; } // Add back if (document.forms[0]['pf.username'].value === '') { document.getElementById('username-text').className += ' show'; } else if (document.forms[0]['pf.pass'].value === '') { document.getElementById('password-text').className += ' show'; } else { submitForm() } } } function submitForm() { var signOnButtonSpan = document.getElementById('signOnButtonSpan'); signOnButtonSpan.classList.add('content-columns', 'disabled'); signOnButtonSpan.style = "pointer-events: none;"; var signOnButton = document.getElementById('signOnButton'); signOnButton.innerHTML = 'Connexion...'; document.forms[0]['pf.ok'].value = 'clicked'; document.forms[0].submit(); if(false) { grecaptcha.reset(); } } function postCancel() { document.forms[0]['pf.cancel'].value = 'clicked'; document.forms[0].submit(); } function postOnReturn(e) { var keycode; if (window.event) keycode = window.event.keyCode; else if (e) keycode = e.which; else return true; if (keycode == 13) { postOk(); return false; } else { return true; } } function setFocus() { var platform = navigator.platform; if (platform != null && platform.indexOf("iPhone") == -1) { document.getElementById('password').focus(); } } function setMobile(mobile) { var className = ' mobile', hasClass = (bodyTag.className.indexOf(className) !== -1); if (mobile && !hasClass) { bodyTag.className += className; } else if (!mobile && hasClass) { bodyTag.className = bodyTag.className.replace(className, ''); } }
function getScreenWidth() { return (window.outerHeight) ? window.outerWidth : document.body.clientWidth; }
var bodyTag = document.getElementsByTagName('body')[0], width = getScreenWidth(), remember = false && false;
if (/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { setMobile(true); } else { setMobile((width <= 480)); window.onresize = function() { width = getScreenWidth(); setMobile((width <= 480)); } }