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

Function updateBodyClass

docs/v1/edit.js:79–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77}
78
79function updateBodyClass() {
80 var length = content.innerText.length;
81 if (length || importedFileData) {
82 document.body.classList.add("edited");
83 } else {
84 document.body.classList.remove("edited");
85 }
86 document.body.classList.add("loaded");
87}
88
89function handleDrop(e) {
90 e.preventDefault();

Callers 3

edit.jsFile · 0.70
setContentFunction · 0.70
handleInputFunction · 0.70

Calls 1

addMethod · 0.80

Tested by

no test coverage detected