view mrjunejune/src/resume/index.js @ 153:790930d9bb90

[PostDog] Adding websocket to be more usable.
author June Park <parkjune1995@gmail.com>
date Sun, 11 Jan 2026 08:11:24 -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');