MCPcopy
hub / github.com/Justineo/github-hovercard / getCardContent

Function getCardContent

src/hovercard.js:1033–1045  ·  view source on GitHub ↗
(type, raw, target)

Source from the content-addressed store, hash-verified

1031 }
1032
1033 function getCardContent(type, raw, target) {
1034 let content = $(getCardHTML(type, raw))
1035 content.attr('tabindex', '0')
1036 content.on('keydown', e => {
1037 if (e.key === 'Escape') {
1038 target.tooltipster('hide')
1039 target.focus()
1040 return false
1041 }
1042 })
1043
1044 return content
1045 }
1046
1047 function getCardHTML(type, raw) {
1048 let data

Callers 2

functionBeforeFunction · 0.70
requestFunction · 0.70

Calls 1

getCardHTMLFunction · 0.70

Tested by

no test coverage detected