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.

...

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: var(--primary-color);
    /* padding: 20px 40px; */
    font-family: var(--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: white;
    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; 
}


</style>`
 $(head).append(hide_css);
$('div:contains("Mentor Bio")').css('display', 'none');
 }
  $(head).append(css);

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

});
</script>

...