Код: Выделить всё
fetch('../partials/header.html')
.then(res => res.text())
.then(htmlText => {
document.querySelector('.header').innerHTML = htmlText;
})
Код: Выделить всё
[url=../index.html]
[img]../assets/CompanyLogo.webp[/img]
[/url]
[url=../pages/tour.html]tour[/url]
[url=https://example.com]merch[/url]
[url=../pages/music.html]music[/url]
[url=../pages/contact.html]contact[/url]
Подробнее здесь: https://stackoverflow.com/questions/798 ... html-files
Мобильная версия