mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 04:46:37 +02:00
📚 Merge penpot/penpot-docs repository
This commit is contained in:
parent
3932054ea6
commit
88296480ec
665 changed files with 17621 additions and 0 deletions
16
docs/js/toc.js
Normal file
16
docs/js/toc.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
(function (window, document) {
|
||||
"use strict";
|
||||
|
||||
let titleEl;
|
||||
let tocEl;
|
||||
|
||||
const titleClicked = (e) => {
|
||||
tocEl.classList.toggle('open');
|
||||
};
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
titleEl = document.getElementById("toc-title");
|
||||
tocEl = document.getElementById("toc");
|
||||
titleEl.addEventListener("click", titleClicked);
|
||||
});
|
||||
})(window, document);
|
Loading…
Add table
Add a link
Reference in a new issue