Go to file
Talia ca600401ed Document listener 2022-03-17 09:49:57 +01:00
page Document listener 2022-03-17 09:49:57 +01:00
better.js Refactor Better.js 2022-02-08 19:00:18 +01:00
css.js Refactor CSS and add "style" function 2022-02-08 13:14:20 +01:00
css.md Add markdown file documenting css.js features 2021-10-19 20:37:04 +02:00
debounce.js Add "running" property to debounce wrapper 2022-02-08 15:27:55 +01:00
element.js Add instance-map for element dollar-methods 2022-03-13 12:01:03 +01:00
index.html Document listener 2022-03-17 09:49:57 +01:00
license Initial commit 🎊 2020-10-27 16:28:02 +01:00
listener.js Add return values to listen and forget methods 2022-03-17 09:49:25 +01:00
listener.md Document listener 2022-03-17 09:49:57 +01:00
readme.md Add element helper 2022-03-10 05:59:59 +01:00
skooma.js Refactor CSS and add "style" function 2022-02-08 13:14:20 +01:00
skooma.md Extend skooma.text function to support template strings 2021-12-26 17:54:04 +01:00
speaker.js Split ImmediateSpeaker into separate class 2021-11-25 10:37:16 +01:00
speaker.md Split ImmediateSpeaker into separate class 2021-11-25 10:37:16 +01:00
storage.js Add ObjectStorage object implementing Storage API 2021-09-20 11:39:29 +02:00
template.js Add comments documenting what stuff does 2021-06-23 16:21:33 +02:00
ulid.js Add simple ULID generator 2021-09-20 20:48:55 +02:00
use.js Minor fix in use.js 2021-12-30 23:23:38 +01:00
use.md Add use.whenReady function 2021-11-03 20:51:17 +01:00

readme.md

DarkWiiPlayer/JS

A collection of general-purpose Javascript snippets/modules that I end up copy-pasting around more often than necessary.


So what does it all do?

Better

an "improved" version of the builtin HTMLElement that's hopefully a lot easier to build actual things with. It's really just another utility layer.

Element

the second iteration of improved HTMLElement but this time in a function to support inheriting from other classes for extending builtin elements.

CSS

Generate CSS from JS objects. Yes, you can generate CSS from JSON now. Or from YAML. Or from whatever you want, really.

Listener

A proxy object that fires a callback when certain (or all) properties are changed.

Speaker

Simple messaging helper that uses microtasks by default.

Skooma

Generate HTML and SVG DOM nodes more easily and do stuff with them. Feels like an in-between of using a templating language and writing lisp code. Overall very recommendable.

Template

Turns template literals directly into HTML templates. Just read the code, it's like 5 lines or so.

Storage

Currently a sngle class ObjectStorage implementing the API of the Storage class using a plain JS Map as backend. This is mostly meant as a page-local fallback to LocalStorage and SessionStorage