Follow

FYI You can nest <details> tags within <ul> and vice versa to create a collapsible tree menu without JS or CSS

E.G.
<details>
<summary>Root</summary>
<ul>
<li>
<details>
<summary>Sub</summary>
<ul><li>etc...</li></ul>
</details>
</li>
</ul>
</details>

· · Tootle for Mastodon · 7 · 24 · 42

Testing out the page editor plugin for my blog. This is for static pages like about etc... Not the blog posts, but I may add that functionality later. I still prefer to write my posts in Mousepad with a bit of Markdown and HTML as needed

There's not a single line JavaScript here and only has the bare minimum CSS

Show thread

@cypnk
Whoa! I have been writing static pages for 10 years now... I have to try this out...

@cypnk
Also, I need a direct line to your brain. You have rather me so many things just in the past week...

@herag I have my moments ;)

BTW, this was from my current experiment in trying to create a little editor plugin for my blog script

@cypnk pssh but visiting websites like that will hardly drain my battery at _all_!

@dredmorbius For a little bit. It's part of the HTML5 spec now and most browsers, including mobiles support it

developer.mozilla.org/en-US/do

I'm using it to write a little editor plugin for my blog (also because I'm extremely lazy :P)

@cypnk Sweet. Now /that's/ how it's supposed to be done!

@drwho Thanks! It just occurred to me I actually have to try hard to make something stylish. And trying hard is against my laziness principle 😂 Ironically that made it easier for me to use

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!