%PDF- %PDF-
| Direktori : /home2/rezakur1/devita.rezakurnia.com/X9KQ7MW2RT8PY4ND6LV3JH5CG8BF2ZM7QW4/js/ |
| Current File : //home2/rezakur1/devita.rezakurnia.com/X9KQ7MW2RT8PY4ND6LV3JH5CG8BF2ZM7QW4/js/include.js |
async function loadComponent(id, file){
const response = await fetch(file);
const html = await response.text();
document.getElementById(id).innerHTML = html;
}
loadComponent(
'header-container',
'components/header.html'
);s