MCPcopy Create free account
hub / github.com/davidkingzyb/SCAST / wtfmsg

Function wtfmsg

js/common.js:491–507  ·  view source on GitHub ↗
(m,time=3000)

Source from the content-addressed store, hash-verified

489}
490
491function wtfmsg(m,time=3000){
492 var elem=document.createElement('div')
493 elem.className="wtfmsg"
494 elem.innerHTML=m
495 // var bottom=(document.querySelectorAll('.wtfmsg').length+1)*50+10
496 // elem.style.bottom=`${bottom}px`
497 document.body.appendChild(elem)
498 if(time<0){
499 elem.onclick=()=>{
500 document.body.removeChild(elem)
501 }
502 }else{
503 setTimeout(()=>{
504 document.body.removeChild(elem)
505 },time)
506 }
507}
508
509function find() {
510 var p = prompt('🔍find ', '')

Callers 6

_saveServerFunction · 0.85
onFlowClickFunction · 0.85
renderMermaidFunction · 0.85
findHighlightFunction · 0.85
outlineAgentFunction · 0.85
getModelsFunction · 0.85

Calls 1

createElementMethod · 0.80

Tested by

no test coverage detected