From 9c502e090fc42f2a87a406d49a3caeb175f41ffe Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Sun, 27 Sep 2015 22:52:36 +0200 Subject: Generate element for mobile devices. --- org/madore/damlengine/TodoDamlElement.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/org/madore/damlengine/TodoDamlElement.java b/org/madore/damlengine/TodoDamlElement.java index 6949086..dff27ee 100644 --- a/org/madore/damlengine/TodoDamlElement.java +++ b/org/madore/damlengine/TodoDamlElement.java @@ -86,6 +86,11 @@ public final class TodoDamlElement extends TodoDefaultElement { meta.setAttributeNS(null, "charset", "utf-8"); headNode.appendChild(meta); headNode.appendChild(ctx.doc.createTextNode("\n")); + meta = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "meta"); + meta.setAttributeNS(null, "name", "viewport"); + meta.setAttributeNS(null, "content", "width=device-width, initial-scale=1"); + headNode.appendChild(meta); + headNode.appendChild(ctx.doc.createTextNode("\n")); meta = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "link"); meta.setAttributeNS(null, "rel", "Shortcut Icon"); meta.setAttributeNS(null, "href", (((ctx.gc.uriToTop!=null)?ctx.gc.uriToTop:"") -- cgit v1.2.3