diff --git a/resources/src/main/resources/js/toc.js b/resources/src/main/resources/js/toc.js deleted file mode 100644 index cb1deaf2..00000000 --- a/resources/src/main/resources/js/toc.js +++ /dev/null @@ -1,114 +0,0 @@ -var toctitle = document.getElementById('toctitle'); -var path = window.location.pathname; -if (toctitle != null) { - var oldtoc = toctitle.nextElementSibling; - var newtoc = document.createElement('div'); - newtoc.setAttribute('id', 'tocbot'); - newtoc.setAttribute('class', 'js-toc desktop-toc'); - oldtoc.setAttribute('class', 'mobile-toc'); - oldtoc.parentNode.appendChild(newtoc); - tocbot.init({ - contentSelector: '#content', - headingSelector: 'h1, h2, h3, h4, h5', - positionFixedSelector: 'body', - fixedSidebarOffset: 90, - smoothScroll: false, - // Spring Data specific - collapseDepth: 2 - }); - if (!path.endsWith("index.html") && !path.endsWith("/")) { - var link = document.createElement("a"); - link.setAttribute("href", "index.html"); - link.innerHTML = " Back to index"; - var block = document.createElement("div"); - block.setAttribute('class', 'back-action'); - block.appendChild(link); - var toc = document.getElementById('toc'); - var next = document.getElementById('toctitle').nextElementSibling; - toc.insertBefore(block, next); - } -} - -var headerHtml = '
\n' + - '

\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '\n' + - '

\n' + - '
'; - -var header = document.createElement("div"); -header.innerHTML = headerHtml; -document.body.insertBefore(header, document.body.firstChild); - -// Spring Data specifics: default section is the reference one -if (window.location.hash == '') { - window.location.hash = '#reference' -}