📚 Merge penpot/penpot-docs repository

This commit is contained in:
David Barragán Merino 2024-10-30 12:49:46 +01:00 committed by Andrey Antukh
parent 3932054ea6
commit 88296480ec
665 changed files with 17621 additions and 0 deletions

16
docs/js/toc.js Normal file
View 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);