x x x
x
Only portrait mode is currently supported - please rotate your device.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Hide If
groupconfluence-administrators, morganstanley-admins


HTML
<div id="not-admin"> </div>



Hide If
groupconfluence-administrators


HTML
<script>
const url_params = new URLSearchParams(window.location.search);
var param_name = url_params.get('username');
if(param_name == null){
	window.location.href = "/display/AN";
}
</script>


...

HTML
<style>
.edit-iframe-container {
    display: flex;
    justify-content: center;
	margin-top: 40px;
}

.edit-iframe-container {flex-direction: column;}

.edit-iframe-container button {
   height: 49px;
    border-radius: 3px;
    background-color: #fbbd28var(--primary-color);
    /* padding: 20px 40px; */
    font-family: Arimovar(--main-font-family);
    font-size: 12px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    border: unset;
    line-height: 2;
    letter-spacing: 1.19px;
    text-align: center;
    color: blackwhite;
    margin-left: 20px;
    margin-bottom: 50px;
    text-decoration: unset;
    width: 160px;
}

.edit-iframe-container button:hover {
    cursor: pointer;
}

.edit-iframe-container #edit-prof-iframe {
    width: 100%;
    height: 73vh;
	display: none;
	border: none;
}

</style>

<div class="edit-iframe-container"> 

<button onclick="history.back()"> Back To Profile </button>

<iframe id="edit-prof-iframe"  > </iframe>
</div>


<script>
$("#edit-prof-iframe").attr("src",`/users/editmyprofile.action?username=${companyName}`);


$("#edit-prof-iframe").on("load", function() {
  iframeLoadCounter++;
  let head = $("#edit-prof-iframe").contents().find("head");
 var iframe = document.getElementById("edit-prof-iframe");
  var elmnt = iframe.contentWindow.document.querySelector("input.submit.aui-button.aui-button-primary");
 // elmnt.onclick = function() {window.location.href = document.referrer;}


if(iframeLoadCounter == 2){
	window.location.href = document.referrer;
}

  let css = `<style>
div#intercom-container {
    display: none !important;
}

.intercom-lightweight-app {
    display: none !important;
}

		div#rw_theme_header {
    display: none !important;
}

.aui-navgroup-primary {
    display: none !important;
}

div#rw_menu_bar_icon {
    display: none;
}

div#rw_menu_bar_content {
    display: none;
}

.rw_content_menu_solid #rw_menu_bar_wrapper #rw_menu_bar_button {
    display: none;
}

.rw_content_menu_solid #rw_menu_bar_wrapper {
    display: none !important;
}

div#rw_wrapper {
    font-family: Arimo !important;
}

div#cup-helptext {
    display: none;
}

div#cup-profile-system {
    display: none;
}

.catContainer.editContactFieldsContainer {
    display: none;
}

input.submit.aui-button.aui-button-primary {
    border-radius: 3px;
    background-color: #fbbd28;
    /* padding: 20px 40px; */
    font-family: Arimo;
    font-size: 12px;
    padding: 0 10px;
    font-weight: bold;
    /* font-stretch: normal; */
    /* font-style: normal; */
    border: unset;
    line-height: 2;
    letter-spacing: 1.19px;
    /* text-align: center; */
    color: black;
    /* margin-left: 20px; */
    /* margin-bottom: 50px; */
    /* text-decoration: unset; */
}

a.cancel {display: none !important;}

.fieldsContainer {
    display: none;
}

div#bigProfilePicture {
    display: none;
}

div#main-header {min-height: unset !important;}


.edit-iframe-container button {
	display: none;
}

</style>`;
if($("#not-admin").length){
   var hide_css = `<style>
label[for='field-98'], label[for='field-96'], label[for='field-98'] + div, label[for='field-96'] + div  {
    display: none !important;
}

.profile-showcase-top-left {
    display: none !important; 
}

a.aui-button.change-avatar-button {
    display: none !important; 
}

label.fieldLabel[for='field-60'], label.fieldLabel[for='field-60'] + div, label.fieldLabel[for='field-57'], label.fieldLabel[for='field-57'] + div,
label.fieldLabel[for='field-51'], label.fieldLabel[for='field-51'] + div, label.fieldLabel[for='field-52'], label.fieldLabel[for='field-52'] + div,
label.fieldLabel[for='field-53'], label.fieldLabel[for='field-53'] + div, label.fieldLabel[for='field-54'], label.fieldLabel[for='field-54'] + div,
label.fieldLabel[for='field-56'], label.fieldLabel[for='field-56'] + div
{
    display: none;
}
	
 </style>`
 $(head).append(hide_css);
 }
  $(head).append(css);

$("#edit-prof-iframe").show()

document.getElementById("edit-prof-iframe").contentWindow.document.querySelector("#postiontoggle, #overlay").style.display = "none";

});
</script>