diff options
Diffstat (limited to 'org/madore/damlengine/TodoFooter.java')
-rw-r--r-- | org/madore/damlengine/TodoFooter.java | 51 |
1 files changed, 38 insertions, 13 deletions
diff --git a/org/madore/damlengine/TodoFooter.java b/org/madore/damlengine/TodoFooter.java index dffe7f6..cace28c 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")); @@ -38,37 +43,57 @@ public final class TodoFooter extends TodoElement { addr.appendChild(ctx.doc.createTextNode(" (")); Element email = ctx.doc.createElementNS(DamlEngine.DAML_NS, "d:email-despammed"); addr.appendChild(email); - email.appendChild(ctx.doc.createTextNode("david+www")); + email.appendChild(ctx.doc.createTextNode("david")); + email.appendChild(ctx.doc.createElementNS(DamlEngine.DAML_NS, "d:email-plus")); + email.appendChild(ctx.doc.createTextNode("www")); email.appendChild(ctx.doc.createElementNS(DamlEngine.DAML_NS, "d:email-at")); email.appendChild(ctx.doc.createTextNode("madore")); email.appendChild(ctx.doc.createElementNS(DamlEngine.DAML_NS, "d:email-dot")); email.appendChild(ctx.doc.createTextNode("org")); + addr.appendChild(ctx.doc.createElementNS(DamlEngine.XHTML_NS, "wbr")); addr.appendChild(ctx.doc.createTextNode("|")); a = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "a"); - a.setAttributeNS(null, "href", "https://plus.google.com/+davidamadore"); + a.setAttributeNS(null, "href", + ((ctx.gc.uriToTop==null)?"http://www.madore.org/~david/" + :ctx.gc.uriToTop) + "ego.html"); a.setAttributeNS(null, "rel", "author"); addr.appendChild(a); - a.appendChild(ctx.doc.createTextNode("Google+")); + a.appendChild(ctx.doc.createTextNode("\u2042")); + // addr.appendChild(ctx.doc.createElementNS(DamlEngine.XHTML_NS, "wbr")); + // addr.appendChild(ctx.doc.createTextNode("|")); + // a = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "a"); + // a.setAttributeNS(null, "href", "https://plus.google.com/+davidamadore"); + // a.setAttributeNS(null, "rel", "author"); + // addr.appendChild(a); + // a.appendChild(ctx.doc.createTextNode("Google+")); + addr.appendChild(ctx.doc.createElementNS(DamlEngine.XHTML_NS, "wbr")); addr.appendChild(ctx.doc.createTextNode("|")); a = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "a"); - a.setAttributeNS(null, "href", "https://twitter.com/gro_tsen/"); - a.setAttributeNS(null, "rel", "author"); + a.setAttributeNS(null, "href", "https://twitter.com/gro_tsen"); + a.setAttributeNS(null, "rel", "me"); addr.appendChild(a); a.appendChild(ctx.doc.createTextNode("Twitter")); + addr.appendChild(ctx.doc.createElementNS(DamlEngine.XHTML_NS, "wbr")); addr.appendChild(ctx.doc.createTextNode("|")); a = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "a"); - a.setAttributeNS(null, "href", "http://www.facebook.com/grotsen"); - a.setAttributeNS(null, "rel", "author"); + a.setAttributeNS(null, "href", "https://bsky.app/profile/gro-tsen.bsky.social"); + a.setAttributeNS(null, "rel", "me"); addr.appendChild(a); - a.appendChild(ctx.doc.createTextNode("Facebook")); + a.appendChild(ctx.doc.createTextNode("Bluesky")); + addr.appendChild(ctx.doc.createElementNS(DamlEngine.XHTML_NS, "wbr")); addr.appendChild(ctx.doc.createTextNode("|")); a = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "a"); - a.setAttributeNS(null, "href", - ((ctx.gc.uriToTop==null)?"http://www.madore.org/~david/" - :ctx.gc.uriToTop) + "ego.html"); - a.setAttributeNS(null, "rel", "author"); + a.setAttributeNS(null, "href", "https://mastodon.sdf.org/@gro_tsen_test"); + a.setAttributeNS(null, "rel", "me"); addr.appendChild(a); - a.appendChild(ctx.doc.createTextNode("\u2042")); + a.appendChild(ctx.doc.createTextNode("Mastodon (test)")); + addr.appendChild(ctx.doc.createElementNS(DamlEngine.XHTML_NS, "wbr")); + addr.appendChild(ctx.doc.createTextNode("|")); + a = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "a"); + a.setAttributeNS(null, "href", "http://www.facebook.com/grotsen"); + a.setAttributeNS(null, "rel", "me"); + addr.appendChild(a); + a.appendChild(ctx.doc.createTextNode("Facebook")); addr.appendChild(ctx.doc.createTextNode(")")); Node ws = node.getNextSibling(); if ( ws != null && ( ws.getNodeType() == Node.TEXT_NODE |