From 66bfabcbb14888917c83533baefb89a459c68e82 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Mon, 29 Jun 2015 17:34:30 +0000 Subject: [PATCH] Inclusão de parâmetro para abrir links de uma camada --- ogc.htm | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/ogc.htm b/ogc.htm index fd36146..93c2641 100644 --- a/ogc.htm +++ b/ogc.htm @@ -175,6 +175,8 @@ A:hover { ins = "

Endereço do web service:

"; var re = new RegExp(".htm", "g"); var servico = window.location.href.replace(re, '.php?'); + //remove variaveis adicionais, se houver + servico = servico.split("?")[0]+"?"; var s = ""; //"tema="+tema; if (botao.name === "metaestat") { s = "id_medida_variavel=" + tema.split("_")[1] + "&"; @@ -185,7 +187,8 @@ A:hover { } servico += s; - ins += "

" + servico; + ins += "

" + servico + ""; + ins += "

Link para essa página: "+ window.location.href.split("?")[0] + "?temaOgc=" + tema + ""; ins += "

Bookmark: "; ins += "