From 5b3e71a05a20c3335710a7251801fc4885fb4aa8 Mon Sep 17 00:00:00 2001 From: ENGO150 <v.smejkal06@gmail.com> Date: Mon, 29 May 2023 19:44:42 +0200 Subject: [PATCH] fixed open function problems --- map.html | 2 +- res/global.js | 2 +- res/panorama.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/map.html b/map.html index 4ed26b1..4a74e59 100644 --- a/map.html +++ b/map.html @@ -14,7 +14,7 @@ <script src="./res/map/script.js"></script> </head> <body> - <button id="back_button" onclick="move('./index.html')">⇽</button> + <button id="back_button" onclick="move('./index.html', true)">⇽</button> <div class="imgbox"> <img class="center-fit" src="http://207.180.212.190/fht/map.jpg" draggable="false"> </div> diff --git a/res/global.js b/res/global.js index e67c1d6..b422c5e 100644 --- a/res/global.js +++ b/res/global.js @@ -2,7 +2,7 @@ function move(url, self) { let parameter = "_blank"; - if (self) parameter = "_self"; + if (self === true) parameter = "_self"; open(url, parameter); } \ No newline at end of file diff --git a/res/panorama.html b/res/panorama.html index 3630c73..e85fc54 100644 --- a/res/panorama.html +++ b/res/panorama.html @@ -15,7 +15,7 @@ <title>Fabrika Hrádek Tour</title> </head> <body onload="load_panorama()"> - <button id="back_button" onclick="move('../index.html')">⇽</button> + <button id="back_button" onclick="move('../map.html', true)">⇽</button> <div id="panorama_div"> <canvas id="panorama">This browser doesn't seem to support canvas. sorry idk</canvas> </div>