MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / toggleOverlay

Function toggleOverlay

static/real-dark.ts:55–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 const overlay = $('#real-dark');
54 let overlay_on = false;
55 const toggleOverlay = () => {
56 const theme = Settings.getStoredSettings().theme;
57 overlay_on = theme === 'real-dark';
58 overlay.toggle(overlay_on);
59 };
60
61 const eventHub = hub.createEventHub();
62 eventHub.on('settingsChange', () => {

Callers 1

setupRealDarkFunction · 0.85

Calls 1

getStoredSettingsMethod · 0.80

Tested by

no test coverage detected