Log out: Difference between revisions
From ASDSO Dam Safety Toolbox
No edit summary |
No edit summary |
||
Line 31: | Line 31: | ||
<div id="logoutSuccess_NotUsing" style="visibility: hidden;"> | <div id="logoutSuccess_NotUsing" style="visibility: hidden;"> | ||
<p><strong>You are now logged out.</strong></p> | <p><strong>You are now logged out.</strong></p> | ||
<p>Return to <a id="redirectUrl" href="/wiki/Main_Page">Main Page</a></p> | <p>Return to <a id="redirectUrl" href="/wiki/Main_Page">Main Page</a></p> | ||
</div> | </div> | ||
<div id="logoutSuccess" style="visibility: hidden;"> | <div id="logoutSuccess" style="visibility: hidden;"> | ||
<p><strong>You are now logged out and will be redirected to the <a href="https://asdso.mpxstage.com">Main site</a> in a few seconds</strong> | <p><strong>You are now logged out and will be redirected to the <a href="https://asdso.mpxstage.com">Main site</a> in a few seconds.</strong></p> | ||
</div> | </div> | ||
Line 44: | Line 42: | ||
if (!previousUrl || previousUrl !== "") { | if (!previousUrl || previousUrl !== "") { | ||
document.getElementById("redirectUrl").href = previousUrl; | document.getElementById("redirectUrl").href = previousUrl; | ||
var pageTitle = previousUrl.split("https://damtoolbox.org/wiki/").pop().replaceAll('_',' '); | var pageTitle = previousUrl.split("https://damtoolbox.org/wiki/").pop().replaceAll('_',' '); | ||
document.getElementById("redirectUrl").text = pageTitle; | document.getElementById("redirectUrl").text = pageTitle; |