asciidoctor-csand 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,68 +0,0 @@
1
- <script>//TOC generation
2
- $('#toc').toc({
3
- 'selectors': 'h1,h2:not(.TermNum)', //elements to use as headings
4
- 'container': 'main', //element to find all selectors in
5
- 'smoothScrolling': true, //enable or disable smooth scrolling on click
6
- 'prefix': 'toc', //prefix for anchor tags and class names
7
- 'onHighlight': function(el) {}, //called when a new section is highlighted
8
- 'highlightOnScroll': true, //add class to heading that is currently in focus
9
- 'highlightOffset': 100, //offset to trigger the next headline
10
- 'anchorName': function(i, heading, prefix) { //custom function for anchor name
11
- return prefix+i;
12
- },
13
- 'headerText': function(i, heading, $heading) { //custom function building the header-item text
14
- return $heading.text();
15
- },
16
- 'itemClass': function(i, heading, $heading, prefix) { // custom function for item class
17
- return $heading[0].tagName.toLowerCase();
18
- }
19
- });
20
-
21
- </script>
22
-
23
- <script>
24
- //TOC toggle animation
25
- $('#toggle').on('click', function(){
26
- if( $('nav').is(':visible') ) {
27
- $('nav').animate({ 'left': '-353px' }, 'slow', function(){
28
- $('nav').hide();
29
- });
30
- $('.container').animate({ 'padding-left': '31px' }, 'slow');
31
- }
32
- else {
33
- $('nav').show();
34
- $('nav').animate({ 'left': '0px' }, 'slow');
35
- $('.container').animate({ 'padding-left': '360px' }, 'slow');
36
- }
37
- });
38
- </script>
39
-
40
- <script>
41
- // Scroll to top button
42
- window.onscroll = function() {scrollFunction()};
43
-
44
- function scrollFunction() {
45
- if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
46
- document.getElementById("myBtn").style.display = "block";
47
- } else {
48
- document.getElementById("myBtn").style.display = "none";
49
- }
50
- }
51
-
52
- // When the user clicks on the button, scroll to the top of the document
53
- function topFunction() {
54
- document.body.scrollTop = 0;
55
- document.documentElement.scrollTop = 0;
56
- }
57
- </script>
58
-
59
- <script>
60
- $(document).ready(function() {
61
- $('[id^=toc]').each(function ()
62
- {
63
- var currentToc = $(this);
64
- var url = window.location.href;
65
- currentToc.wrap("<a href='" + url + "#" + currentToc.attr("id") + "' </a>");
66
- });
67
- });
68
- </script>