Migration des fichiers depuis decp-table-schema-utils

This commit is contained in:
Colin Maudry
2021-05-28 12:24:01 +02:00
parent 4307ccaa95
commit 2b2f7f6dfe
44 changed files with 3470 additions and 0 deletions
@@ -0,0 +1,16 @@
<script>
document.body.addEventListener('click', (ev) => {
/* Close any open details elements that this click is outside of */
var target = ev.target;
var detailsClickedWithin = null;
while (target && target.tagName != 'DETAILS') {
target = target.parentNode;
}
if (target && target.tagName == 'DETAILS') {
detailsClickedWithin = target;
}
Array.from(document.getElementsByTagName('details')).filter(
(details) => details.open && details != detailsClickedWithin
).forEach(details => details.open = false);
});
</script>