Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

HTML tree views

Name: Anonymous 2020-06-28 8:48

Why do we have a shitload of toy elements like <dicksizepicker>, but not one for a very common requirement of displaying hierarchical elements? And why does every autistic Linuxer write their own, half-functional library for that?

Name: Anonymous 2020-06-29 1:54

>>6
wow its so hard

<style type="text/css">
ul {cursor: pointer}
ul.collapsed > * {display: none;}
ul:not(.collapsed):before {content: "–";}
ul.collapsed:before {content: "+";}
</style>

<ul onclick="t = event.target; t.classList.toggle('collapsed'); t.setAttribute('aria-expanded', '' + !t.classList.contains('collapsed'))">
<li>item 1</li>
<li>item 2</li>
</ul>

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List