Commit 358bd56091c35145e2433c1cd12c64e223fd0a42

Authored by David RENÉ
1 parent 6df60761

[+] add html_tag <canvas> in many form

Showing 1 changed file with 17 additions and 0 deletions   Show diff stats
web/making_a_web_site.anubis
... ... @@ -1351,6 +1351,23 @@ public define HTML_Off_Form button(List(CoreAttrs) attrs)
1351 1351 public define HTML_Off_Form button(List(HTML_Off_Form) content) = html_tag("button", [], content).
1352 1352 public define HTML_Off_Form button(HTML_Off_Form content) = html_tag("button", [], [content]).
1353 1353  
  1354 + // <canvas>
  1355 +public define HTML_Off_Form canvas(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("canvas", attrs, content).
  1356 +public define HTML_Off_Form canvas(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("canvas", attrs, [content]).
  1357 +public define HTML_Off_Form canvas(CoreAttrs attr, List(HTML_Off_Form) content) = html_tag("canvas", [attr], content).
  1358 +public define HTML_Off_Form canvas(CoreAttrs attr, HTML_Off_Form content) = html_tag("canvas", [attr], [content]).
  1359 +public define HTML_Off_Form canvas(List(CoreAttrs) attrs) = html_tag("canvas", attrs, []).
  1360 +public define HTML_Off_Form canvas(List(HTML_Off_Form) content) = html_tag("canvas", [], content).
  1361 +public define HTML_Off_Form canvas(HTML_Off_Form content) = html_tag("canvas", [], [content]).
  1362 +public define HTML_Off_Form canvas(CoreAttrs cattr, Int width, Int height) = html_tag("canvas", [cattr,
  1363 + attr("width", to_String(width)),
  1364 + attr("height", to_String(height))
  1365 + ], []).
  1366 +public define HTML_Off_Form canvas(List(CoreAttrs) attrs, Int width, Int height) = html_tag("canvas", [
  1367 + attr("width", to_String(width)),
  1368 + attr("height", to_String(height)).
  1369 + attrs
  1370 + ], []).
1354 1371 // <datalist>
1355 1372 public define HTML_Off_Form datalist(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("datalist", attrs, content).
1356 1373 public define HTML_Off_Form datalist(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("datalist", attrs, [content]).
... ...