|
@@ -18,7 +18,10 @@ $(document).ready(function () {
|
|
// insertBefore <elem> prependTo <children /> appendTo </elem> insertAfter
|
|
// insertBefore <elem> prependTo <children /> appendTo </elem> insertAfter
|
|
|
|
|
|
// Create footnotes.
|
|
// Create footnotes.
|
|
- $('span.footnote').insertBefore('#footer');
|
|
|
|
// This works just as well, in spite of what the book says.
|
|
// This works just as well, in spite of what the book says.
|
|
// $('span.footnote').insertAfter('div.chapter');
|
|
// $('span.footnote').insertAfter('div.chapter');
|
|
|
|
+ $('span.footnote')
|
|
|
|
+ .insertBefore('#footer')
|
|
|
|
+ .wrapAll('<ol id="notes"></ol>')
|
|
|
|
+ .wrap('<li></li>');
|
|
});
|
|
});
|