view mrjunejune/pages/resume/index.js @ 78:e7bf9e002850

amend
author June Park <parkjune1995@gmail.com>
date Wed, 31 Dec 2025 15:07:43 -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');