()
| 458 | } |
| 459 | |
| 460 | function allFootnotes() { |
| 461 | var ret = $('<div>'); |
| 462 | Object.keys(footnoteIndex).forEach(function (e,id) { |
| 463 | if (!(e in footnoteIndex)) { |
| 464 | console.error("There's no footnote with id '" + e + "'"); |
| 465 | } |
| 466 | ret.append('<p id="' + e + '-note">' + |
| 467 | '\t<sup>[' + (id + 1) + ']</sup> ' + footnoteIndex[e] + |
| 468 | '</p>'); |
| 469 | }); |
| 470 | return ret; |
| 471 | } |
| 472 | |
| 473 | function testValue(result) { |
| 474 | if (result && typeof result === "object" && "val" in result) { |