Skip to main content

Gallery Variable Names

The code for rendering user galleries is very complex. Some details here in case I forget them (as has happened before...)

Element ID standards

${prefix}gallery-image-${elementName}-${userArtworkID}
  • Prefix: a prefix defined for a given gallery. The default gallery has an empty string prefix; other galleries have prefixes to allow them to be distinguished from the default gallery, such as album galleries.

  • Element name: the name of the element, such as nsfw-overlay or similar.

  • User artwork ID: the internal ID of the artwork, i.e. an integer.

Dynamic resizing

Event Propagation

Stopping event propagation is enabled on some elements, to prevent clicks on e.g. an NSFW overlay heading to the artwork link.