MCPcopy Index your code
hub / github.com/pyscript/pyscript / makeBoxDiv

Function makeBoxDiv

core/src/plugins/py-editor.js:245–256  ·  view source on GitHub ↗
(handler, type, output)

Source from the content-addressed store, hash-verified

243};
244
245const makeBoxDiv = (handler, type, output) => {
246 const boxDiv = document.createElement("div");
247 boxDiv.className = `${type}-editor-box`;
248
249 const editorDiv = makeEditorDiv(handler, type);
250 // allow specifying an existing output div by id
251 const outDiv = output ? document.getElementById(output) : makeOutDiv(type);
252 if (output) outDiv.classList.add(`${type}-editor-output`);
253 boxDiv.append(editorDiv, outDiv);
254
255 return [boxDiv, outDiv, editorDiv.querySelector("button")];
256};
257
258const init = async (script, type, interpreter) => {
259 const [

Callers 1

initFunction · 0.85

Calls 4

makeEditorDivFunction · 0.85
makeOutDivFunction · 0.85
addMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected