Mercurial
view mrjunejune/src/resume/index.js @ 237:97882baf83e7
[mrjunejune] Rewrite homepage introduction
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 03 Aug 2026 09:53:29 -0700 |
| parents | bcc76a156aea |
| 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');