view mrjunejune/src/resume/index.js @ 160:948de3f54cea

[ThirdParty] Added libuv
author June Park <parkjune1995@gmail.com>
date Wed, 14 Jan 2026 19:39:52 -0800
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');