Text layout changes.
[wolnelektury.git] / src / wolnelektury / static / js / book_text / toc.js
1 (function($){$(function(){
2
3     if ($("#toc a").length > 0) {
4         $("#toc > ol").appendTo($("#heretoc"));
5     }
6
7     if ($('#wltoc li').length > 0) {
8         $('a[href="#wltoc"]').show();
9     }
10
11     if ($('#wltoc li a').length == 0) {
12         $('a[href="#wltoc"]').remove();
13     }
14
15     $("#toc").remove();
16
17 })})(jQuery);