mirror of https://github.com/docker/docs.git
js: remove unused js/menu.js
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
68911c8d45
commit
017b8823a2
|
@ -184,7 +184,7 @@ Either way, you can now access the docs at port 4000 on your Docker host.
|
|||
## Important files
|
||||
|
||||
- `/_data/toc.yaml` defines the left-hand navigation for the docs
|
||||
- `/js/menu.js` defines most of the docs-specific JS such as TOC generation and menu syncing
|
||||
- `/js/docs.js` defines most of the docs-specific JS such as TOC generation and menu syncing
|
||||
- `/css/style.scss` defines the docs-specific style rules
|
||||
- `/_layouts/docs.html` is the HTML template file, which defines the header and footer, and includes all the JS/CSS that serves the docs content
|
||||
|
||||
|
|
|
@ -89,7 +89,6 @@
|
|||
</footer>
|
||||
<script>const pageURL = "{{ page.url }}";</script>
|
||||
<script defer src="/js/anchorlinks.js"></script>
|
||||
<script defer src="/js/menu.js"></script>
|
||||
<script src="/js/jquery.js"></script>
|
||||
<script src="/js/bootstrap.min.js"></script>
|
||||
<script defer src="/js/metadata.js"></script>
|
||||
|
|
16
js/menu.js
16
js/menu.js
|
@ -1,16 +0,0 @@
|
|||
function hookupTOCEvents() {
|
||||
$('.expand-menu').on('click', function(elem) {
|
||||
var menu = elem.currentTarget.parentElement
|
||||
if (menu.classList.contains("menu-closed")) {
|
||||
menu.classList.remove("menu-closed")
|
||||
menu.classList.add("menu-open")
|
||||
} else {
|
||||
menu.classList.add("menu-closed")
|
||||
menu.classList.remove("menu-open")
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
$(".left-off-canvas-menu").css("display","block");
|
||||
}
|
||||
$(document).ready(hookupTOCEvents);
|
Loading…
Reference in New Issue