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.
Comment: Update edit prof iframe source link

...

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 #edit-prof-iframe {
    width: 100%;
    height: 73vh;
	display: none;
	border: none;
}
</style>

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

<button onclick="window.location.href= document.referrer"> Back To Profile </button>

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


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

$("#edit-prof-iframe").on("load", function() {
$("#edit-prof-iframe").hide()
  let head = $("#edit-prof-iframe").contents().find("head");
 var iframe = document.getElementById("edit-prof-iframe");

if(iframe.contentWindow.window.location.href.contains('/category/prof')){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;
}

a.edit-link.edit.aui-button.aui-button-primary {
    display: none;
}

a.aui-button-cancel {
    display: none;
}

div#profile-widget-button-wrapper {
    display: none;
}

div#content-container {
    display: none;
}

a#favorite-contact-link {
    display: none;
}

.rw_body #full-height-container, body #full-height-container {
	overflow-y: scroll;
}
#login-wizard-dialog {
	display:none;
}
#login-wizard-dialog .aui-blanket {
	display: none;
}


	</style>`;
  $(head).append(css);


// hide first-time user complete profile popup 
$("#edit-prof-iframe").contents().find(".aui-blanket").css("display", "none");
$("#edit-prof-iframe").contents().find("#login-wizard-dialog").css("display", "none");

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

});
</script>

...