4d30803b60
Add static site, shared layout, and Node dev server with standard .gitignore. Co-authored-by: Cursor <cursoragent@cursor.com>
8 lines
229 B
JavaScript
8 lines
229 B
JavaScript
document.addEventListener('DOMContentLoaded', () => {
|
|
document.querySelectorAll('[data-include]').forEach(el => {
|
|
fetch(el.dataset.include)
|
|
.then(res => res.text())
|
|
.then(html => el.innerHTML = html);
|
|
});
|
|
});
|