[tcb-script]
document.addEventListener('DOMContentLoaded', function(event) {
const lang = document.documentElement.lang;
const urlParams = new URLSearchParams(window.location.search);
const section = urlParams.get('reportId');
var iframe = "";
switch (lang) {
case "en":
url = "https://app.powerbi.com/view?r=eyJrIjoiOWVjMzNmNjQtZDdlMi00NDlhLWJjOGUtMTkxMjgzYmVlOTk4IiwidCI6IjZhZTg5MzBmLWU5MGYtNDM4ZC1iMDY4LWM2ODc0MzZkNjgxZiIsImMiOjl9";
title = "Dashboard about land wastewater ";
iframe = '<iframe loading="lazy" title="' + title + '" width="100%" height="600" frameborder="0"allowfullscreen="true"' + ' id="dashboard" src="' + url + '" data-uw-stylingcontext="true"></iframe>';
break;
case "ca":
url = "https://app.powerbi.com/view?r=eyJrIjoiMjZlNDE4YzMtMjkwMy00NDA0LThlZjEtZWI5MTMwZGQ5MjMyIiwidCI6IjZhZTg5MzBmLWU5MGYtNDM4ZC1iMDY4LWM2ODc0MzZkNjgxZiIsImMiOjl9";
title = "Cuadre de comandament indicadors de aigües residuals";
iframe = '<iframe loading="lazy" title="' + title + '" width="100%" height="600" frameborder="0"allowfullscreen="true"' + ' id="dashboard" src="' + url + '" data-uw-stylingcontext="true"></iframe>';
break;
default:
url = "https://app.powerbi.com/view?r=eyJrIjoiMjAxYzc3YzUtMzYxZC00M2Q2LWFkYmEtZTgwYjc0NGY3Nzg5IiwidCI6IjZhZTg5MzBmLWU5MGYtNDM4ZC1iMDY4LWM2ODc0MzZkNjgxZiIsImMiOjl9";
title = "Cuadro de mando indicadores sobre aguas residuales";
iframe = '<iframe loading="lazy" title="' + title + '" width="100%" height="600" frameborder="0"allowfullscreen="true"' + ' id="dashboard" src="' + url + '" data-uw-stylingcontext="true"></iframe>';
}
if (section != null) {
url = url + "&pageName=ReportSection" + section;
}
const cover = document.getElementById('dash-cover');
cover.insertAdjacentHTML("beforebegin", iframe);
});
[/tcb-script]
Acerca del Observatorio