From 8bff408d2ce5b415217232f0e8f44d9dff0367b8 Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Mon, 1 Jan 2024 11:38:26 +0100 Subject: Add a new "js-foot-space" div in the footer, for use by JavaScript. --- org/madore/damlengine/TodoFooter.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/org/madore/damlengine/TodoFooter.java b/org/madore/damlengine/TodoFooter.java index 9cb7742..4bdbb41 100644 --- a/org/madore/damlengine/TodoFooter.java +++ b/org/madore/damlengine/TodoFooter.java @@ -22,6 +22,11 @@ public final class TodoFooter extends TodoElement { Element hr = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "hr"); footer.appendChild(hr); footer.appendChild(ctx.doc.createTextNode("\n")); + Element jsFootSpace = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "div"); + footer.appendChild(jsFootSpace); + footer.appendChild(ctx.doc.createTextNode("\n")); + jsFootSpace.setAttributeNS(null, "id", "js-foot-space"); + jsFootSpace.appendChild(ctx.doc.createComment(" To be filled by JavaScript ")); Element addr = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "address"); footer.appendChild(addr); footer.appendChild(ctx.doc.createTextNode("\n")); -- cgit v1.2.3