diff --git a/index.html b/index.html
index 8ff33d2..ef83778 100755
--- a/index.html
+++ b/index.html
@@ -7,15 +7,31 @@
Index page
-
-
+
+ const smallerNumber = signal(0);
+ const largerNumber = signal(0);
+
+ smallerNumber.watch(({ newValue, oldValue }) => {
+ return {
+ value: newValue >= largerNumber() ? largerNumber() - 1 : newValue,
+ }
+ }, { execution: 'beforeSet' });
+
+ smallerNumber.watch(({ newValue, oldValue }) => {
+ console.log(newValue, oldValue);
+ });
+
+ bind(select('#smaller'), { value: smallerNumber });
+ bind(select('#larger'), { value: largerNumber });
+ bind(select('#sum'), { text: [smallerNumber, largerNumber, () => largerNumber + smallerNumber]})
+ -->
@@ -25,8 +41,36 @@
}
+
+
+
+
-
+
-