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

Function setFileName

docs/v1/edit.js:71–77  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

69}
70
71function setFileName(name) {
72 QS("#doc-file").innerText = name;
73 if (name.length) {
74 setContent("");
75 document.body.classList.add("edited");
76 }
77}
78
79function updateBodyClass() {
80 var length = content.innerText.length;

Callers 3

handleDropFunction · 0.70
fetchCodepenFunction · 0.70
handleInputFunction · 0.70

Calls 2

addMethod · 0.80
setContentFunction · 0.70

Tested by

no test coverage detected