summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2015-09-27 22:52:36 +0200
committerDavid A. Madore <david+git@madore.org>2015-09-27 22:52:36 +0200
commit9c502e090fc42f2a87a406d49a3caeb175f41ffe (patch)
treef698d325f573cd0956ad72dfee27ff13e96f6cef
parent73baa161f692289be793d3b341023a91f1c3b65a (diff)
downloaddamlengine-9c502e090fc42f2a87a406d49a3caeb175f41ffe.tar.gz
damlengine-9c502e090fc42f2a87a406d49a3caeb175f41ffe.tar.bz2
damlengine-9c502e090fc42f2a87a406d49a3caeb175f41ffe.zip
Generate <meta name="viewport"> element for mobile devices.
-rw-r--r--org/madore/damlengine/TodoDamlElement.java5
1 files changed, 5 insertions, 0 deletions
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:"")