diff --git a/public/assets/js/script.js b/public/assets/js/script.js index 09ec8cd..32d49e6 100644 --- a/public/assets/js/script.js +++ b/public/assets/js/script.js @@ -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); diff --git a/public/index.html b/public/index.html index f842748..f568af8 100644 --- a/public/index.html +++ b/public/index.html @@ -192,7 +192,9 @@
-
+
+ +