MCPcopy
hub / github.com/rsms/inter / toHTML

Function toHTML

docs/lab/samples.js:687–704  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

685 _cachedHTML: null,
686 _isFetching: false,
687 toHTML() {
688 if (this._cachedHTML) {
689 return this._cachedHTML
690 }
691 fetch('color-names.json').then(r => r.json()).then(names => {
692 if (!this._cachedHTML) {
693 let namestr = names.join('\n')
694 let r = document.createElement('div')
695 r.innerText = namestr
696 this._cachedHTML = r.innerHTML
697 }
698 if (sampleVar) {
699 sampleVar.refreshValue(null)
700 }
701 })
702
703 return 'fetching color names...'
704 },
705})
706
707samples.set('────── language/script ──────', null)

Callers

nothing calls this directly

Calls 4

getGlyphInfoFunction · 0.85
getWordsWithPairsFunction · 0.85
getEnglishWordsFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…