x
x
x
x
Only portrait mode is currently supported - please rotate your device.
...
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: #fbbd28;
/* padding: 20px 40px; */
font-family: Arimo;
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: black;
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="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;
}
#dataArea_2nd {
display: block !important;
}
#dataArea_1st {
display: none !important;
}
#dataArea_2nd .catContainer:first-of-type { display:none; }
body.profile #cup-profile #profileDataLayout_2Cols #dataArea_2nd{
float: left;
}
.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>`;
$(head).append(css);
$("#edit-prof-iframe").show()
});
</script> |
...
OneValley