MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / toggleFonts

Function toggleFonts

scripts/component_docs/toggle_fonts.ts:20–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 ];
19
20 function toggleFonts(): void {
21 for (const className of loop) {
22 document.documentElement.classList.toggle(className, className === loop[0]);
23 }
24 loop.push(loop.shift() as string);
25 button.innerText = 'Turn on ' + loop[0] + ' fonts';
26 }
27
28 window.addEventListener('load', () => {
29 toggleFonts();

Callers 1

initFunction · 0.85

Calls 2

toggleMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected