Mercurial
view mrjunejune/src/resume/index.js @ 84:bcc76a156aea
Updated to be called src instead of pages.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Thu, 01 Jan 2026 13:01:10 -0800 |
| parents | mrjunejune/pages/resume/index.js@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');