Skip to content

Commit b91b3f5

Browse files
committed
use ul tags
1 parent 890aaa2 commit b91b3f5

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

v0.3/handbook/libraries/stdlib.md

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -814,11 +814,11 @@ The canvas library is an interface for drawing graphics in the browser using the
814814
815815
<tr>
816816
<td>
817-
<ui>
817+
<ul>
818818
<li><strong>width</strong> - the width of the canvas in pixels</li>
819819
<li><strong>height</strong> - the height of the canvas in pixels</li>
820820
<li><strong>children</strong> - (optional) - paths are written as child records; while optional, without any children, the canvas will be blank</li>
821-
</ui>
821+
</ul>
822822
</td>
823823
<td><code>// creates a canvas tagged #my-canvas that is 160 pixels wide by 90 pixel tall
824824
```
@@ -838,7 +838,7 @@ commit
838838
839839
<tr>
840840
<td>
841-
<ui>
841+
<ul>
842842
<li><strong>fillStyle</strong> - (optional) - sets the color, gradient, or pattern used to fill the drawing; if undefined, the default is black</li>
843843
<li><strong>strokeStyle</strong> - (optional) - sets the color, gradient, or pattern used for the strokes; if undefined, the path will default to a black fill style</li>
844844
<li><strong>lineWidth</strong> - (optional) - sets the width of strokes in pixels; if undefined, the default is 1px</li>
@@ -857,7 +857,7 @@ commit
857857
</ul>
858858
</li>
859859
<li><strong>children</strong> - (optional) - each individual operation in the path is written as a child record; while optional, without any children, the canvas will be blank</li>
860-
</ui>
860+
</ul>
861861
</td>
862862
<td><code>// adds a #canvas/path to #my-canvas with a black stroke, a line width of 2 pixels and beveled corners
863863
```
@@ -884,10 +884,10 @@ commit
884884
885885
<tr>
886886
<td>
887-
<ui>
887+
<ul>
888888
<li><strong>x</strong> - the horizontal coordinate to move to, in pixels</li>
889889
<li><strong>y</strong> - the vertical coordinate to move to, in pixels</li>
890-
</ui>
890+
</ul>
891891
</td>
892892
<td><code>// creates a 100x100 canvas and moves the path 20 pixels right and 15 pixels down from the top left corner of the canvas without drawing a line
893893
```
@@ -909,10 +909,10 @@ commit
909909
910910
<tr>
911911
<td>
912-
<ui>
912+
<ul>
913913
<li><strong>x</strong> - the horizontal coordinate to move to, in pixels</li>
914914
<li><strong>y</strong> - the vertical coordinate to move to, in pixels</li>
915-
</ui>
915+
</ul>
916916
</td>
917917
<td><code>// draws a black line from the top left corner of a 100x100 canvas to the center
918918
```
@@ -934,14 +934,14 @@ commit
934934
935935
<tr>
936936
<td>
937-
<ui>
937+
<ul>
938938
<li><strong>cp1x</strong> - the x coordinate of the first control point</li>
939939
<li><strong>cp1y</strong> - the y coordinate of the first control point</li>
940940
<li><strong>cp2x</strong> - the x coordinate of the second control point</li>
941941
<li><strong>cp2y</strong> - the y coordinate of the second control point</li>
942942
<li><strong>x</strong> - the x coordinate of the end point</li>
943943
<li><strong>y</strong> - the y coordinate of the end point</li>
944-
</ui>
944+
</ul>
945945
</td>
946946
<td><code>// draws a red Bézier curve starting at (20, 25) and ending at (40, 50)
947947
```
@@ -964,12 +964,12 @@ commit
964964
965965
<tr>
966966
<td>
967-
<ui>
967+
<ul>
968968
<li><strong>cpx</strong> - the x coordinate of the control point</li>
969969
<li><strong>cpy</strong> - the y coordinate of the control point</li>
970970
<li><strong>y</strong> - the x coordinate of the end point</li>
971971
<li><strong>y</strong> - the y coordinate of the end point</li>
972-
</ui>
972+
</ul>
973973
</td>
974974
<td><code></code>
975975
</td>
@@ -985,14 +985,14 @@ commit
985985
986986
<tr>
987987
<td>
988-
<ui>
988+
<ul>
989989
<li><strong>y</strong> - the x coordinate of the center of the curve</li>
990990
<li><strong>y</strong> - the y coordinate of the center of the curve</li>
991991
<li><strong>radius</strong> - the radius of the curve in pixels</li>
992992
<li><strong>startAngle</strong> - the starting angle of the curve in radians</li>
993993
<li><strong>endAngle</strong> - the ending angle of the curve in radians</li>
994994
<li><strong>anticlockwise</strong> - (optional) - values can be true or false; true draws the arc counterclockwise, false draws the arc clockwise</li>
995-
</ui>
995+
</ul>
996996
</td>
997997
<td><code>// draws an arc that circumscribes ¾ of a 40 pixel-wide circle in the middle of the canvas
998998
```
@@ -1014,13 +1014,13 @@ commit
10141014
10151015
<tr>
10161016
<td>
1017-
<ui>
1017+
<ul>
10181018
<li><strong>x1</strong> - the x coordinate of the starting point of the curve</li>
10191019
<li><strong>y1</strong> - the y coordinate of the starting point of the curve</li>
10201020
<li><strong>x2</strong> - the x coordinate of the ending point of the curve</li>
10211021
<li><strong>y2</strong> - the y coordinate of the ending point of the curve</li>
10221022
<li>radius - the radius of the curve in pixels</li>
1023-
</ui>
1023+
</ul>
10241024
</td>
10251025
<td><code>// draws an arc that connects two perpendicular lines with a circular curve
10261026
```
@@ -1044,7 +1044,7 @@ commit
10441044
10451045
<tr>
10461046
<td>
1047-
<ui>
1047+
<ul>
10481048
<li><strong>y</strong> - the x coordinate of the center of the curve</li>
10491049
<li><strong>y</strong> - the y coordinate of the center of the curve</li>
10501050
<li><strong>radiusX</strong> - the horizontal radius of the curve</li>
@@ -1053,7 +1053,7 @@ commit
10531053
<li><strong>startAngle</strong> - the starting angle of the curve in radians</li>
10541054
<li><strong>endAngle</strong> - the ending angle of the curve in radians</li>
10551055
<li><strong>anticlockwise</strong> - (optional) - values can be true or false; true draws the arc counterclockwise, false draws the arc clockwise</li>
1056-
</ui>
1056+
</ul>
10571057
</td>
10581058
<td><code>// draws a green oval in the center of the canvas that is 20 pixels wide and 30 pixels high
10591059
```
@@ -1075,12 +1075,12 @@ commit
10751075
10761076
<tr>
10771077
<td>
1078-
<ui>
1078+
<ul>
10791079
<li><strong>y</strong> - the x coordinate of the upper left corner of the rectangle</li>
10801080
<li><strong>y</strong> - the y coordinate of the upper left corner of the rectangle</li>
10811081
<li><strong>width</strong> - the width of the rectangle in pixels</li>
10821082
<li><strong>height</strong> - the height of the rectangle in pixels</li>
1083-
</ui>
1083+
</ul>
10841084
</td>
10851085
<td><code>// draws a blue square with black borders in the middle of the canvas
10861086
```
@@ -1102,9 +1102,9 @@ commit
11021102
11031103
<tr>
11041104
<td>
1105-
<ui>
1105+
<ul>
11061106
<li>No arguments</li>
1107-
</ui>
1107+
</ul>
11081108
</td>
11091109
<td><code>// returns the path to (10, 10) from (20, 40) to create a triangle
11101110
```
@@ -1135,7 +1135,7 @@ The UI library provides a shorthand for adding standard HTML elements, as well a
11351135
11361136
<tr>
11371137
<td>
1138-
<ui>
1138+
<ul>
11391139
<li>the <code>#ui</code> tag supports the following html elements:
11401140
<ul>
11411141
<li><code>#ui/row</code></li>
@@ -1162,7 +1162,7 @@ The UI library provides a shorthand for adding standard HTML elements, as well a
11621162
<li><strong>#</strong> - (optional) - any other tags on the record will be applied to the element as classes</li>
11631163
<li><strong>class</strong> - (optional) defines one or more classes for the element</li>
11641164
<li>Other attributes - (optional) - other attribute-value pairs will be applied directly to the element for integration with existing JS libraries or debugging</li>
1165-
</ui>
1165+
</ul>
11661166
</td>
11671167
<td><code>// commits a div in the browser with the text “Hello world!”
11681168
```
@@ -1212,7 +1212,7 @@ commit
12121212
12131213
<tr>
12141214
<td>
1215-
<ui>
1215+
<ul>
12161216
<li> - (optional) - preset options for class are:
12171217
<ul>
12181218
<li>“inset” - an inset button style</li>
@@ -1225,7 +1225,7 @@ commit
12251225
<li><strong>text</strong> - (optional) - defines text in the button</li>
12261226
<li><strong>#</strong> - (optional) - any other tags on the record will be applied to the button as classes</li>
12271227
<li>Other attributes - (optional) - other attribute-value pairs will be applied directly to the button for integration with existing JS libraries or debugging</li>
1228-
</ui>
1228+
</ul>
12291229
</td>
12301230
<td><code></code>
12311231
</td>
@@ -1241,15 +1241,15 @@ commit
12411241
12421242
<tr>
12431243
<td>
1244-
<ui>
1244+
<ul>
12451245
<li><strong>completion</strong> - the list of possible responses, given as a subrecord with the attribute “text” whose value is the list; requires the use of a pipe in the #ui record if matching against multiple search records for one autocomplete field</li>
12461246
<li><strong>Note</strong>: Once an autocomplete option has been selected, #ui/autocomplete automatically gains a <strong>selected</strong> attribute whose value is the completion record; in the case of the example shown here, the <strong>selected</strong> attribute would be whichever <code>#state</code> record was chosen</li>
12471247
<li><strong>placeholder</strong> - (optional) - the placeholder text for the input field</li>
12481248
<li><strong>style</strong> - (optional) - specific CSS styles can be defined, but must be entered as a subrecord</li>
12491249
<li><strong>#</strong> - (optional) - any other tags on the record will be applied to the autocomplete as classes</li>
12501250
<li><strong>class</strong> - (optional) defines one or more classes for the autocomplete</li>
12511251
<li>Other attributes - (optional) - other attribute-value pairs will be applied directly to the autocomplete for integration with existing JS libraries or debugging</li>
1252-
</ui>
1252+
</ul>
12531253
</td>
12541254
<td><code>// creates an autocomplete form with the class “birth-state” and the placeholder “Which state were you born in?”, where the autocomplete options are the names of any #state records found
12551255
```
@@ -1277,9 +1277,9 @@ commit
12771277
12781278
<tr>
12791279
<td>
1280-
<ui>
1280+
<ul>
12811281
<li><strong>autocomplete</strong> - the autocomplete element to clear</li>
1282-
</ui>
1282+
</ul>
12831283
</td>
12841284
<td><code>// clears an autocomplete field if it loses focus
12851285
```
@@ -1303,9 +1303,9 @@ commit
13031303
13041304
<tr>
13051305
<td>
1306-
<ui>
1306+
<ul>
13071307
<li><strong>autocomplete</strong> - the autocomplete being opened</li>
1308-
</ui>
1308+
</ul>
13091309
</td>
13101310
<td><code>// changes the font color of the autocomplete input to red when the list is opened; the color will not revert once the menu is closed unless another block is specifically written to do so
13111311
```
@@ -1330,9 +1330,9 @@ commit
13301330
13311331
<tr>
13321332
<td>
1333-
<ui>
1333+
<ul>
13341334
<li><strong>autocomplete</strong> - the autocomplete being closed</li>
1335-
</ui>
1335+
</ul>
13361336
</td>
13371337
<td><code>// changes the font color of the autocomplete input to black when the list is closed; reverts the change in the example for #ui/event/open
13381338
```
@@ -1357,9 +1357,9 @@ commit
13571357
13581358
<tr>
13591359
<td>
1360-
<ui>
1360+
<ul>
13611361
<li><strong>autocomplete</strong> - the autocomplete being closed</li>
1362-
</ui>
1362+
</ul>
13631363
</td>
13641364
<td><code>// as a follow-up to the #ui/autocomplete example, this waits for the user to pick a birth state, then creates a new autocomplete tagged #birth-county to ask which county within that particular state the user was born in
13651365
```
@@ -1384,9 +1384,9 @@ commit
13841384
13851385
<tr>
13861386
<td>
1387-
<ui>
1387+
<ul>
13881388
<li><strong>autocomplete</strong> - the autocomplete whose input field changed</li>
1389-
</ui>
1389+
</ul>
13901390
</td>
13911391
<td><code>// when an autocomplete asking what the magic word is changes to the correct answer, adds the tag #magic-word to the autocomplete
13921392
```

0 commit comments

Comments
 (0)