forked from modelcontextprotocol/modelcontextprotocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfooter.js
More file actions
23 lines (21 loc) · 902 Bytes
/
footer.js
File metadata and controls
23 lines (21 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Custom footer copyright notice
(function() {
function addCopyright() {
const footer = document.querySelector('footer');
if (footer && !document.getElementById('lf-copyright')) {
const copyright = document.createElement('div');
copyright.id = 'lf-copyright';
copyright.innerHTML = 'Copyright © Model Context Protocol a Series of LF Projects, LLC.<br>For web site terms of use, trademark policy and other project policies please see <a href="https://lfprojects.org">https://lfprojects.org</a>.';
footer.appendChild(copyright);
}
}
// Run on initial load
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', addCopyright);
} else {
addCopyright();
}
// Handle SPA navigation
const observer = new MutationObserver(addCopyright);
observer.observe(document.body, { childList: true, subtree: true });
})();