This commit is contained in:
Valeria Fadeeva 2023-12-10 01:26:41 +05:00
parent 7f17905bbc
commit d3cd5b77c5
2 changed files with 5 additions and 3 deletions

View File

@ -70,9 +70,9 @@ async function fetchData() {
// Загрузка HTML из файла при загрузке URL
async function bodyFetch(url) {
if (!url) {
tplUrl = 'news.tpl.html';
var tplUrl = 'news.tpl.html';
} else {
tplUrl = url + ".tpl.html";
var tplUrl = url + ".tpl.html";
}
let response = await fetch(tplUrl);

View File

@ -192,7 +192,9 @@
<div>
<div id="log"></div>
<div id="log">
</div>
</main>
<!-- FOOTER -->