(function() { var saml = document.createElement('script'); saml.type = 'text/javascript'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(saml); })(); $(document).ready(function(){ var loginMsg = t('user_saml', 'Login with SAML'); $('
').css({ 'text-align': 'center', }).appendTo('form'); $('

or

').css( { 'text-align': 'center', 'font-weight': 'bolder', 'font-size' : '110%' }).appendTo('#login-saml'); if ($('#user').val() == "") { $('#password').parent().hide(); $('#remember_login').hide(); $('#remember_login+label').hide(); $('#submit').hide(); } $('#user').change( function() { if ($(this).val() !== "") { $('#password').parent().show(); $('#remember_login').show(); $('#remember_login+label').show(); $('#submit').show(); } else { $('#password').parent().hide(); $('#remember_login').hide(); $('#remember_login+label').hide(); $('#submit').hide(); } }); $('

Access using SAML authentication

').css( { 'text-align': 'center', 'font-weight': 'bolder', 'font-size' : '110%' }).appendTo('#login-saml'); $('').css( { 'text-decoration': 'none' }).appendTo('#login-saml'); $(''+ loginMsg +'').css( { cursor : 'pointer', border : '1px solid #777' }).appendTo('#login-saml-action'); });