add open/close all buttons
All checks were successful
CI/CD Pipeline / test (push) Successful in 1m37s
All checks were successful
CI/CD Pipeline / test (push) Successful in 1m37s
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user