(obj)
| 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>'); |