MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / mountCursor

Function mountCursor

graph-ui/tools/call-feedback-acceptance.mjs:82–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80function pageProbe() {
81 try { localStorage.setItem('cbm.workspace.setup', 'done'); } catch { /* ohne Speicher geht es auch */ }
82 const mountCursor = () => {
83 if (document.getElementById('probe-cursor')) return;
84 const dot = document.createElement('div');
85 dot.id = 'probe-cursor';
86 dot.style.cssText = 'position:fixed;left:-100px;top:-100px;width:22px;height:22px;margin:-11px 0 0 -11px;border:2px solid #ff3b6b;'
87 + 'border-radius:50%;box-shadow:0 0 0 2px rgba(0,0,0,.6);pointer-events:none;z-index:2147483647;';
88 document.documentElement.appendChild(dot);
89 document.addEventListener('mousemove', (event) => { dot.style.left = `${event.clientX}px`; dot.style.top = `${event.clientY}px`; }, true);
90 };
91 if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', mountCursor); else mountCursor();
92 window.__probeErrors = [];
93 window.addEventListener('error', (event) => window.__probeErrors.push(String(event.message)));

Callers 1

pageProbeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected