Mercurial
view mrjunejune/pages/resume/index.js @ 79:5710108c949e
[Seobeo] Added Redirect logic.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Thu, 01 Jan 2026 05:57:03 -0800 |
| parents | ede391ac83c8 |
| children |
line wrap: on
line source
function loadComponent(ele, file_path) { fetch(file_path) .then(response => response.text()) .then(data => ele.innerHTML = data) } loadComponent(header, 'header.html'); loadComponent(footer, 'footer.html');