Skip to content

Instantly share code, notes, and snippets.

@adeelnasir
Last active May 23, 2018 03:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adeelnasir/2752d320297f9ba51c546b2a5e37aa0d to your computer and use it in GitHub Desktop.
Save adeelnasir/2752d320297f9ba51c546b2a5e37aa0d to your computer and use it in GitHub Desktop.
// code to change “Sign in with organizational account” string.
// Check whether the openingMessage element is present on this page.
var openingMessage = document.getElementById('openingMessage');
if (openingMessage)
{
// openingMessage element is present, modify its properties.
openingMessage.innerHTML = “Your customized home realm discovery page sign in label message”;
// Code to change the page title
document.title = "Your customized home realm discovery page title";
}
//Check if we are displaying the hrd page
var myCheckHRD = document.getElementById('hrdArea') ;
if ( myCheckHRD ) {
//Add the User agreement and Code of conduct on HRD page
var footerPlaceholder= document.getElementById('footerPlaceholder');
if (footerPlaceholder) {
footerPlaceholder.innerHTML = "<p>By choosing to access this service, I have agreed to comply with the {Your Company Name} <A href='{User Agreement URL}' target='_blank'>User Agreement</A> and <A href='{Code of Conduct URL}' target='_blank'>Code of Conduct</A>.</p>";
}
}
// Check whether the loginMessage element is present on this page.
var loginMessage = document.getElementById('loginMessage');
if (loginMessage)
{
// loginMessage element is present, modify its properties.
loginMessage.innerHTML = “Your customized sign in page sign in label message”;
// Code to change the page title
document.title = "Your customized sign in page title";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment