(type, raw, target)
| 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 |
no test coverage detected