MCPcopy Create free account
hub / github.com/Alfredredbird/CyberKelp / init

Function init

script.js:767–781  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

765// --- Init -----------------------------------------------------
766
767function init() {
768 renderTree();
769 renderRecentSection(); // populate recent panel from localStorage on load
770 searchInput.addEventListener("input", handleSearchInput);
771 initMobileMenu();
772 initHashRouting();
773 initGraphView();
774 initKeyboardShortcuts(); // / · Ctrl+K · Escape · [ · ]
775
776 // Honour the URL hash on first load; fall back to first note
777 const startNote = noteFromHash() || NOTES[0];
778 if (startNote) loadNote(startNote);
779
780 dismissSplash();
781}
782
783init();

Callers 1

script.jsFile · 0.85

Calls 9

renderTreeFunction · 0.85
renderRecentSectionFunction · 0.85
initMobileMenuFunction · 0.85
initHashRoutingFunction · 0.85
initGraphViewFunction · 0.85
initKeyboardShortcutsFunction · 0.85
noteFromHashFunction · 0.85
loadNoteFunction · 0.85
dismissSplashFunction · 0.85

Tested by

no test coverage detected