diff mrjunejune/pages/resume/index.js @ 73:ede391ac83c8

[MrJuneJune] My own websites.
author June Park <parkjune1995@gmail.com>
date Wed, 31 Dec 2025 09:07:29 -0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mrjunejune/pages/resume/index.js	Wed Dec 31 09:07:29 2025 -0800
@@ -0,0 +1,8 @@
+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');