Commit graph

105 commits

Author SHA1 Message Date
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
53a5b95493
Add check for null in skooma as well 2022-03-26 12:36:39 +01:00
f6556d369a
Handle undefined arguments without crashing in skooma 2022-03-26 12:23:34 +01:00
ca600401ed Document listener 2022-03-17 09:49:57 +01:00
5e19b2d70f Add return values to listen and forget methods 2022-03-17 09:49:25 +01:00
07304c8cbd Rewrite listener 2022-03-16 16:45:48 +01:00
357af9342d
Add instance-map for element dollar-methods 2022-03-13 12:01:03 +01:00
8d9820cffe
Refactor element a bit 2022-03-12 19:51:33 +01:00
c3a19d7af8
Add insert and replace methods to element 2022-03-12 19:09:08 +01:00
70c702efc7
Add element helper 2022-03-10 05:59:59 +01:00
737fb6d155 Turn __raw into static listener.raw 2022-02-15 15:50:20 +01:00
a2d2b42c76
Refactor Better.js 2022-02-08 19:00:18 +01:00
550c917b08 Add "running" property to debounce wrapper 2022-02-08 15:27:55 +01:00
364ada6a45 Add cancellability to debounce wrapper 2022-02-08 15:21:41 +01:00
c0a9d7465d Add debounce.js 2022-02-08 14:50:32 +01:00
5512c955e5 Refactor CSS and add "style" function 2022-02-08 13:14:20 +01:00
7c6e231d09
Rework skooma.bind function 2022-02-06 12:56:54 +01:00
8697c168dc Improve documentation for skooma/bind 2022-01-14 11:57:21 +01:00
23f8a30af6 Make skooma/bind more robust 2022-01-14 11:56:15 +01:00
c9b85b112c
Add further documentation for skooma.js 2022-01-13 22:02:20 +01:00
b088905988 Add file-size to skooma.js introduction 2022-01-04 14:21:38 +01:00
085f014d9e Add Raleway font for page headings 2022-01-04 13:22:32 +01:00
4c7fe1bec9 Describe basic skooma features in webpage 2022-01-04 13:02:48 +01:00
ea7a0ad5a1
Add basic website for github pages 2022-01-01 13:09:56 +01:00
5f955416fe
Minor fix in use.js 2021-12-30 23:23:38 +01:00
47969d4c42
Extend skooma.text function to support template strings 2021-12-26 17:54:04 +01:00
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
b060b5eb09
Add listener.text helper 2021-12-26 17:49:17 +01:00
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
cabf557569 Split ImmediateSpeaker into separate class 2021-11-25 10:37:16 +01:00
738d6ca493 Officially add the initial state argument to speaker 2021-11-25 10:20:31 +01:00
d1c22234c3 Add the skooma bind function 2021-11-25 10:08:59 +01:00
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
8161b80081 Make the speaker retain its last spoken message 2021-11-25 10:04:27 +01:00
5036259d75 Add support for HTML elements to listener binding 2021-11-24 16:16:04 +01:00
945736b9a9 Add bind function to listener.js 2021-11-23 16:30:11 +01:00
658608a405 Add text wrapper to skooma.js 2021-11-23 16:27:25 +01:00
34cac3913f
Add use.whenReady function 2021-11-03 20:51:17 +01:00
797b6448c8 Add Use helper
This should finally solve the question of how to pull behaviour defined
in JS modules into static HTML without bending over backwards.
2021-11-02 18:38:02 +01:00
f209112f58
Add markdown file documenting css.js features 2021-10-19 20:37:04 +02:00
f5f3794006
Switch camel-to-kebab case convertion in v helper
Calling as a function will no longer do the transformation, but instead
indexing the proxy will do this now.
2021-10-19 20:37:04 +02:00
b5ab9fafdb
Remove CSS style function
This function had overlap with skooma.js and was thus removed.
Use skooma instead.
2021-10-19 20:37:04 +02:00
46220c927b
Fix typo error in css.js 2021-10-19 20:37:04 +02:00
f877be4806
Add $ and _ handling in CSS 2021-10-19 20:37:04 +02:00
13f8ba591a
Add __raw property to listener proxies 2021-10-19 20:37:04 +02:00
be61a88f55
Add examples for Speaker 2021-10-19 20:37:03 +02:00
649286dcdf
Fix bug in speaker 2021-10-19 20:37:03 +02:00
fbb9bea3c0
Add example to listener documentation 2021-10-19 20:36:59 +02:00
b28dd09709
Add old value as third parameter to listener callbacks 2021-10-19 18:08:22 +02:00
fd58f3b437
Add handle helper function to skooma 2021-10-05 19:28:36 +02:00