fixed images not loading due to ssl

This commit is contained in:
Václav Šmejkal 2024-06-18 08:10:15 +02:00 committed by GitHub
parent 7602e9f7ae
commit 5f9ea5f358
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 11 additions and 11 deletions

View File

@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fabrika Hrádek Tour</title>
<link rel="icon" type="image/x-icon" href="http://109.123.243.163/fht/favicon.ico">
<link rel="icon" type="image/x-icon" href="/fht/favicon.ico">
<meta name="author" content="Smejkal, Suljakovic, Somr">
<meta name="description" content="Průvodce Hrádeckou Fabrikou">

View File

@ -22,7 +22,7 @@ if ($out -> num_rows != 1)
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="http://109.123.243.163/fht/favicon.ico">
<link rel="icon" type="image/x-icon" href="/fht/favicon.ico">
<meta name="author" content="Smejkal, Suljakovic, Somr">
<meta name="description" content="Průvodce Hrádeckou Fabrikou">

View File

@ -7,7 +7,7 @@ session_start();
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="http://109.123.243.163/fht/favicon.ico">
<link rel="icon" type="image/x-icon" href="/fht/favicon.ico">
<meta name="author" content="Smejkal, Suljakovic, Somr">
<meta name="description" content="Průvodce Hrádeckou Fabrikou">

View File

@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fabrika Hrádek Tour</title>
<link rel="icon" type="image/x-icon" href="http://109.123.243.163/fht/favicon.ico">
<link rel="icon" type="image/x-icon" href="/fht/favicon.ico">
<meta name="author" content="Smejkal, Suljakovic, Somr">
<meta name="description" content="Průvodce Hrádeckou Fabrikou">
@ -20,7 +20,7 @@
<body>
<button id="back_button" onclick="move('./index.php', true)">&#8701;</button>
<div class="imgbox">
<img class="center-fit" src="http://109.123.243.163/fht/map.jpg" alt="Satelitní snímek železáren">
<img class="center-fit" src="/fht/map.jpg" alt="Satelitní snímek železáren">
</div>
</body>
</html>

View File

@ -32,7 +32,7 @@
(
"<div class=\"post\">" +
"<div class=\"post_image\">" +
"<img src=\"" + "http://109.123.243.163/user_content/" + result[i].author + "/" + result[i].photo_id + "\"></img>" +
"<img src=\"" + "/user_content/" + result[i].author + "/" + result[i].photo_id + "\"></img>" +
"</div>" +
"<div class=\"post_info\">" +

View File

@ -1,6 +1,6 @@
body
{
background: url("http://109.123.243.163/fht/background_downscaled.jpg") no-repeat center center fixed;
background: url("/fht/background_downscaled.jpg") no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;

View File

@ -19,7 +19,7 @@ function change_slideshow_img()
last_index = 0;
}
document.getElementById("slideshow").src = "http://109.123.243.163/fht/fabrika_imgs/downscaled/" + imgs_index[last_index++] + ".jpg";
document.getElementById("slideshow").src = "/fht/fabrika_imgs/downscaled/" + imgs_index[last_index++] + ".jpg";
}
function repeat_panorama()

View File

@ -1,6 +1,6 @@
body
{
background: url("http://109.123.243.163/fht/fabrika_imgs/downscaled/23.jpg") no-repeat center center fixed;
background: url("/fht/fabrika_imgs/downscaled/23.jpg") no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="http://109.123.243.163/fht/favicon.ico">
<link rel="icon" type="image/x-icon" href="/fht/favicon.ico">
<meta name="author" content="Smejkal, Suljakovic, Somr">
<meta name="description" content="Průvodce Hrádeckou Fabrikou">

View File

@ -130,6 +130,6 @@ function check_param()
open("../index.php", "_self");
}
img_url = 'http://109.123.243.163/fht/fabrika_imgs/downscaled/' + img_url + '.jpg'; //TODO: Change
img_url = '/fht/fabrika_imgs/downscaled/' + img_url + '.jpg'; //TODO: Change
if (!x.startsWith(undefined)) ASPECT_RATIO = x / y;
}