From 8f714d9a4c83592432eca7184904f52360f06f16 Mon Sep 17 00:00:00 2001 From: edmarmoretti Date: Fri, 28 Jul 2017 14:40:45 -0300 Subject: [PATCH] Adaptação da ferramenta STORYMAP para Bootstrap --- ferramentas/storymap/index.js | 74 ++++++++++++++++++++++++-------------------------------------------------- ferramentas/storymap/template_mst.html | 80 +++++++++++++++++++++++++++++++++++++++++++++++++------------------------------- 2 files changed, 73 insertions(+), 81 deletions(-) diff --git a/ferramentas/storymap/index.js b/ferramentas/storymap/index.js index 521359f..6294afb 100755 --- a/ferramentas/storymap/index.js +++ b/ferramentas/storymap/index.js @@ -136,7 +136,9 @@ i3GEOF.storymap = return; } $i(iddiv).innerHTML = i3GEOF.storymap.html(); - i3GEOF.storymap.rodape(); + if (i3GEO.login.verificaCookieLogin() === true && i3GEO.parametros.editor === "sim") { + $(".hidden").removeClass("hidden"); + } try { // // verifica se a camada possui definicao dos parametros @@ -149,7 +151,7 @@ i3GEOF.storymap = var combo = function(dados, idonde) { var n, i, ins; n = dados.length; - ins = ""; ins += ""; for (i = 0; i < n; i++) { ins += ""; @@ -180,52 +182,6 @@ i3GEOF.storymap = i3GEO.janela.tempoMsg(erro); } }, - rodape : function() { - var ins = - ''; - if (i3GEO.login.verificaCookieLogin() === true) { - ins += - ''; - ins += - ''; - } - YAHOO.i3GEO.janela.manager.find("i3GEOF.storymap").setFooter(ins); - - var b = new YAHOO.widget.Button("i3GEOstobotao1", { - onclick : { - fn : function() { - window.open(i3GEO.configura.locaplic + "/ferramentas/storymap/default.php?layers=&tema=" + i3GEOF.storymap.tema); - } - } - }); - b.addClass("rodar"); - $i("i3GEOstobotao1-button").style.width = "350px"; - if (i3GEO.login.verificaCookieLogin() === true) { - $i("parametrosComLoginSto").style.display = 'block'; - b = new YAHOO.widget.Button("i3GEOstobotaoSalva", { - onclick : { - fn : i3GEOF.storymap.salvaParametros - } - }); - b.addClass("rodar"); - $i("i3GEOstobotaoSalva-button").style.width = "350px"; - - b = new YAHOO.widget.Button("i3GEOstobotaoRemove", { - onclick : { - fn : i3GEOF.storymap.removeParametros - } - }); - b.addClass("rodar"); - $i("i3GEOstobotaoRemove-button").style.width = "350px"; - } - }, /* * Function: html * @@ -263,11 +219,29 @@ i3GEOF.storymap = }; // cria a janela flutuante titulo = - "
------
" + "
------
" + "Storymap"; - janela = i3GEO.janela.cria("380px", "320px", "", "", "", titulo, "i3GEOF.storymap", false, "hd", cabecalho, minimiza, "", true); + janela = i3GEO.janela.cria( + "380px", + "320px", + "", + "", + "", + titulo, + "i3GEOF.storymap", + false, + "hd", + cabecalho, + minimiza, + "", + true, + "", + "", + "", + "" + ); divid = janela[2].id; i3GEOF.storymap.aguarde = $i("i3GEOF.storymap_imagemCabecalho").style; $i("i3GEOF.storymap_corpo").style.backgroundColor = "white"; diff --git a/ferramentas/storymap/template_mst.html b/ferramentas/storymap/template_mst.html index dbf7c78..bd0c825 100755 --- a/ferramentas/storymap/template_mst.html +++ b/ferramentas/storymap/template_mst.html @@ -1,32 +1,50 @@ -
-

{{{cabecalho}}} -

- -
-
-

{{{texto}}} -

- -
-
-

{{{colcabecalho}}}

-
-
-

{{{coltexto}}}

-
-
-

{{{collocal}}}

-
-
-

{{{colmedia}}}

-
-
-

{{{collon}}}

-
-
-

{{{collat}}}

-
-
-
- +
+
+ + +
+
+ + +
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+ + + +
\ No newline at end of file -- libgit2 0.21.2