Commit f67e7d896b9645dc9d8454e9199dd6b455c89486
1 parent
28eb615e
Exists in
master
and in
7 other branches
Adicionado include("../classesphp/carrega_ext.php"); para permitir o funcionamento no windows
Showing
1 changed file
with
7 additions
and
2 deletions
Show diff stats
mobile/index.php
| ... | ... | @@ -58,6 +58,7 @@ Free Software Foundation, Inc., no endereço |
| 58 | 58 | include_once("../classesphp/pega_variaveis.php"); |
| 59 | 59 | require_once("../classesphp/funcoes_gerais.php"); |
| 60 | 60 | include("../classesphp/classe_menutemas.php"); |
| 61 | +include("../classesphp/carrega_ext.php"); | |
| 61 | 62 | include("../ms_configura.php"); |
| 62 | 63 | $m = new Menutemas($tmpfname,""); |
| 63 | 64 | $mapas = $m->pegaListaDeMapas($locmapas); |
| ... | ... | @@ -76,8 +77,12 @@ foreach($mapas["mapas"] as $obj) |
| 76 | 77 | <a href='http://mapas.mma.gov.br' >http://mapas.mma.gov.br</a></p> |
| 77 | 78 | </body> |
| 78 | 79 | <script> |
| 79 | -document.getElementById('wmobile').value = screen.availWidth; | |
| 80 | -document.getElementById('hmobile').value = screen.availHeight; | |
| 80 | +var w = screen.availWidth; | |
| 81 | +var h = screen.availHeight; | |
| 82 | +if (w > 600){var w = w/2;} | |
| 83 | +if (h > 600){var h = h/2;} | |
| 84 | +document.getElementById('wmobile').value = w; | |
| 85 | +document.getElementById('hmobile').value = h; | |
| 81 | 86 | /* |
| 82 | 87 | Function: ligar |
| 83 | 88 | ... | ... |