From f9b10d0d63dd9cb4904e60e99c12e9428ea32b4a Mon Sep 17 00:00:00 2001 From: totoro Date: Fri, 3 Apr 2020 12:29:54 +0900 Subject: [PATCH] add hidden HTML tag --- web/CXM_making_a_web_site.anubis | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/web/CXM_making_a_web_site.anubis b/web/CXM_making_a_web_site.anubis index 091baeb..39ce292 100644 --- a/web/CXM_making_a_web_site.anubis +++ b/web/CXM_making_a_web_site.anubis @@ -1447,6 +1447,11 @@ public define HTML_Off_Form iframe(String src) public define HTML_Off_Form input(List(CoreAttrs) attrs) = html_void_tag("input", attrs). public define HTML_Off_Form input(CoreAttrs attr) = html_void_tag("input", [attr]). +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]). +public define HTML_Off_Form hidden(CoreAttrs attr, String name, String value, String form) = hidden([attr], name, value, form). +public define HTML_Off_Form hidden(String name, String value, String form) = hidden([], name, value, form). + + // public define HTML_Off_Form img(List(CoreAttrs) attrs, String src, String alt) = html_void_tag("img", attrs + [attr("src",src), attr("alt",alt)] ). public define HTML_Off_Form img(CoreAttrs _attr, String src, String alt) = html_void_tag("img", [_attr, attr("src",src), attr("alt",alt)] ). -- libgit2 0.21.4