Chat Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining MelonLand?
May 14, 2026 - @396.99 (what is this?)
Activity rating: Four Stars Posts & Arts: 62/1k.beats Random | Recent Posts | Guild Recents
News: :ha: :pc: Hello Melonland! :pc: :happy: Guild Events: Spring Themed Projects

+  MelonLand Forum
|-+  Life & The Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  gallery.js alt text?


« previous next »
Pages: [1] Print Embed
Author Topic: gallery.js alt text?  (Read 453 times)
buggle404
Newbie ⚓︎
*
View Profile WWW


plural (they/them)
⛺︎ My Room

Artifacts:
Joined 2026!
« on: May 10, 2026 @810.38 » Embed

How to add alt text to images on this gallery template? If it is impossible, does anyone have recommendations for other gallery templates?
https://metemo.neocities.org/do_gallery/
Logged
Dan Q
Hero Member ⚓︎
*****
View Profile WWWArt


I have no idea what I am doing
⛺︎ My Room
RSS: RSS

Guild Memberships:
« Reply #1 on: May 10, 2026 @856.75 » Embed

Gotta say, I'm not a big fan of that gallery!

It uses JavaScript, but then requires a full page reload to do search? Why!

Don't know what else is out there, but there's got to be something better, surely! If not, I'd be happy to throw a skeleton together to try to help you find something more-like what you want.
Logged

https://danq.me/_q26t/badges/dan-q-88x31-lighter.gif https://danq.me/_q26t/badges/dan-q-88x31-peekaboo-scroller.gif https://beige-buttons.danq.dev/beige-buttons-88x31.gif https://embed-html.danq.dev/embed-html-88x31.gif

Artifact Swap: I met Dan Q on Melonland!PolyamorousBouncy Egg!Joined 2025!Lurby
buggle404
Newbie ⚓︎
*
View Profile WWW


plural (they/them)
⛺︎ My Room

Artifacts:
Joined 2026!
« Reply #2 on: May 10, 2026 @864.31 » Embed

[Cassie] I really liked the tagging system for it, but it would be nice to have something that still loads images without javascript. I am not opposed to using javascript, but it probably should be an extra feature on a static site, rather than a core feature. A skeleton would be appreciated ✌️
Logged
Dan Q
Hero Member ⚓︎
*****
View Profile WWWArt


I have no idea what I am doing
⛺︎ My Room
RSS: RSS

Guild Memberships:
« Reply #3 on: May 10, 2026 @881.08 » Embed

What're the features you're looking for from it?
Logged

https://danq.me/_q26t/badges/dan-q-88x31-lighter.gif https://danq.me/_q26t/badges/dan-q-88x31-peekaboo-scroller.gif https://beige-buttons.danq.dev/beige-buttons-88x31.gif https://embed-html.danq.dev/embed-html-88x31.gif

Artifact Swap: I met Dan Q on Melonland!PolyamorousBouncy Egg!Joined 2025!Lurby
buggle404
Newbie ⚓︎
*
View Profile WWW


plural (they/them)
⛺︎ My Room

Artifacts:
Joined 2026!
« Reply #4 on: May 10, 2026 @895.23 » Embed

[Eddie] Display images in a grid (mobile-accessible) with alt text, and a space for us to tag which of our headmates drew the piece and when. Thank you!
Logged
Dan Q
Hero Member ⚓︎
*****
View Profile WWWArt


I have no idea what I am doing
⛺︎ My Room
RSS: RSS

Guild Memberships:
« Reply #5 on: May 11, 2026 @459.83 » Embed

Okay, here's how I'd do it! (Very basic for now, but I'm happy to turn this into a page with a demo and everything if you want.)

Try it out

I've hacked-together a demo of what I think you want, at: https://dan-q.codeberg.page/buggle-gallery/. Go there, and:

1. Try using the "Artist" dropdown to filter to which artist made a particular picture. Note that if two artists are credits, it still shows up if you select one of them.
2. Try searching for a keyword in the box like "color", "animals", or "rain".
3. Try sorting by title or rating.
4. Note that the change happens instantly (no page refresh), but the address bar still gets updated (so you can share or link to pre-filtered/sorted lists)

Use it!

Full instructions on using it can be found here, but the important bit is:

1. Download this JS file and put it on your site; I'd suggest calling it 'buggle-gallery.js'.
2. Include it with a line like <script type="module" src="buggle-gallery.js"></script> (ideally in your <head>)
3. Add some basic CSS to lay it out nicely: here's a starter.
4. Add your gallery like this:


Code
<buggle-gallery>
  <form>
    <!-- if you want FILTERS, add a <form> with elements whose name="..." says what to filter on -->
    <label for="artist">Artist:</label>
    <select id="artist" name="artist">
      <option value="">All</option>
      <option value="Alice">Alice</option>
      <option value="Bob">Bob</option>
    </select>

    <!-- FILTERS can be any field type, including free text: -->
    <label for="subject">Subject:</label>
    <input type="text" id="subject" name="subject" placeholder="animals,colors,spiders,rain,philosophy...">

    <!-- if you want SORTING, add a <select name="sort"> whose <option value="..."> specifies the attribute to sort by -->
    <label for="sort">Sort by:</label>
    <select id="sort" name="sort">
      <option value="">Unsorted</option>
      <option value="title">Title (A-Z)</option>
      <!-- for reverse-sorting, use data-sort-direction="desc" -->
      <option value="title" data-sort-direction="desc">Title (Z-A)</option>
      <option value="artist">Artist</option>
      <!-- for numeric sorting, use data-sort-as="number" -->
      <option value="rating" data-sort-as="number" data-sort-direction="desc">Rating</option>
    </select>
  </form>

  <!-- you MUST have a <ul> or <ol> to list your gallery items (you can CSS style it to not look "like a list") -->
  <ul>

    <!-- each <li> has data-... attributes to show what it can be FILTERED or SORTED on -->
    <li data-artist="Alice" data-subject="colors" data-rating="5" data-title="Image One">
      <!-- if you're using <img>s, be sure to set loading="lazy" so you don't burn visitor bandwidth preloading all the hidden ones! -->
      <img loading="lazy" src="https://placehold.co/300x200/pink/blue?text=Image+One" alt="First image">
      <h3>Image One</h3>
      <p>Artist: Alice</p>
      <p>Pink and blue will never do. Maybe this one should have been yellow?</p>
    </li>

    <!-- a data-... attribute can have multiple values separated by commas: -->
    <li data-artist="Bob,Alice" data-subject="philosophy,colors" data-rating="2" data-title="Image Four">
      <img loading="lazy" src="https://placehold.co/300x200/orange/cyan?text=Image+Four" alt="Fourth image">
      <h3>Image Four</h3>
      <p>Artist: Bob</p>
      <p>This picture speaks to me of the fundamental nature of the universe. Or the orange bits, at least. One of my two least-favorite images.</p>
    </li>

    <!-- just keep adding items until your gallery's complete! -->
  </ul>
</buggle-gallery>

Hopefully that's useful to you (and maybe to others: I could turn it into something more-generic quite easily). Good luck!
Logged

https://danq.me/_q26t/badges/dan-q-88x31-lighter.gif https://danq.me/_q26t/badges/dan-q-88x31-peekaboo-scroller.gif https://beige-buttons.danq.dev/beige-buttons-88x31.gif https://embed-html.danq.dev/embed-html-88x31.gif

Artifact Swap: I met Dan Q on Melonland!PolyamorousBouncy Egg!Joined 2025!Lurby
Pages: [1] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | ~ Send Feedback ~ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi

MelonLand Nav

@000

Want to Login or Join ?

Minecraft: Online
Join: craft.melonking.net