Commit 982b9ecccc8f1300b479ce81bbfd3ebb0aff4a3a
1 parent
5c90dbe1
Exists in
master
and in
7 other branches
alerta no botao de copiar apara a memória
Showing
4 changed files
with
40 additions
and
7 deletions
Show diff stats
init/head.php
| @@ -108,5 +108,16 @@ hr { | @@ -108,5 +108,16 @@ hr { | ||
| 108 | width: 24px; | 108 | width: 24px; |
| 109 | } | 109 | } |
| 110 | 110 | ||
| 111 | +.btn.btn-fab.btn-fab-max { | ||
| 112 | + font-size: 1.6em; | ||
| 113 | + height: 40px; | ||
| 114 | + min-width: 40px; | ||
| 115 | + padding-bottom: 5px; | ||
| 116 | + padding-left: 5px; | ||
| 117 | + padding-right: 5px; | ||
| 118 | + padding-top: 7px; | ||
| 119 | + width: 40px; | ||
| 120 | +} | ||
| 121 | + | ||
| 111 | </style> | 122 | </style> |
| 112 | </head> | 123 | </head> |
mapas/dicionario.js
mapas/index.js
| @@ -68,7 +68,8 @@ function verificaMapa(mapa){ | @@ -68,7 +68,8 @@ function verificaMapa(mapa){ | ||
| 68 | mapa.LINK = link; | 68 | mapa.LINK = link; |
| 69 | links.push({ | 69 | links.push({ |
| 70 | "nome": "", | 70 | "nome": "", |
| 71 | - "link": mapa.LINK | 71 | + "link": mapa.LINK, |
| 72 | + "copiado": $trad("copiado",g_traducao_mapas) | ||
| 72 | }); | 73 | }); |
| 73 | } | 74 | } |
| 74 | // verifica se o mapfile esta salvo no banco | 75 | // verifica se o mapfile esta salvo no banco |
| @@ -77,18 +78,23 @@ function verificaMapa(mapa){ | @@ -77,18 +78,23 @@ function verificaMapa(mapa){ | ||
| 77 | if (mapa.CONTEMMAPFILE != "nao") { | 78 | if (mapa.CONTEMMAPFILE != "nao") { |
| 78 | links = [ | 79 | links = [ |
| 79 | { | 80 | { |
| 81 | + "copiado": $trad("copiado",g_traducao_mapas), | ||
| 80 | "nome": "Como foi salvo", | 82 | "nome": "Como foi salvo", |
| 81 | "link": mapa.LINK | 83 | "link": mapa.LINK |
| 82 | },{ | 84 | },{ |
| 85 | + "copiado": $trad("copiado",g_traducao_mapas), | ||
| 83 | "nome": "Openlayers com todos os botoes", | 86 | "nome": "Openlayers com todos os botoes", |
| 84 | "link": i3GEO.configura.locaplic + "/mashups/openlayers.php?numzoomlevels=18&restauramapa=" + mapa.ID_MAPA | 87 | "link": i3GEO.configura.locaplic + "/mashups/openlayers.php?numzoomlevels=18&restauramapa=" + mapa.ID_MAPA |
| 85 | },{ | 88 | },{ |
| 89 | + "copiado": $trad("copiado",g_traducao_mapas), | ||
| 86 | "nome": "Sem o fundo", | 90 | "nome": "Sem o fundo", |
| 87 | "link": i3GEO.configura.locaplic + "/mashups/openlayers.php?numzoomlevels=18&restauramapa=" + mapa.ID_MAPA + "&fundo=est_wms" | 91 | "link": i3GEO.configura.locaplic + "/mashups/openlayers.php?numzoomlevels=18&restauramapa=" + mapa.ID_MAPA + "&fundo=est_wms" |
| 88 | },{ | 92 | },{ |
| 93 | + "copiado": $trad("copiado",g_traducao_mapas), | ||
| 89 | "nome": "Com botoes principais", | 94 | "nome": "Com botoes principais", |
| 90 | "link": i3GEO.configura.locaplic + "/mashups/openlayers.php?numzoomlevels=18&restauramapa=" + mapa.ID_MAPA + "&fundo=e_wsm&botoes=legenda pan zoombox zoomtot zoomin zoomout distancia area identifica" | 95 | "link": i3GEO.configura.locaplic + "/mashups/openlayers.php?numzoomlevels=18&restauramapa=" + mapa.ID_MAPA + "&fundo=e_wsm&botoes=legenda pan zoombox zoomtot zoomin zoomout distancia area identifica" |
| 91 | },{ | 96 | },{ |
| 97 | + "copiado": $trad("copiado",g_traducao_mapas), | ||
| 92 | "nome": "Botoes de navegacao", | 98 | "nome": "Botoes de navegacao", |
| 93 | "link": i3GEO.configura.locaplic + "/mashups/openlayers.php?numzoomlevels=18&restauramapa=" + mapa.ID_MAPA | 99 | "link": i3GEO.configura.locaplic + "/mashups/openlayers.php?numzoomlevels=18&restauramapa=" + mapa.ID_MAPA |
| 94 | } | 100 | } |
| @@ -102,4 +108,13 @@ function verificaMapa(mapa){ | @@ -102,4 +108,13 @@ function verificaMapa(mapa){ | ||
| 102 | mapa.subtitulo = html; | 108 | mapa.subtitulo = html; |
| 103 | return mapa; | 109 | return mapa; |
| 104 | } | 110 | } |
| 111 | +function alerta(texto,d){ | ||
| 112 | + if(!d){ | ||
| 113 | + d = 500; | ||
| 114 | + } | ||
| 115 | + var a = $(".alert"); | ||
| 116 | + a.html(texto); | ||
| 117 | + a.slideDown(d) | ||
| 118 | + a.delay(d).slideUp(d) | ||
| 119 | +} | ||
| 105 | 120 |
mapas/index.php
| @@ -53,12 +53,12 @@ include "../init/head.php"; | @@ -53,12 +53,12 @@ include "../init/head.php"; | ||
| 53 | <a target="_blank" class="btn btn-primary btn-fab" href="{{{link}}}"> | 53 | <a target="_blank" class="btn btn-primary btn-fab" href="{{{link}}}"> |
| 54 | <i class="material-icons">launch</i> | 54 | <i class="material-icons">launch</i> |
| 55 | </a> | 55 | </a> |
| 56 | - <a onclick="i3GEO.util.copyToClipboard('{{{link}}}')" class="btn btn-primary btn-fab" href="#"> | 56 | + <button onclick="i3GEO.util.copyToClipboard('{{{link}}}');alerta('{{copiado}}');" class="btn btn-primary btn-fab" > |
| 57 | <i class="material-icons">content_copy</i> | 57 | <i class="material-icons">content_copy</i> |
| 58 | - </a> | ||
| 59 | - <a role="button" data-toggle="quadroQrcode" data-url="{{{link}}}" class="btn btn-primary btn-fab btn-fab-mini" href="#"> | 58 | + </button> |
| 59 | + <button role="button" data-toggle="quadroQrcode" data-url="{{{link}}}" class="btn btn-primary btn-fab btn-fab-max" > | ||
| 60 | <span class="glyphicon glyphicon-qrcode" aria-hidden="true"></span> | 60 | <span class="glyphicon glyphicon-qrcode" aria-hidden="true"></span> |
| 61 | - </a> | 61 | + </button> |
| 62 | </div> | 62 | </div> |
| 63 | <h4> | 63 | <h4> |
| 64 | {{{nome}}} | 64 | {{{nome}}} |
| @@ -84,6 +84,8 @@ include "../init/head.php"; | @@ -84,6 +84,8 @@ include "../init/head.php"; | ||
| 84 | </div> | 84 | </div> |
| 85 | </div> | 85 | </div> |
| 86 | </nav> | 86 | </nav> |
| 87 | + <!--para as mensagens de alerta--> | ||
| 88 | + <div class="navbar-fixed-top alert alert-success text-center" style="padding:0px;" ></div> | ||
| 87 | <div class="container-fluid"> | 89 | <div class="container-fluid"> |
| 88 | <div class="row"> | 90 | <div class="row"> |
| 89 | <ol class="breadcrumb"> | 91 | <ol class="breadcrumb"> |
| @@ -94,7 +96,7 @@ include "../init/head.php"; | @@ -94,7 +96,7 @@ include "../init/head.php"; | ||
| 94 | </div> | 96 | </div> |
| 95 | <div class="container"> | 97 | <div class="container"> |
| 96 | <!-- Template para criacao dos quadros ver index.js --> | 98 | <!-- Template para criacao dos quadros ver index.js --> |
| 97 | - <div class="hidden"> | 99 | + <div class="escondido"> |
| 98 | <div class="row"> | 100 | <div class="row"> |
| 99 | <div class="col-xs-9 center-block" id="botoesTpl" > | 101 | <div class="col-xs-9 center-block" id="botoesTpl" > |
| 100 | <div class="row" id="affix-{{ID_MAPA}}" > | 102 | <div class="row" id="affix-{{ID_MAPA}}" > |
| @@ -142,7 +144,7 @@ include "../init/head.php"; | @@ -142,7 +144,7 @@ include "../init/head.php"; | ||
| 142 | i3GEO.configura = {"locaplic" : window.location.href.split("/mapas")[0],"sid": ""}; | 144 | i3GEO.configura = {"locaplic" : window.location.href.split("/mapas")[0],"sid": ""}; |
| 143 | $(".active").html($trad("mapas",g_traducao_mapas)); | 145 | $(".active").html($trad("mapas",g_traducao_mapas)); |
| 144 | mostraBotoesBT(); | 146 | mostraBotoesBT(); |
| 145 | - $('.hidden').removeClass('hidden'); | 147 | + $('.escondido').removeClass('hidden'); |
| 146 | $.material.init(); | 148 | $.material.init(); |
| 147 | }); | 149 | }); |
| 148 | </script> | 150 | </script> |