MCPcopy Index your code
hub / github.com/Threadfin/Threadfin / PageReady

Function PageReady

html/js/menu_ts.js:874–892  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

872 }
873}
874function PageReady() {
875 var server = new Server("getServerConfig");
876 server.request(new Object());
877 // Render the menu immediately so UI is usable even before data arrives
878 try {
879 createLayout();
880 }
881 catch (e) {
882 console.log("early createLayout error", e);
883 }
884 // Call updateLog immediately to get initial data and create menu
885 setTimeout(() => {
886 updateLog();
887 }, 500); // Small delay to ensure WebSocket is ready
888 setInterval(function () {
889 updateLog();
890 }, 10000);
891 return;
892}
893function createLayout() {
894 console.log("createLayout: Function called");
895 console.log("createLayout: SERVER object:", SERVER);

Callers

nothing calls this directly

Calls 3

requestMethod · 0.95
createLayoutFunction · 0.70
updateLogFunction · 0.70

Tested by

no test coverage detected