this post was submitted on 04 Jun 2024
2 points (75.0% liked)

Casual Perchance

87 readers
1 users here now

Casual Perchance

A nonspecific casual place for anything Perchance, including generator outputs, memes, prompts, casual discussion, advertising your generator, and anything else you wouldn't post in the more technical Perchance Forum.

This is where to post Community Events.

Resources:


Rules:

founded 8 months ago
MODERATORS
2
submitted 5 months ago* (last edited 5 months ago) by VioneT to c/casual_perchance
 

Importables

Do you have ideas for lists, plugins, or templates that can be used by others? Now is the time to create it! 'Importables' Generator Jam!

Useful Generators, Plugins, HTML Widgets, CSS Styles. Generators that can be imported to other generators!

When: June 10, 2024 12:00PM UTC to June 28, 2024 12:00PM UTC

Thank you NecoBridge for the theme suggestion!

Perchance Data

// This Part is Required for the Perchance Hub
// This would be where the Event Organizer would change the data to update the Hub
// Remember to indent with two spaces!

// List About the Event to be displayed on the Hub
metadata
  title = Importables
  description = Do you have ideas for lists, plugins, or templates that can be used by others? Now is the time to create it! 'Importables' Generator Jam!
  type = Generator Jam
  image
    https://lemmy.world/pictrs/image/e5a38895-65b6-468e-80f7-e2a1fa609c30.png
    // Can be multiple pictures to randomize the banner image :)
  start = 10 June 2024 12:00:00 UTC+0000 // strict data formats see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse#non-standard_date_strings
  end = 28 June 2024 12:00:00 UTC+0000
  color = linear-gradient(231deg, hsl(127 0% 61%), hsl(201 17% 31%))
  rules = Create Generators that can be imported! Plugins, Lists, HTML Templater, CSS Styles

// For Generator Jams with Perchance URL
generators
  // The generator's $metadata is also parsed
  simple-toc-plugin
    author = Vionet20
    type = plugin
  rainbow-plugin2
    author = thatOnePerchanceGuy
    type = plugin
  no-reason-js
    author = thatOnePerchanceGuy
    type = plugin

  power-rain-plugin
    author = Bluepower
    type = plugin
  perchance-author
    author = Eatham
    type = plugin

// For Image Events
images		
	

// You can request a format of other events just ask on the forum!

you are viewing a single comment's thread
view the rest of the comments
[–] VioneT 3 points 5 months ago

A fairly simple nested and collapsible Table of Contents plugin: https://perchance.org/simple-toc-plugin

It is created with <details> element so it can be collapsible. It also has the option to scroll into view the clicked section (although there isn't a scroll to top). Another option is to pass through a url parameter (section) or through a hash.