Mercurial > hg > mgallery
comparison mgallery.php @ 231:2731d2d8400e
Set meta viewport tag and initial scale, and try to "fix" things for some
mobile devices/browsers while probably breaking things for others. Also,
setting the initial scale seems to break the Android Chrome "text size
autoboost" prevention in the CSS ... sigh. :S
Set the text-size-adjust values to 100% anyway.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 26 Mar 2018 17:06:12 +0300 |
parents | 27e541d02be8 |
children | e618280253ca |
comparison
equal
deleted
inserted
replaced
230:6b34b61b956b | 231:2731d2d8400e |
---|---|
131 echo | 131 echo |
132 "<!DOCTYPE html>\n". | 132 "<!DOCTYPE html>\n". |
133 "<html>\n". | 133 "<html>\n". |
134 "<head>\n". | 134 "<head>\n". |
135 " <meta charset=\"".$pageCharset."\">\n". | 135 " <meta charset=\"".$pageCharset."\">\n". |
136 // Setting the viewport makes things break especially with the | |
137 // text-size-adjust CSS settings... so we don't use it. | |
138 " <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n". | |
136 " <script type=\"text/javascript\" src=\"".mgMangleURI($pageJSFile)."\"></script>\n". | 139 " <script type=\"text/javascript\" src=\"".mgMangleURI($pageJSFile)."\"></script>\n". |
137 " <title>".strip_tags($pageTitle)."</title>\n". | 140 " <title>".strip_tags($pageTitle)."</title>\n". |
138 mgGetCSSLine($pageCSS, FALSE). | 141 mgGetCSSLine($pageCSS, FALSE). |
139 $pageExtra. | 142 $pageExtra. |
140 "</head>\n". | 143 "</head>\n". |