|
@@ -1,7 +1,7 @@
|
|
|
$(document).ready(function () {
|
|
|
'use strict';
|
|
|
|
|
|
-// Use attr() to add an id, rel, and title.
|
|
|
+ // Use attr() to add an id, rel, and title.
|
|
|
$('div.chapter a[href*="wikipedia"]').attr({
|
|
|
rel: 'external',
|
|
|
title: function () {
|
|
@@ -11,4 +11,8 @@ $(document).ready(function () {
|
|
|
return 'wikilink-' + index;
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ // Add "back to top" links.
|
|
|
+ $('<a href="#top">back to top</a>');
|
|
|
+ $('<a id="top"></a>');
|
|
|
});
|