MCPcopy Create free account
hub / github.com/codemistic/Web-Development / pressedfunc

Function pressedfunc

Add text, display and remove it/behave.js:36–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35 let removeBtnId;
36 const pressedfunc = e => {
37 removeBtnId = e.target.id;
38 removeBtns[removeBtnId].parentElement.remove();
39 }
40
41 for(let removeBtn of removeBtns) {
42 removeBtn.addEventListener('click', pressedfunc);

Callers

nothing calls this directly

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected