No description
Find a file
2021-08-18 11:25:32 +02:00
better.js Rework attribute handling in Better 2021-08-03 16:32:19 +02:00
css.js Add CSS variable helper function 2021-08-18 11:25:32 +02:00
license Initial commit 🎊 2020-10-27 16:28:02 +01:00
listener.js Add comments documenting what stuff does 2021-06-23 16:21:33 +02:00
readme.md Add description of what everything does to readme. 2021-08-16 19:40:03 +02:00
skooma.js Fix typo in skooma 2021-08-16 19:26:45 +02:00
template.js Add comments documenting what stuff does 2021-06-23 16:21:33 +02:00

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.

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.

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.