comparison mrjunejune/pages/resume/index.js @ 73:ede391ac83c8

[MrJuneJune] My own websites.
author June Park <parkjune1995@gmail.com>
date Wed, 31 Dec 2025 09:07:29 -0800
parents
children
comparison
equal deleted inserted replaced
72:4532ce6d9eb8 73:ede391ac83c8
1 function loadComponent(ele, file_path)
2 {
3 fetch(file_path)
4 .then(response => response.text())
5 .then(data => ele.innerHTML = data)
6 }
7 loadComponent(header, 'header.html');
8 loadComponent(footer, 'footer.html');