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 38: Line 38:
     function onLoad(){
     function onLoad(){
       var previousUrl = document.referrer;
       var previousUrl = document.referrer;
       console.log(previousUrl);
       if (!strValue || strValue !== "") {
        document.getElementById("redirectUrl").href = previousUrl;


      var pageTitle = previousUrl.split("https://damtoolbox.org/wiki/").pop();
        var pageTitle = previousUrl.split("https://damtoolbox.org/wiki/").pop().replaceAll('_',' ');
      console.log(pageTitle);
        document.getElementById("redirectUrl").text = pageTitle;
      pageTitle = pageTitle.replaceAll('_',' ');
       }
      console.log(pageTitle);
 
      document.getElementById("redirectUrl").href = previousUrl;
       document.getElementById("redirectUrl").text = pageTitle;
     }
     }



Revision as of 20:34, 17 April 2023

Do you want to log out?