MCPcopy Create free account
hub / github.com/hackmdio/codimd / checkExpandToggle

Function checkExpandToggle

public/js/extra.js:939–952  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

937let tocExpand = false
938
939function checkExpandToggle () {
940 const toc = $('.ui-toc-dropdown .toc')
941 const expand = $('.expand-toggle.expand-all')
942 const collapse = $('.expand-toggle.collapse-all')
943 if (!tocExpand) {
944 toc.removeClass('expand')
945 expand.show()
946 collapse.hide()
947 } else {
948 toc.addClass('expand')
949 expand.hide()
950 collapse.show()
951 }
952}
953
954// toc
955export function generateToc (id) {

Callers 1

generateTocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected