MCPcopy Create free account
hub / github.com/arfct/itty-bitty / togglePreview

Function togglePreview

docs/edit.js:426–429  ·  view source on GitHub ↗
(flag)

Source from the content-addressed store, hash-verified

424
425let previewContent = false;
426function togglePreview(flag) {
427 previewContent = !previewContent;
428 document.body.classList.toggle("preview", previewContent);
429}
430let formatContent = false;
431function toggleFormat(flag) {
432 formatContent = !formatContent;

Callers 1

edit.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected