add open/close all buttons
All checks were successful
CI/CD Pipeline / test (push) Successful in 1m37s

This commit is contained in:
2024-02-17 11:10:25 +01:00
parent 40982a96bf
commit 10c2174717
11 changed files with 22 additions and 0 deletions

View File

@ -5,6 +5,8 @@
</head>
<body>
<div class="container">
<button onclick='const details = document.querySelector("details");details.setAttribute("open", "");'>Open all</button>
<button onclick='const details = document.querySelector("details");details.removeAttribute("open", "");'>Close all</button>
<h1>{{title}}</h1>
{{content}}
</div>