Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
21
Task/Create-an-HTML-table/Arturo/create-an-html-table.arturo
Normal file
21
Task/Create-an-HTML-table/Arturo/create-an-html-table.arturo
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
table: function [content]
|
||||
-> join @["<table>" join @content "</table>"]
|
||||
|
||||
header: function [cells] -> join @["<tr>" join @cells "</tr>"]
|
||||
th: function [lbl] -> join @["<th>" lbl "</th>"]
|
||||
row: function [no]
|
||||
-> join @[
|
||||
"<tr><td style='font-weight:bold'>" no "</td>"
|
||||
"<td>" random 1000 9999 "</td>"
|
||||
"<td>" random 1000 9999 "</td>"
|
||||
"<td>" random 1000 9999 "</td></tr>"
|
||||
]
|
||||
|
||||
print table [
|
||||
header [th"" th"X" th"Y" th"Z"]
|
||||
row 1
|
||||
row 2
|
||||
row 3
|
||||
row 4
|
||||
row 5
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue