Tools can be selected through URL (solves #161) #207

Merged
bema merged 2 commits from bema/func/individual_urls into master 2023-05-24 14:40:10 +02:00
Showing only changes of commit 042dc1cc85 - Show all commits

View File

@@ -30,7 +30,14 @@ function init() {
tools.set("mock", "tools/mock.html"); tools.set("mock", "tools/mock.html");
changeActiveTools('XML'); changeActiveTools('XML');
loadLastPage(); var toolUrl = window.location.search.substring(1);
if (toolUrl == "")
loadLastPage();
else if (tools.has(toolUrl))
changeTool(toolUrl);
else
loadLastPage();
} }
/** /**