Skip to content

Commit

Permalink
Merge branch 'baseline' of https://github.com/bahrus/be-calculating i…
Browse files Browse the repository at this point in the history
…nto baseline
  • Loading branch information
bahrus committed Dec 6, 2024
2 parents 1b2e16f + f00c9f1 commit 1213e96
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ Other "built in" calculators are shown below:
|----------|-----------------------|
| + | Sums the args |
| * | Product of the args |
| max | Maximum f the args |
| max | Maximum of the args |
| min | Minimum of the args |

## Example 1b Multiplying

```html
<form>
<input type=range id=a name=a value=50>
+<input type=number id=b name=b value=25>
*<input type=number id=b name=b value=25>
=

<output name=result for="a b" 🧮=*></output>
Expand All @@ -52,8 +52,8 @@ Other "built in" calculators are shown below:

```html
<form>
<input type=range id=a name=a value=50>
+<input type=number id=b name=b value=25>
max( <input type=range id=a name=a value=50>
,<input type=number id=b name=b value=25>)
=

<output name=result for="a b" 🧮=max></output>
Expand Down Expand Up @@ -125,7 +125,7 @@ A framework or custom element host or local script element can attach a local ev
</label>
=

<output id=output name=result for="m x b" 🧮=linear></output>
<output id=output name=result for="m x b" 🧮></output>
</form>
<script>
output.addEventListener('be-calculating', e => e.r = e.f.m * e.f.x + e.f.b);
Expand Down Expand Up @@ -153,7 +153,7 @@ Suppose you want to create reusable logic, but confined to the (repeatedly clone
</script>
<form >
<input type=range id=a name=a value=50>
+<input type=number id=b name=b value=25>
^<input type=number id=b name=b value=25>
=
<output id=QkV8sbnus0SQPVBMxKuVLw name=result for="a b" 🧮></output>
</form>
Expand Down

0 comments on commit 1213e96

Please sign in to comment.