MCPcopy Index your code
hub / github.com/compat-table/compat-table / footnoteHTML

Function footnoteHTML

build.js:447–458  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

445 }
446
447 function footnoteHTML(obj) {
448 if (obj && obj.note_id) {
449 if (!footnoteIndex[obj.note_id]) {
450 if (obj.note_html) {
451 footnoteIndex[obj.note_id] = obj.note_html;
452 }
453 }
454 var num = Object.keys(footnoteIndex).indexOf(obj.note_id) + 1;
455 return '<a href="#' + obj.note_id + '-note"><sup>[' + num + ']</sup></a>';
456 }
457 return '';
458 }
459
460 function allFootnotes() {
461 var ret = $('<div>');

Callers 1

dataToHtmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected