Supporting iPhone's viewport per Petr Dvorak's suggestion
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 17 Nov 2009 14:06:21 +0100
changeset 150cbae8c1b80dc
parent 149 a441b02a638a
child 151 b9e67a17bd10
Supporting iPhone's viewport per Petr Dvorak's suggestion
freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/game.fmt
     1.1 --- a/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/game.fmt	Sun Nov 08 10:21:46 2009 +0100
     1.2 +++ b/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/game.fmt	Tue Nov 17 14:06:21 2009 +0100
     1.3 @@ -12,6 +12,11 @@
     1.4      <#if user != doc.game.@currentPlayer >
     1.5          <meta http-equiv="REFRESH" content="60;URL=/games/${doc.game.id.@id}">
     1.6      </#if>
     1.7 +    <#if format?? && format="small">
     1.8 +        <meta name="viewport" content="width = 200" />
     1.9 +    <#else>
    1.10 +        <meta name="viewport" content="width = 460" />
    1.11 +    </#if>
    1.12      <script type="text/javascript">
    1.13          function paintFence() {
    1.14              var fifth = fieldSize / 10;