Commit 18a3962af298bd576ed0b94200c4a8edf90631a3
1 parent
402d22ed
Exists in
master
and in
7 other branches
ajuste no layout da página inicial para funcionar em smtfone
Showing
2 changed files
with
36 additions
and
21 deletions
Show diff stats
init/index.js
@@ -209,14 +209,13 @@ function mostraBotoesBT(template,men){ | @@ -209,14 +209,13 @@ function mostraBotoesBT(template,men){ | ||
209 | i3GEO.idioma.IDSELETOR = "bandeiras"; | 209 | i3GEO.idioma.IDSELETOR = "bandeiras"; |
210 | i3GEO.idioma.mostraSeletor(); | 210 | i3GEO.idioma.mostraSeletor(); |
211 | //i3GEO.barraDeBotoes.ATIVA = false; | 211 | //i3GEO.barraDeBotoes.ATIVA = false; |
212 | - var atalhos = [], ins = [],i,n = botoesIni.length; | 212 | + var ins = [],i,n = botoesIni.length; |
213 | for(i=0;i<n;i++){ | 213 | for(i=0;i<n;i++){ |
214 | botoesIni[i].img = "imagens/"+botoesIni[i].img; | 214 | botoesIni[i].img = "imagens/"+botoesIni[i].img; |
215 | ins.push(Mustache.render(template, botoesIni[i])); | 215 | ins.push(Mustache.render(template, botoesIni[i])); |
216 | - if(botoesIni[i].atalho){ | ||
217 | - atalhos.push(Mustache.render('<a href="{{{href}}}" target="_blank" class="btn btn-raised">{{{titulo}}}</a>', botoesIni[i])); | ||
218 | - } | 216 | + //if(botoesIni[i].atalho){ |
217 | + // atalhos.push(Mustache.render('<a href="{{{href}}}" target="_blank" class="btn btn-raised">{{{titulo}}}</a>', botoesIni[i])); | ||
218 | + //} | ||
219 | } | 219 | } |
220 | $i("botoes").innerHTML = ins.join(""); | 220 | $i("botoes").innerHTML = ins.join(""); |
221 | - //$i("atalhos").innerHTML = atalhos.join(""); | ||
222 | } | 221 | } |
init/nindex.php
@@ -78,6 +78,11 @@ define ( "ONDEI3GEO", ".." ); | @@ -78,6 +78,11 @@ define ( "ONDEI3GEO", ".." ); | ||
78 | text-align: left; | 78 | text-align: left; |
79 | } | 79 | } |
80 | </style> | 80 | </style> |
81 | + <script src='../classesjs/compactados/dicionario_compacto.js'></script> | ||
82 | + <script src='../classesjs/compactados/classe_util_compacto.js'></script> | ||
83 | + <script src='../classesjs/compactados/classe_idioma_compacto.js'></script> | ||
84 | + <script src='../classesjs/compactados/mustache.js'></script> | ||
85 | + <script src='dicionario.js'></script> | ||
81 | </head> | 86 | </head> |
82 | 87 | ||
83 | <body style="background-color: #eeeeee; padding-top: 80px;"> | 88 | <body style="background-color: #eeeeee; padding-top: 80px;"> |
@@ -110,19 +115,18 @@ define ( "ONDEI3GEO", ".." ); | @@ -110,19 +115,18 @@ define ( "ONDEI3GEO", ".." ); | ||
110 | </div> | 115 | </div> |
111 | <div id="botoes"> | 116 | <div id="botoes"> |
112 | </div> | 117 | </div> |
113 | - <div class="col-sm-12" style="width:260px;"> | 118 | + |
119 | + <div class="col-sm-12 hidden" id="tt" style="width:260px;"> | ||
114 | <div class="panel panel-default" > | 120 | <div class="panel panel-default" > |
115 | <div class="panel-body"> | 121 | <div class="panel-body"> |
116 | <a class="twitter-timeline" href="https://twitter.com/i3geo" data-widget-id="288061915689787392" height="300">Tweets @i3Geo</a> | 122 | <a class="twitter-timeline" href="https://twitter.com/i3geo" data-widget-id="288061915689787392" height="300">Tweets @i3Geo</a> |
117 | - <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> | ||
118 | </div> | 123 | </div> |
119 | </div> | 124 | </div> |
120 | </div> | 125 | </div> |
121 | - <div class="col-sm-12" style="width:260px;"> | 126 | + <div class="col-sm-12 hidden" style="width:260px;"> |
122 | <div class="panel panel-default" > | 127 | <div class="panel panel-default" > |
123 | <div class="panel-body"> | 128 | <div class="panel-body"> |
124 | <a class="twitter-timeline" href="https://twitter.com/hashtag/i3geo" data-widget-id="643417277208133633" height="300">i3geo Tweets</a> | 129 | <a class="twitter-timeline" href="https://twitter.com/hashtag/i3geo" data-widget-id="643417277208133633" height="300">i3geo Tweets</a> |
125 | - <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> | ||
126 | </div> | 130 | </div> |
127 | </div> | 131 | </div> |
128 | </div> | 132 | </div> |
@@ -130,26 +134,20 @@ define ( "ONDEI3GEO", ".." ); | @@ -130,26 +134,20 @@ define ( "ONDEI3GEO", ".." ); | ||
130 | 134 | ||
131 | <hr> | 135 | <hr> |
132 | 136 | ||
133 | - <footer> | ||
134 | - <div class="row" > | ||
135 | - <div class="col-sm-10" | 137 | + <footer class="text-center" > |
138 | + <div class="row hidden" > | ||
139 | + <div class="col-sm-6" | ||
136 | <a rel="license" href="http://creativecommons.org/licenses/GPL/2.0/legalcode.pt" target="_blank"><img alt="Licença Creative Commons" style="border-width: 0" src="https://i.creativecommons.org/l/GPL/2.0/88x62.png" /></a><br />O i3Geo está licenciado com uma Licença <a | 140 | <a rel="license" href="http://creativecommons.org/licenses/GPL/2.0/legalcode.pt" target="_blank"><img alt="Licença Creative Commons" style="border-width: 0" src="https://i.creativecommons.org/l/GPL/2.0/88x62.png" /></a><br />O i3Geo está licenciado com uma Licença <a |
137 | rel="license" href="http://creativecommons.org/licenses/GPL/2.0/legalcode.pt" target="_blank">Creative Commons - Licença Pública Geral GNU ("GNU General Public License")</a> | 141 | rel="license" href="http://creativecommons.org/licenses/GPL/2.0/legalcode.pt" target="_blank">Creative Commons - Licença Pública Geral GNU ("GNU General Public License")</a> |
138 | </div> | 142 | </div> |
139 | - <div class="col-sm-2"> | 143 | + <div class="col-sm-6"> |
140 | <script type='text/javascript' src='https://www.openhub.net/p/i3geo/widgets/project_users?format=js&style=blue'></script> | 144 | <script type='text/javascript' src='https://www.openhub.net/p/i3geo/widgets/project_users?format=js&style=blue'></script> |
141 | </div> | 145 | </div> |
142 | - | ||
143 | </div> | 146 | </div> |
144 | </footer> | 147 | </footer> |
145 | 148 | ||
146 | </div> | 149 | </div> |
147 | - <!--/.container--> | ||
148 | - <script src='../classesjs/compactados/dicionario_compacto.js'></script> | ||
149 | - <script src='../classesjs/compactados/classe_util_compacto.js'></script> | ||
150 | - <script src='../classesjs/compactados/classe_idioma_compacto.js'></script> | ||
151 | - <script src='../classesjs/compactados/mustache.js'></script> | ||
152 | - <script src='dicionario.js'></script> | 150 | + |
153 | <?php | 151 | <?php |
154 | echo "<script>"; | 152 | echo "<script>"; |
155 | include "index.js"; | 153 | include "index.js"; |
@@ -158,7 +156,7 @@ define ( "ONDEI3GEO", ".." ); | @@ -158,7 +156,7 @@ define ( "ONDEI3GEO", ".." ); | ||
158 | ?> | 156 | ?> |
159 | <script> | 157 | <script> |
160 | $(document).ready(function(){ | 158 | $(document).ready(function(){ |
161 | - var template = '<div class="col-sm-12" style="width:260px;"><div class="panel panel-default"><div class="panel-body" style="height: 250px;"><div class="thumbnail" style="height:90px;"><img class="img-rounded" style="height: 100%; width: 100%" src="{{{img}}}" /></div><h4>{{{titulo}}}</h4><div style="overflow:auto;height:200px;"><p>{{{subtitulo}}}</p></div></div><div class="panel-footer text-right" style="border:0px;background-color:white;"><p><a class="btn btn-primary btn-raised" href="{{{href}}}" role="button" target="_blank" >Abrir <i class="fa fa-{{{fa}}}" aria-hidden="true" ></i></a></p></div></div></div>'; | 159 | + var template = '<div class="col-sm-12" style="width:260px;min-width:260px;max-width:260px;"><div class="panel panel-default"><div class="panel-body" style="height: 250px;"><div class="thumbnail" style="height:90px;"><img class="img-rounded" style="height: 100%; width: 100%" src="{{{img}}}" /></div><h4>{{{titulo}}}</h4><div style="overflow:auto;height:200px;"><p>{{{subtitulo}}}</p></div></div><div class="panel-footer text-right" style="border:0px;background-color:white;"><p><a class="btn btn-primary btn-raised" href="{{{href}}}" role="button" target="_blank" >Abrir <i class="fa fa-{{{fa}}}" aria-hidden="true" ></i></a></p></div></div></div>'; |
162 | <?php | 160 | <?php |
163 | if ($i3geomaster [0] ["usuario"] == "admin" && $i3geomaster [0] ["senha"] == "admin") { | 161 | if ($i3geomaster [0] ["usuario"] == "admin" && $i3geomaster [0] ["senha"] == "admin") { |
164 | echo "var men = $" . "trad(19,g_traducao_init);"; | 162 | echo "var men = $" . "trad(19,g_traducao_init);"; |
@@ -167,6 +165,24 @@ define ( "ONDEI3GEO", ".." ); | @@ -167,6 +165,24 @@ define ( "ONDEI3GEO", ".." ); | ||
167 | } | 165 | } |
168 | ?> | 166 | ?> |
169 | mostraBotoesBT(template, '<div class="alert alert-danger">' + men + '</div>'); | 167 | mostraBotoesBT(template, '<div class="alert alert-danger">' + men + '</div>'); |
168 | + $('.hidden').removeClass('hidden'); | ||
169 | + //carrega o TT | ||
170 | + window.twttr = (function(d, s, id) { | ||
171 | + var js, fjs = d.getElementsByTagName(s)[0], | ||
172 | + t = window.twttr || {}; | ||
173 | + if (d.getElementById(id)) return t; | ||
174 | + js = d.createElement(s); | ||
175 | + js.id = id; | ||
176 | + js.src = "https://platform.twitter.com/widgets.js"; | ||
177 | + fjs.parentNode.insertBefore(js, fjs); | ||
178 | + | ||
179 | + t._e = []; | ||
180 | + t.ready = function(f) { | ||
181 | + t._e.push(f); | ||
182 | + }; | ||
183 | + | ||
184 | + return t; | ||
185 | + }(document, "script", "twitter-wjs")); | ||
170 | }); | 186 | }); |
171 | </script> | 187 | </script> |
172 | </body> | 188 | </body> |