For security reasons, almost all interactive elements (e.g. button) and javascript attributes (e.g. onclick) get sanitised when you save them to itch—depending on what they are, they either get deleted or converted to regular text. At the moment, the easy way to do this would be using details-summary widgets, like this (you'll need to style them yourself, though):
<details>
<summary>Click me...</summary>
<p>...and this text will appear.</p>
</details>
Sorry to hear, this option isn’t really good fot what I’m rtying to make… I couldn’t even place three of these widgets in a row, they always return to a column.
← Return to html demo
Comments
Log in with itch.io to leave a comment.
was helpful to see everything laid out like this, thanks (:
For security reasons, almost all interactive elements (e.g. button) and javascript attributes (e.g. onclick) get sanitised when you save them to itch—depending on what they are, they either get deleted or converted to regular text. At the moment, the easy way to do this would be using details-summary widgets, like this (you'll need to style them yourself, though):
Sorry to hear, this option isn’t really good fot what I’m rtying to make… I couldn’t even place three of these widgets in a row, they always return to a column.
This info is super helpful! It’s well-organized and the explanations are spot-on. Thanks for compiling this list!
Glad to hear it's been useful!
I just finished writing a blurb for my new game release, and the blurb became much more organized thanks to your tips! (> ω <)
This is a super nice set of functions that’s not obvious from itch’s own documentation.
Thank you!
Thank you so much! I finally got my itch page exactly how I wanted to be thanks to your guide. My respects man.
Glad to hear it!
This is really great, thank you
You're welcome!
Great idea, thanks for putting this together.
Thanks!