fancy on-hover permalinks for section headers

This commit is contained in:
Mark Pilgrim
2009-07-29 00:37:06 -04:00
parent af50491f54
commit 19aa12dd7f
3 changed files with 20 additions and 1 deletions
+7
View File
@@ -93,6 +93,13 @@ $(document).ready(function() {
hideTOC();
prettyPrint();
/* on-hover permalink markers on each section header */
$('*:header[id]').each(function() {
$('<a class=hl>#</a>').
attr('href', '#' + this.id).
appendTo(this);
});
/* "hide", "open in new window", and (optionally) "download" widgets on code & screen blocks */
$("pre > code").each(function(i) {
var pre = $(this.parentNode);