42
| <![CDATA[<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-110261759-1');
</script>]]>
|
543
| <![CDATA[<script>
<!-- Alterar h3 do highlight container -->
let elemento = document.getElementById('tituloHighlightContainer');
elemento.className += " dark";
function buscarProjetoPorCategoria(categoria) {
var busca= 'reloaded&facet_category_exact=' + categoria;
var link = '/en/projetos/busca/index.html?' + busca;
location.href = link;
}
function buscarProjetoSituacao(situacao) {
var busca = ('reloaded&facet_Situacao_prop=' + situacao);
var link = '/en/projetos/busca/index.html?' + busca;
location.href = link;
}
var from = document.referrer;
var biblioteca = from.includes("/busca");
if(biblioteca)
{
//os elementos 1 e 2 são para a marcação em torno da área acervo
var element1 = document.getElementById("apresentacao");
element1.classList.remove("selected");
var element2 = document.getElementById("acervo");
element2.classList.add("selected");
//os elementos 3 e 4 são para mostrar o conteúdo da área acervo
var element3 = document.getElementById("tab1");
element3.classList.remove("stage-selected");
var element4 = document.getElementById("tab5");
element4.classList.add("stage-selected");
}
</script>]]>
|
586
| <![CDATA[<script>
var conteudo = document.getElementById("detalhe_projeto").innerHTML;
conteudo = conteudo.replaceAll("https://amz.dsv.bndes.net/", "http://www.fundoamazonia.gov.br/");
conteudo = conteudo.replaceAll("http://amz.bndes.net/", "http://www.fundoamazonia.gov.br/");
document.getElementById("conteudo").innerHTML = conteudo;
console.log(conteudo);
</script>]]>
|
593
| <![CDATA[<script>
var slideProject = new Swiper(".slideProject", {
pagination: {
el: ".project-pagination",
clickable: true,
},
navigation: {
nextEl: ".project-button-next",
prevEl: ".project-button-prev",
},
spaceBetween: 20,
slidesPerView: 1,
breakpoints: {
500: {
slidesPerView: 2,
spaceBetween: 20,
},
800: {
slidesPerView: 3,
spaceBetween: 20,
}
},
});
</script>]]>
|
809
| <![CDATA[<script>
new window.VLibras.Widget('https://vlibras.gov.br/app');
</script>]]>
|
816
| <![CDATA[<script>
//Vetor com os links
function trataLinks() {
var elemento = document.getElementsByTagName("a");
var qntElementos = elemento.length;
for (i = 0; i < qntElementos; i++) {
var link = elemento[i].href;
link = link.replace("http", "https");
link = link.replace("httpss", "https");
link = link.replace("amz.bndes.net", "www.fundoamazonia.gov.br");
elemento[i].href = link;
}
}
trataLinks();
</script>]]>
|
838
| <![CDATA[<script>
// ********* ESTILOS *********
async function loadMap() {
var customStyleFunction = function(feature, resolution) {
fillcolor = '#2f652b';
strokecolor = '#b5cc2d';
return [new ol.style.Style({
image: new ol.style.Circle({
fill: new ol.style.Fill({
color: fillcolor
}),
stroke: new ol.style.Stroke({
color: strokecolor,
width: 1
}),
radius: (resolution < 2500 ? 8 : 6)
})
})];
};
// ********* MARKER *********
var vectorMarkers = new ol.layer.Vector({
name: 'projetos',
source: new ol.source.Vector({
url: '/system/modules/br.gov.bndes.amz/elements/coordenadas-mapa.jsp?caminho_conteudo=/pt/.content/projeto/projeto-00052.xml',
format: new ol.format.GeoJSON()
}),
style: customStyleFunction
});
// ********* MAPA *********
var viewBrasil = new ol.View({
center: ol.proj.transform([-62, -11.5], 'EPSG:4326', 'EPSG:3857'),
zoom: 4,
minZoom: 3,
maxZoom: 9
});
var viewReset = new ol.View({
center: [0, 0],
zoom: 2
});
var map = new ol.Map({
layers: [ new ol.layer.Tile({
source: new ol.source.XYZ({
url: 'https://maps.googleapis.com/maps/vt?pb=!1m5!1m4!1i{z}!2i{x}!3i{y}!4i256!2m3!1e0!2sm!3i603333608!3m17!2spt-BR!3sUS!5e18!12m4!1e68!2m2!1sset!2sRoadmap!12m3!1e37!2m1!1ssmartmaps!12m4!1e26!2m2!1sstyles!2zcy50OjF8cy5lOmd8cC52Om9mZixzLnQ6MXxzLmU6bC50fHAudjpvZmYscy50OjE3fHMuZTpnLnN8cC52Om9ufHAudzoxLjV8cC5nOjIuNTAscy50OjE3fHMuZTpsLnR8cC52Om9ufHAuZzoyLHMudDoxOHxzLmU6Zy5zfHAudzoxLjV8cC5pbDp0cnVlfHAudjpvbixzLnQ6MTh8cy5lOmwudHxwLnY6c2ltcGxpZmllZHxwLmc6MXxwLnc6MS41MCxzLnQ6MTl8cy5lOmwudHxwLnY6b24scy50OjV8cC5jOiNmZmZmZmZmZixzLnQ6NXxzLmU6Zy5mfHAuYzojZmZmZmZmZmYscy50OjJ8cC52Om9mZixzLnQ6M3xzLmU6Zy5mfHAuYzojZmZlZWVlZWUscy50OjQ5fHAudjpvZmYscy50OjUwfHMuZTpsLml8cC52Om9mZixzLnQ6NHxwLnY6b2ZmLHMudDo2fHAuYzojZmY0NmJjZWN8cC52Om9uLHMudDo2fHMuZTpnLmZ8cC5jOiNmZjhlYjVkYyxzLnQ6NnxzLmU6bC50LmZ8cC5jOiNmZjA3MDcwNyxzLnQ6NnxzLmU6bC50LnN8cC5jOiNmZmZmZmZmZg!4e0!23i1379903&key=AIzaSyAOqYYyBbtXQEtcHG7hwAwyCPQSYidG8yU', // token=100884
attributions: [new ol.Attribution({html: "© <a href='https://www.mapbox.com/about/maps/' target='_blank'>Mapbox</a><span> © <a href='http://www.openstreetmap.org/copyright' target='_blank'>OpenStreetMap</a></span>"})]
})
})],
target: 'map',
view: viewBrasil,
interactions: ol.interaction.defaults({
mouseWheelZoom:false,
// dragPan: false
}),
});
map.addLayer(vectorMarkers);
vectorMarkers.getSource().on("change", function(evt) {
extent = vectorMarkers.getSource().getExtent();
map.getView().fit(extent, map.getSize());
map.getView().setZoom(map.getView().getZoom()-4);
});
}
loadMap();
</script>]]>
|