fixed open function problems

This commit is contained in:
Václav Šmejkal 2023-05-29 19:44:42 +02:00
parent 22fd6f3981
commit 5b3e71a05a
Signed by: ENGO150
GPG Key ID: 4A57E86482968843
3 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@
<script src="./res/map/script.js"></script>
</head>
<body>
<button id="back_button" onclick="move('./index.html')">&#8701;</button>
<button id="back_button" onclick="move('./index.html', true)">&#8701;</button>
<div class="imgbox">
<img class="center-fit" src="http://207.180.212.190/fht/map.jpg" draggable="false">
</div>

View File

@ -2,7 +2,7 @@ function move(url, self)
{
let parameter = "_blank";
if (self) parameter = "_self";
if (self === true) parameter = "_self";
open(url, parameter);
}

View File

@ -15,7 +15,7 @@
<title>Fabrika Hrádek Tour</title>
</head>
<body onload="load_panorama()">
<button id="back_button" onclick="move('../index.html')">&#8701;</button>
<button id="back_button" onclick="move('../map.html', true)">&#8701;</button>
<div id="panorama_div">
<canvas id="panorama">This browser doesn't seem to support canvas. sorry idk</canvas>
</div>