comparison 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
comparison
equal deleted inserted replaced
83:49b611c808e7 84:bcc76a156aea
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');