- Energia em Transformação
- Sustentabilidade
- Mudanças Climáticas
- Meio Ambiente
- Responsabilidade Social
- Nossos Patrocínios
- Governança Corporativa
- Relatórios Anuais
- Inovação e Tecnologia
- Pré-Sal
- Negócios
- Quem Somos
- Sobre a Petrobras
- Trajetória
- O Que Fazemos
- Produtos
- Pessoas
Faça uma busca:
Mais pesquisados
Preço dos combustíveis
Pré-Sal
Time Petrobras
Title
- Energia em Transformação
- Sustentabilidade
- Mudanças Climáticas
- Meio Ambiente
- Responsabilidade Social
- Nossos Patrocínios
- Governança Corporativa
- Relatórios Anuais
- Inovação e Tecnologia
- Pré-Sal
- Negócios
- Quem Somos
- Sobre a Petrobras
- Trajetória
- O Que Fazemos
- Produtos
- Pessoas
Faça uma busca:
Mais pesquisados
Preço dos combustíveis
Pré-Sal
Time Petrobras
Title
DESTAQUES
DESTAQUES
DESTAQUES
INICIATIVAS, ESTRATÉGIAS E POLÍTICAS RELACIONADAS AO MEIO AMBIENTE.
NOSSAS LINHAS DE PATROCÍNIO, CONVÊNIOS E PROJETOS APOIADOS.
CONHEÇA MAIS SOBRE A NOSSA EMPRESA.
NOSSAS ATIVIDADES E ÁREAS DE ATUAÇÃO.
SOLUÇÕES PARA VOCÊ OU PARA SEU NEGÓCIO.
VEJA COMO É TRABALHAR NA PETROBRAS.
Patrocínios
Conheça aqui nossas linhas de patrocínio, convênios e projetos apoiados.
Meio Ambiente
Conheça nossas iniciativas, estratégias e políticas relacionadas ao meio ambiente.
Inovação e Tecnologia
Descubra como usamos inovação e tecnologia para construir hoje o mundo de amanhã.
Inovação aberta
Saiba mais sobre o Conexões para Inovação e veja como funciona a inovação aberta na Petrobras.
Jornada da energia
Conheça mais sobre nossas operações e áreas de atuação.
Concursos
Lançamos novo Concurso Público para nível médio. Confira o edital.
Negócio, Ciência e Tecnologia
Mercado
Conhecimento
Eventos em destaque
Confira nossa presença em eventos
Conheça mais eventos que temos orgulho em patrocinar
Rio Oil and Gas
Offshore Technology Conference
CeraWeek
Campus Party
Robocup
Rio2C
Faça uma busca:
Mais pesquisados
Preço dos combustíveis
Pré-Sal
Time Petrobras
Utilize nossa busca para encontrar o que procura
Faça uma busca:
Mais pesquisados
Preço dos combustíveis
Pré-Sal
Time Petrobras
Customer Service CenterSAC Petrobras
0800 728 90010800 728 9001
Access to InformationAcesso à Informação
Transparency PortalPortal da Transparência- Conheça mais sobre a Petrobras
- Destaques
- Canais de Contato
- Outros sites Petrobras
© Copyright Petrobras 2024. All rights reserved.© Copyright Petrobras 2024. Todos os direitos reservados.
Canais
Idioma
Acessibilidade
Busca
- Energia em Transformação
- Sustentabilidade
- Mudanças Climáticas
- Meio Ambiente
- Responsabilidade Social
- Nossos Patrocínios
- Governança Corporativa
- Relatórios Anuais
- Inovação e Tecnologia
- Pré-Sal
- Negócios
- Quem Somos
- Sobre a Petrobras
- Trajetória
- O Que Fazemos
- Produtos
- Pessoas
Navegue nas Seções:
Acessibilidade
Alto-Contraste
Desligado
Ligado
Texto Grande
Desligado
Ligado
The following has evaluated to null or missing: ==> selectedLang [in template "20099#20135#8170390" at line 27, column 37] ---- Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: ${selectedLang} [in template "20099#20135#8170390" at line 27, column 35] ----
1<#-- Conteúdo Web -> Templates: Site de Crise - Funções gerais-->
2<#include "${templatesPath}/1975398" />
3
4<#if entries?has_content>
5 <#assign languageList = []/>
6 <#list entries as curLanguage>
7 <#assign currURL = currentURL>
8 <#assign currLangId = curLanguage.languageId/>
9 <#assign currLangName = curLanguage.shortDisplayName/>
10 <#if !curLanguage.selected>
11 <#assign languageList += [{"url":curLanguage.getURL(), "languageId":currLangId , "name":currLangName,"selected":false}]/>
12
13 <#else>
14 <#assign languageList += [{"url":"", "languageId":currLangId, "name":currLangName, "selected":true} ]/>
15 <#assign selectedLang = currLangId />
16 </#if>
17 </#list>
18</#if>
19
20<script>
21 <#assign languageConfig = "language_" + randomNumber(1000)>
22 <#assign languageListJson = "languageListJson_" + randomNumber(1000)>
23 <#assign currentSelectedLang = "currentSelectedLang_" + randomNumber(1000)>
24
25
26 let ${languageListJson} = ${jsonFactoryUtil.looseSerializeDeep(languageList)};
27 let ${currentSelectedLang} = "${selectedLang}";
28
29 function getURLforLangChange(languageName) {
30 let result = "";
31 if (languageName != null) {
32 for (let i = 0; i < ${languageListJson}.length; i++) {
33 if (${languageListJson}[i].name.toLowerCase() == languageName.toLowerCase()) {
34 result = ${languageListJson}[i].url;
35 }
36 }
37 }
38 return result;
39 }
40
41
42
43 function getURLforLangChangeById(languageId) {
44 let result = "";
45
46 function setCookie(cname, cvalue, exdays) {
47 const d = new Date();
48 d.setTime(d.getTime() + (exdays*24*60*60*1000));
49 let expires = "expires="+ d.toUTCString();
50 document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
51 //console.log("Set-Cookie:"+cname + "=" + cvalue + ";" + expires + ";path=/");
52 }
53
54
55 if (languageId != null) {
56 for (let i = 0; i < ${languageListJson}.length; i++) {
57 if (${languageListJson}[i].languageId.toLowerCase() == languageId.toLowerCase()) {
58 result = ${languageListJson}[i].url;
59 }
60 }
61
62 if (languageId == "en_US") {
63 if (result) {
64 var newResult = "";
65 var currentLocation = location.pathname.replace("/pt/","/");
66 var pathName = '/en'+currentLocation;
67 var pathNameEncoded = encodeURIComponent(pathName);
68 var splitParams = new URLSearchParams(result);
69 let i=0;
70 for (let pair of splitParams.entries()) {
71 if (i>0) newResult += '&';
72 if (pair[0]== 'redirect'){
73 newResult += pair[0]+'='+pathNameEncoded;
74 } else {
75 newResult += pair[0]+'='+pair[1];
76 }
77 i++;
78 }
79 setCookie("GUEST_LANGUAGE_ID",languageId,365);
80 result = pathName;
81 }
82 }
83 }
84 return result;
85 }
86
87
88 function goToURLIng() {
89 // console.log("goToURLIng");
90 window.location.href = getURLforLangChangeById('en_US');
91 }
92
93 function goToURLPort() {
94 //console.log("goToURLPort");
95 window.location.href = getURLforLangChangeById('pt_BR');
96 }
97
98
99 function ${languageConfig}() {
100
101 AUI().ready(function () {
102
103 const languageToggleInput = document.querySelector('#language-toggle');
104
105 const defineLanguage = () => {
106 if (themeDisplay.getLanguageId() === 'en_US') {
107 if (languageToggleInput){
108 languageToggleInput.checked = true;
109 }
110 }
111 }
112
113
114
115 setTimeout(function () {
116 //console.log("Setting button behavior");
117 //const languages = document.querySelectorAll("div.petro-pt-en > div.switch > span, div.switch-fill > span.pt, div.switch-fill > span.en");
118 const languages = document.querySelectorAll("div.switch-fill > span.pt, div.switch-fill > span.en");
119 //const input = document.querySelector("div.petro-pt-en > div.switch > input, div.switch-fill > span.pt, div.switch-fill > span.en");
120 const inputBR = document.querySelector("div.switch-fill > span.pt");
121 const inputEN = document.querySelector("div.switch-fill > span.en");
122
123 if (${currentSelectedLang} == 'pt_BR') {
124 languages.forEach(function (language) {
125 if (language.innerText == 'EN' || language.innerText == 'Inglês' || language.innerText == 'English' ) {
126 if (inputEN){
127 //console.log("Inglês "+inputEN.innerText);
128 inputEN.addEventListener("click", function (){
129 //console.log("acionado");
130 window.location.href = getURLforLangChangeById('en_US');
131 });
132 }
133 }
134 });
135 }
136
137 if (${currentSelectedLang} == 'en_US') {
138 languages.forEach(function (language) {
139 if (language.innerText == 'PT' || language.innerText == 'Português' || language.innerText == 'Portuguese' ) {
140 if (inputBR){
141 //console.log("Português "+inputBR.innerText);
142 inputBR.addEventListener("click", function(){
143 //console.log("acionado");
144 window.location.href = getURLforLangChangeById('pt_BR');
145 });
146 }
147 }
148 });
149 }
150 defineLanguage()
151
152 }, 500);
153 });
154
155
156 }
157
158 ${languageConfig}();
159
160</script>
161<noscript>Seu navegador não suporta Scripts.</noscript>
Idioma:
Selecione um idioma: