ASDSO Dam Safety Toolbox

Log out: Difference between revisions

From ASDSO Dam Safety Toolbox
Jump to: navigation, search
No edit summary
No edit summary
Line 37: Line 37:
   <script>
   <script>
     function onLoad(){
     function onLoad(){
       console.log(document.referrer);
       var previousUrl = document.referrer;
       const urlParams = new URL(window.location.toLocaleString()).searchParams;
 
       const redirectUrl = urlParams.get('redirectUrl');
       var pageTitle = previousUrl.split("https://damtoolbox.org/wiki/").pop();
       console.log(redirectUrl);
      console.log(pageTitle);
       document.getElementById("redirectUrl").href = redirectUrl;
       pageTitle.replace('_',' ');
       document.getElementById("redirectUrl").text = redirectUrl;
       console.log(pageTitle);
 
       document.getElementById("redirectUrl").href = previousUrl;
       document.getElementById("redirectUrl").text = pageTitle;
     }
     }



Revision as of 20:22, 17 April 2023

Do you want to log out?