Commit f9b10d0d63dd9cb4904e60e99c12e9428ea32b4a
1 parent
ec90cdf7
add hidden HTML tag
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
web/CXM_making_a_web_site.anubis
| @@ -1447,6 +1447,11 @@ public define HTML_Off_Form iframe(String src) | @@ -1447,6 +1447,11 @@ public define HTML_Off_Form iframe(String src) | ||
| 1447 | public define HTML_Off_Form input(List(CoreAttrs) attrs) = html_void_tag("input", attrs). | 1447 | public define HTML_Off_Form input(List(CoreAttrs) attrs) = html_void_tag("input", attrs). |
| 1448 | public define HTML_Off_Form input(CoreAttrs attr) = html_void_tag("input", [attr]). | 1448 | public define HTML_Off_Form input(CoreAttrs attr) = html_void_tag("input", [attr]). |
| 1449 | 1449 | ||
| 1450 | +public define HTML_Off_Form hidden(List(CoreAttrs) attrs, String name, String value, String form) = input([attr("type","hidden"), attr("name",name), attr("value",value), attr("form", form) . attrs]). | ||
| 1451 | +public define HTML_Off_Form hidden(CoreAttrs attr, String name, String value, String form) = hidden([attr], name, value, form). | ||
| 1452 | +public define HTML_Off_Form hidden(String name, String value, String form) = hidden([], name, value, form). | ||
| 1453 | + | ||
| 1454 | + | ||
| 1450 | // <img> | 1455 | // <img> |
| 1451 | public define HTML_Off_Form img(List(CoreAttrs) attrs, String src, String alt) = html_void_tag("img", attrs + [attr("src",src), attr("alt",alt)] ). | 1456 | public define HTML_Off_Form img(List(CoreAttrs) attrs, String src, String alt) = html_void_tag("img", attrs + [attr("src",src), attr("alt",alt)] ). |
| 1452 | public define HTML_Off_Form img(CoreAttrs _attr, String src, String alt) = html_void_tag("img", [_attr, attr("src",src), attr("alt",alt)] ). | 1457 | public define HTML_Off_Form img(CoreAttrs _attr, String src, String alt) = html_void_tag("img", [_attr, attr("src",src), attr("alt",alt)] ). |