diff --git a/types/version.anubis b/types/version.anubis
index 8f9c612..6ebe1ff 100644
--- a/types/version.anubis
+++ b/types/version.anubis
@@ -20,10 +20,10 @@ public define Maybe(Version) to_Version(String version_string).
public define Version
version(
- Word8 a,
- Word8 b,
- Word8 c,
- Word8 d
+ Word8 a, //major
+ Word8 b, //minor
+ Word8 c, //release
+ Word8 d //user defined
)=
version( word32(word16(d, c), word16(b, a)))
diff --git a/version.anubis b/version.anubis
new file mode 100644
index 0000000..d1be51f
--- /dev/null
+++ b/version.anubis
@@ -0,0 +1,10 @@
+/*
+ * Created by PyramIDE.
+ * User: フランスのトトロ aka (David RENÉ)
+ * Date: 26/04/2026
+ * Time: 23:08
+ * © David RENÉ
+ */
+
+
+public define String __xlib_version__ = "1.19.1.0".
diff --git a/web/HTML5/to_String.anubis b/web/HTML5/to_String.anubis
new file mode 100644
index 0000000..a1e0a67
--- /dev/null
+++ b/web/HTML5/to_String.anubis
@@ -0,0 +1,12 @@
+/*
+ * Created by PyramIDE.
+ * User: フランスのトトロ aka (David RENÉ)
+ * Date: 26/04/2026
+ * Time: 16:49
+ * © David RENÉ
+ */
+
+read ../types/HTML5.anubis
+
+
+
diff --git a/web/controllers_web_site.anubis b/web/controllers_web_site.anubis
index 75cbe60..0827e30 100644
--- a/web/controllers_web_site.anubis
+++ b/web/controllers_web_site.anubis
@@ -15,6 +15,7 @@
read system/logger.anubis
read tools/printable_tree.anubis
+read xlib/version.anubis
transmit xlib/web/cookies.anubis
transmit xlib/web/web_session.anubis
@@ -146,12 +147,12 @@ define HTTP_Answer
(
// list of body options
[
- background_color(rgb(255,200,200))
+ //background_color(rgb(255,200,200))
],
// content of page
sequence([
- pre("Anubis Web Server - eXtended Lib v1.19.0.0 - Anubis language v1.19"),
+ pre("Anubis Web Server - eXtended Lib "+__xlib_version__+" - Anubis language v1.19"),
pre("Error "+to_String(http_status)),
pre("Internal message :"+message),
br,
diff --git a/web/jQuery/jq_animate.anubis b/web/jQuery/jq_animate.anubis
index d5cdbed..5d8bdd2 100644
--- a/web/jQuery/jq_animate.anubis
+++ b/web/jQuery/jq_animate.anubis
@@ -213,7 +213,7 @@ define JQueryFormattedAnimation
) =
with css_props_as_json_members = animatables_to_json_members(styles),
easing_str = format_easing(type),
- trigger_str = event_name(trigger),
+ trigger_str = to_String(trigger),
id_str = if id is id(id_str) then id_str,
diff --git a/web/making_a_web_site.anubis b/web/making_a_web_site.anubis
index a1a29db..890505d 100644
--- a/web/making_a_web_site.anubis
+++ b/web/making_a_web_site.anubis
@@ -1338,6 +1338,80 @@ url,
week
.
+public define String
+ to_String
+ (
+ Input_Type type
+ )=
+ if type is
+ {
+ button then "button",
+ checkbox then "checkbox",
+ color then "color",
+ date then "date",
+ datetime_local then "datetime_local",
+ email then "email",
+ file then "file",
+ hidden then "hidden",
+ image then "image",
+ month then "month",
+ number then "number",
+ password then "password",
+ radio then "radio",
+ range then "range",
+ reset then "reset",
+ search then "search",
+ submit then "submit",
+ tel then "tel",
+ text then "text",
+ time then "time",
+ url then "url",
+ week then "week"
+ }
+.
+
+define Printable_tree
+ add_js_files_attributes
+ (
+ List(JS_Attribute) l
+ ) =
+ if l is
+ {
+ [ ] then [ ],
+ [h . t] then
+ [ " " + to_String(h)
+ . add_js_files_attributes(t)]
+ }
+.
+
+
+define Printable_tree
+ add_js_files
+ (
+ List(JS_File) l
+ ) =
+ if l is
+ {
+ [ ] then [ ],
+ [h . t] then
+ [ ["\n"
+ . add_js_files(t)] ]
+ }
+.
+
+define Printable_tree
+ add_script
+ (
+ List(Script) l
+ ) =
+ if l is
+ {
+ [ ] then [ ],
+ [h . t] then [ "\n" . add_script(t) ]
+ }.
+
public type FormMethod:
get,
post
@@ -1359,7 +1433,7 @@ public define CoreAttrs action(WEB_Action_Name action)= attr("action", "/"+forma
public define CoreAttrs action(WEB_Action_Name action, List((String,String)) extra_ops)= attr("action", "/"+format_web_action_name(action, extra_ops)).
public define CoreAttrs formmethod(String value) = attr("formmethod", value).
public define CoreAttrs form(String value) = attr("form", value).
-
+public define CoreAttrs for(String value) = attr("for", value).
public define HTML_Off_Form text(List(CoreAttrs) attrs, Int i) = text(attrs, to_decimal(i)).
@@ -1373,12 +1447,15 @@ public define HTML_Off_Form a(List(CoreAttrs) attrs, A_href _href)
public define HTML_Off_Form a(List(CoreAttrs) attrs, A_href _href, HTML_Off_Form content) = a(attrs, _href, _self, [content]).
public define HTML_Off_Form a(List(CoreAttrs) attrs, A_href _href, List(HTML_Off_Form) content) = a(attrs, _href, _self, content).
public define HTML_Off_Form a(A_href _href, HTML_Off_Form content) = a([], _href, _self, [content]).
+public define HTML_Off_Form a(A_href _href, String _text) = a([], _href, _self, [text(_text)]).
public define HTML_Off_Form a(A_href _href, List(HTML_Off_Form) content) = a([], _href, _self, content).
public define HTML_Off_Form a(List(CoreAttrs) attrs, A_href _href, A_target _target, HTML_Off_Form content) = a(attrs, _href, _target, [content]).
public define HTML_Off_Form a(CoreAttrs attr, A_href _href, A_target _target, HTML_Off_Form content) = a([attr], _href, _target, [content]).
public define HTML_Off_Form a(A_href _href, A_target _target, HTML_Off_Form content) = a([], _href, _target, [content]).
public define HTML_Off_Form a(A_href _href, A_target _target, List(HTML_Off_Form) content) = a([], _href, _target, content).
public define HTML_Off_Form a(CoreAttrs attr, A_href _href, A_target _target, List(HTML_Off_Form) content) = a([attr], _href, _target, content).
+public define HTML_Off_Form a(CoreAttrs attr, A_href _href, List(HTML_Off_Form) content) = a([attr], _href, _self, content).
+public define HTML_Off_Form a(CoreAttrs attr, A_href _href, HTML_Off_Form content) = a([attr], _href, _self, [content]).
//
public define HTML_Off_Form article(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("article", attrs, content).
@@ -1511,7 +1588,9 @@ public define HTML_Off_Form header(HTML_Off_Form content)
//