Commit Graph

121 Commits

Author SHA1 Message Date
Talia 52ec210fc6 Remove console.log from codeblock component 2022-06-09 13:47:31 +02:00
Talia f7f8b9a50b Switch filesize component from better to element 2022-06-09 13:47:09 +02:00
Talia 2799f0f2cc Add scroll-to-top button to pages 2022-06-09 13:46:42 +02:00
Talia 7d5cffcb79 Update website styling 2022-06-09 13:11:25 +02:00
Talia 761533fb39 Fix bug introduced in latest version 2022-04-28 09:11:11 +02:00
Talia cdc5978897
Document the handle helper 2022-04-12 22:44:53 +02:00
Talia f7b945c083
Document the empty constant 2022-04-12 22:41:10 +02:00
Talia f863ef3e7d
Document skooma SVG helper 2022-04-12 22:37:21 +02:00
Talia 77cf51f06d
Replace mechanism for creating customized built-in elements 2022-04-12 22:36:35 +02:00
Talia 2a4b7d88dd
Fix error in skooma 2022-04-12 22:35:44 +02:00
Talia fdc7fca7e7
Remove promise handling from skooma.js
This was really just feature creep and doesn't have to be part of
skooma. It could easily be implemented as an independent function or
module.
2022-04-06 00:40:37 +02:00
Talia 6b1eb69ba6
Document skooma dataset property 2022-04-06 00:40:15 +02:00
Talia b514fa638b
Document function arguments 2022-04-06 00:36:21 +02:00
Talia e56a9a164d Refactor pqueue and add more features 2022-03-31 16:17:41 +02:00
Talia 8ea23e620d Add pqueue helper (untested) 2022-03-31 15:36:48 +02:00
Talia cdaeac1a9f
Add mechanism for custom built-in elements
Note: Fuck Javascript
2022-03-26 14:14:07 +01:00
Talia 3724b3e25d
Add explicit empty value to skooma
Optional arguments in skooma can be very annoying at times:

	html.span("foo: ", may_return_undefined())

Skooma will produce a warning to inform the user that one of their
arguments is undefined as is is often unintended.
The new `empty` value provides a mechanism to explicitly ignore a single
argument, should it be optional

	html.span("foo: ", may_return_undefined() || empty)
2022-03-26 12:49:02 +01:00
Talia 53a5b95493
Add check for null in skooma as well 2022-03-26 12:36:39 +01:00
Talia f6556d369a
Handle undefined arguments without crashing in skooma 2022-03-26 12:23:34 +01:00
Talia ca600401ed Document listener 2022-03-17 09:49:57 +01:00
Talia 5e19b2d70f Add return values to listen and forget methods 2022-03-17 09:49:25 +01:00
Talia 07304c8cbd Rewrite listener 2022-03-16 16:45:48 +01:00
Talia 357af9342d
Add instance-map for element dollar-methods 2022-03-13 12:01:03 +01:00
Talia 8d9820cffe
Refactor element a bit 2022-03-12 19:51:33 +01:00
Talia c3a19d7af8
Add insert and replace methods to element 2022-03-12 19:09:08 +01:00
Talia 70c702efc7
Add element helper 2022-03-10 05:59:59 +01:00
Talia 737fb6d155 Turn __raw into static listener.raw 2022-02-15 15:50:20 +01:00
Talia a2d2b42c76
Refactor Better.js 2022-02-08 19:00:18 +01:00
Talia 550c917b08 Add "running" property to debounce wrapper 2022-02-08 15:27:55 +01:00
Talia 364ada6a45 Add cancellability to debounce wrapper 2022-02-08 15:21:41 +01:00
Talia c0a9d7465d Add debounce.js 2022-02-08 14:50:32 +01:00
Talia 5512c955e5 Refactor CSS and add "style" function 2022-02-08 13:14:20 +01:00
Talia 7c6e231d09
Rework skooma.bind function 2022-02-06 12:56:54 +01:00
Talia 8697c168dc Improve documentation for skooma/bind 2022-01-14 11:57:21 +01:00
Talia 23f8a30af6 Make skooma/bind more robust 2022-01-14 11:56:15 +01:00
Talia c9b85b112c
Add further documentation for skooma.js 2022-01-13 22:02:20 +01:00
Talia b088905988 Add file-size to skooma.js introduction 2022-01-04 14:21:38 +01:00
Talia 085f014d9e Add Raleway font for page headings 2022-01-04 13:22:32 +01:00
Talia 4c7fe1bec9 Describe basic skooma features in webpage 2022-01-04 13:02:48 +01:00
Talia ea7a0ad5a1
Add basic website for github pages 2022-01-01 13:09:56 +01:00
Talia 5f955416fe
Minor fix in use.js 2021-12-30 23:23:38 +01:00
Talia 47969d4c42
Extend skooma.text function to support template strings 2021-12-26 17:54:04 +01:00
Talia 4a473df213
Remove listener.bindContent function
Not only was this function really ugly and complicated to use, it also
does essentially the same as the new listener.text function.
2021-12-26 17:49:49 +01:00
Talia b060b5eb09
Add listener.text helper 2021-12-26 17:49:17 +01:00
Talia cf116753a8 Add current property to skooma bound elements
Elements bound witht he skooma bind function now get a `current`
property patched in.
2021-11-25 10:54:34 +01:00
Talia cabf557569 Split ImmediateSpeaker into separate class 2021-11-25 10:37:16 +01:00
Talia 738d6ca493 Officially add the initial state argument to speaker 2021-11-25 10:20:31 +01:00
Talia d1c22234c3 Add the skooma bind function 2021-11-25 10:08:59 +01:00
Talia f612273632 Rename bind to bindContent in listener.js
This is partly to avoid confusion with the skooma `bind` function,
but also to make it clearer that only the inner content of an element is
being bound to the listener.

This function may also disappear entirely in the future if it turns out
it doesn't provide any benefits over the skooma bind function.
2021-11-25 10:08:52 +01:00
Talia 8161b80081 Make the speaker retain its last spoken message 2021-11-25 10:04:27 +01:00