From 982b9ecccc8f1300b479ce81bbfd3ebb0aff4a3a Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Sun, 22 May 2016 00:17:52 -0300 Subject: [PATCH] alerta no botao de copiar apara a memória --- init/head.php | 11 +++++++++++ mapas/dicionario.js | 5 +++++ mapas/index.js | 17 ++++++++++++++++- mapas/index.php | 14 ++++++++------ 4 files changed, 40 insertions(+), 7 deletions(-) diff --git a/init/head.php b/init/head.php index 7db7f55..7b6896f 100755 --- a/init/head.php +++ b/init/head.php @@ -108,5 +108,16 @@ hr { width: 24px; } +.btn.btn-fab.btn-fab-max { + font-size: 1.6em; + height: 40px; + min-width: 40px; + padding-bottom: 5px; + padding-left: 5px; + padding-right: 5px; + padding-top: 7px; + width: 40px; +} + diff --git a/mapas/dicionario.js b/mapas/dicionario.js index a5eb6af..194d93c 100755 --- a/mapas/dicionario.js +++ b/mapas/dicionario.js @@ -5,5 +5,10 @@ g_traducao_mapas = pt : "Mapas de usuários", en : "", es : "" + }], + "copiado" : [{ + pt : "Copiado", + en : "", + es : "" }] }; diff --git a/mapas/index.js b/mapas/index.js index 068265f..c95787d 100755 --- a/mapas/index.js +++ b/mapas/index.js @@ -68,7 +68,8 @@ function verificaMapa(mapa){ mapa.LINK = link; links.push({ "nome": "", - "link": mapa.LINK + "link": mapa.LINK, + "copiado": $trad("copiado",g_traducao_mapas) }); } // verifica se o mapfile esta salvo no banco @@ -77,18 +78,23 @@ function verificaMapa(mapa){ if (mapa.CONTEMMAPFILE != "nao") { links = [ { + "copiado": $trad("copiado",g_traducao_mapas), "nome": "Como foi salvo", "link": mapa.LINK },{ + "copiado": $trad("copiado",g_traducao_mapas), "nome": "Openlayers com todos os botoes", "link": i3GEO.configura.locaplic + "/mashups/openlayers.php?numzoomlevels=18&restauramapa=" + mapa.ID_MAPA },{ + "copiado": $trad("copiado",g_traducao_mapas), "nome": "Sem o fundo", "link": i3GEO.configura.locaplic + "/mashups/openlayers.php?numzoomlevels=18&restauramapa=" + mapa.ID_MAPA + "&fundo=est_wms" },{ + "copiado": $trad("copiado",g_traducao_mapas), "nome": "Com botoes principais", "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" },{ + "copiado": $trad("copiado",g_traducao_mapas), "nome": "Botoes de navegacao", "link": i3GEO.configura.locaplic + "/mashups/openlayers.php?numzoomlevels=18&restauramapa=" + mapa.ID_MAPA } @@ -102,4 +108,13 @@ function verificaMapa(mapa){ mapa.subtitulo = html; return mapa; } +function alerta(texto,d){ + if(!d){ + d = 500; + } + var a = $(".alert"); + a.html(texto); + a.slideDown(d) + a.delay(d).slideUp(d) +} diff --git a/mapas/index.php b/mapas/index.php index 5e2a509..6d3080c 100755 --- a/mapas/index.php +++ b/mapas/index.php @@ -53,12 +53,12 @@ include "../init/head.php"; launch - + +

 {{{nome}}} @@ -84,6 +84,8 @@ include "../init/head.php"; + +
-