x
x
x
x
Only portrait mode is currently supported - please rotate your device.
...
HTML |
---|
<style>
body.login #rw_wrapper #rw_main div#main{
display: flex!important;
flex-direction: column!important;
align-items: center!important;
}
.forgot-iframe-container {
display: flex;
justify-content: center;
}
.forgot-iframe-container #forgot-password-iframe {
width: 100%;
height: 100vh;
display: none;
}
div#custom-footer {
display: none;
}
div#rw_theme_header {
display: none !important;
}
@media only screen and (max-width: 600px) {
div#postiontoggle {
display: none;
}
.add-margin-mobile {
margin-top: unset !important;
}
}
</style>
<div class="forgot-iframe-container">
<iframe id="forgot-password-iframe" title="" src="#"> </iframe>
<script>
document.getElementById('forgot-password-iframe').src = "/resetuserpassword.action?" + window.location.href.split('?')[1];
/*
document.getElementById('forgot-password-iframe').onload = function() {
let all_links = document.querySelectorAll('a');
for(let k = 0; k < all_links.length; k++){
if(all_links[k].href.includes("forgotuserpassword.action")){
all_links[k].href = '/display/MSA/Forgot+Password';
}
}
}
*/
</script>
</div>
<script>
let iframeLoadCounter = 0;
$("#forgot-password-iframe").on("load", function() {
let head = $("#forgot-password-iframe").contents().find("head");
var iframe = document.getElementById("forgot-password-iframe");
var elmnt = iframe.contentWindow.document.querySelector("input.aui-button.aui-style.aui-button-primary");
// elmnt.onclick = function() {window.location.href = "/display/MSA/Password+Reset+Successful";}
if(iframeLoadCounter == 1){
//window.location.href = "/display/MSA/Password+Reset+Successful";
}
console.log("iframe content window")
console.log(iframe.contentWindow.document)
if(iframe.contentWindow.document.querySelector('.userpassword-section').innerText.includes("has been")){
//window.location.href = "/display/MSA/Password+Reset+Successful";
}
/*
if(iframe.contentWindow.location.href.includes("doreset")){
window.location.href = "/display/MSA/Password+Reset+Successful";
}
*/
let css = `<style>
body.login .rw_background_top div.rw_login_logo {display: none;}
#full-height-container, #page, body, html {
height: auto !important;
}
html {
background: #fafafa;
}
div#custom-footer {
display: none;
}
body.login div#rw_wrapper {
background: white;
}
div#login-container {
font-family: 'Arimo';
}
input.aui-button.aui-style.aui-button-primary {
border-radius: 8px !important;
background-color: var(--primary-color) !important;
font-family: Arimo !important;
font-size: 12px !important;
font-weight: bold !important;
border: unset !important;
line-height: 2 !important;
letter-spacing: 1.19px !important;
color: white !important;
}
a.aui-button.aui-style.aui-button-link {
display: none;
}
body.login form fieldset div.field-group label {
font-family: Arimo;
}
body.login div#rw_main {
padding: 100px;
}
</style>`;
$(head).append(css);
$('#forgot-password-iframe').show()
iframeLoadCounter++;
});
</script> |
...
OneValley