By “hide” I mean it shows a button in the top-right, which when clicked, shows the full header bar.

Examples:

Please let me know if you run into any issues or have feedback 🙏

Edit: Also, for people who know some JavaScript, you can use the public generator list API to get generators with specific tags like this:

let data = await fetch(`https://perchance.org/api/getGeneratorList?tags=foo`).then(r => r.json()); // returns generators tagged 'foo'
let data = await fetch(`https://perchance.org/api/getGeneratorList?tags=foo,bar`).then(r => r.json()); // foo AND bar
  • @[email protected]OPM
    link
    fedilink
    English
    3
    edit-2
    20 days ago

    Also, since I know you’re interested in this sort of thing: Today I also removed the <div id="output-container"></div> inside the body to bring things closer to being “just HTML+JS+CSS”. So everything in the HTML editor goes directly into the <body>. For backwards compat, the <body> element has id="output-container", and beyond that there were only a few generators that had to be semi-manually fixed. Small improvement, but that was annoying me for a long time. The bigger and more painful task (in terms of ensuring backwards-compat) is that square block vs script tag escaping stuff 🥲

    • @[email protected]
      link
      fedilink
      English
      220 days ago

      Would be grateful if you could tweak the default styles to not apply to body, #output-container because that overrides a simple body selector it seems.