Logo CEWEB.br Logo NIC.br Logo CGI.br
Home Sobre o projeto

Sites Atualizados

Lista dos novos sites adicionados a plataforma na última atualização

Endereço Nota Erros Avisos

ibge.gov.br/videos.html

93.58 37 187
Recomendações Avaliadas
2.2 Garantir que os objetos programáveis sejam acessíveis.

Recomendações

Número Descrição Quantidade Linhas Código Fonte
2.2.6 Presença do elemento SCRIPT sem o elemento NOSCRIPT 7 13 25 75 368 794 826 867
13 <![CDATA[<script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-285486-1'); gtag('config', 'UA-285486-76', {'groups':'ibgelabs'}); </script>]]>
25 <![CDATA[<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-5ND2WBQ');</script>]]>
75 <![CDATA[<script type="application/json" class="joomla-script-options new">{"csrf.token":"d01034f90f5c4d335ade03e3a808a04d","system.paths":{"root":"","base":""}}</script>]]>
368 <![CDATA[<script> var page = getParameterByName("pagina", window.location.href) != null ? getParameterByName("pagina", window.location.href) : "1"; var qtdItens = 15; var totalItens = 0; var totalPages = 0; var filters = []; var itens = []; var currentLista = getParameterByName("lista", window.location.href) != null ? getParameterByName("lista", window.location.href) : "todos"; var currentVideo = getParameterByName("video", window.location.href) != null ? getParameterByName("video", window.location.href) : ""; // var filteredItens = []; var playlists = [{"id":"PLAvMMJyHZEaE01MX-F_A5ZT0qfxf5TFQ8","channelId":"UCvvMwDTf_LG68j83N-esY-A","title":"Institucional","slug":"institucional","update":false},{"id":"PLAvMMJyHZEaE_gzGaoD5RkmCxO6rBexI6","channelId":"UCvvMwDTf_LG68j83N-esY-A","title":"IBGE Explica","slug":"explica","update":true},{"id":"PLAvMMJyHZEaFnbAHb_0limdkGL5Z_HBIi","channelId":"UCvvMwDTf_LG68j83N-esY-A","title":"IBGE Explica - ODS","slug":"ods","update":true}]; jQuery(document).ready(function(){ if(currentLista == "todos"){ listAllPlaylists(); } else { changePlaylist(jQuery("#"+currentLista)); return false; } }); function listAllPlaylists() { var dataArray = []; jQuery(".menu-item").removeClass("active"); jQuery("#todos").addClass("active"); jQuery("#pageTitle").text("Todos"); jQuery("#listaVideos").empty(); jQuery.each(playlists,function(i, x){ jQuery.ajax({url:"/json_cache/youtube/" + x.id + ".json",async:false}). done(function(data){ data = (data.items == undefined) ? JSON.parse(data) : data; dataArray = dataArray.concat(data.items); }); }); itens = dataArray;//.flat(); currentLista = "todos"; preparePagination(itens.length); setPage(page); // showContent(itens); } function changePlaylist(item) { var id = item.attr("data-id"); currentLista = item.attr("id"); jQuery(".menu-item").removeClass("active"); item.addClass("active"); jQuery("#pageTitle").text(item.find("button").text()); jQuery.ajax({url:"/json_cache/youtube/" + id + ".json",async:false}) .done(function(data){ data = (data.items == undefined) ? JSON.parse(data) : data; jQuery("#listaVideos").empty(); itens = data.items; preparePagination(itens.length); setPage(1); // showContent(itens); }); } function showContent(data){ jQuery("#listaVideos").empty(); jQuery.each(data,function(index,b){ if(index <= (page)*qtdItens && index >= (page-1)*qtdItens) { var content = "<div class='quadro-video'>"; content += "<div onclick='playVideo(" + '"' + b.snippet.resourceId.videoId + '"' + ");' class='image-video'><img src='"+b.snippet.thumbnails.medium.url+"' /></div>"; content += "<p class='title'><a href='https://www.youtube.com/watch?v=" + b.snippet.resourceId.videoId + "' target='_blank'><strong>"+b.snippet.title+"</strong></a>"; var dt = new Date(b.snippet.publishedAt); content += " <em>"+dt.getDate()+"/"+(dt.getMonth()+1)+"/"+dt.getFullYear()+"</em></p>"; content += "</div>"; jQuery("#listaVideos").append(content); if(page*qtdItens == index+1){ return false; } } }); if(currentVideo != "") { playVideo(currentVideo); currentVideo = ""; } var jsonURLParams = {} var urlParts = window.location.href.split('?'); var mainUrl = urlParts[0]; urlParameters = urlParts[1] != null ? urlParts[1] : ''; //avoid last url character jsonURLParams['pagina'] = page; jsonURLParams['lista'] = currentLista; history.pushState({'title': page}, page + ' ' + document.title, mainUrl + '?' + jQuery.param(jsonURLParams)); } function playVideo(videoID) { //jQuery('#videoYoutube').attr('src', ); jQuery('.lightbox .lightbox-container').append('<iframe id="videoYoutube" width="560" height="315" src="https://www.youtube.com/embed/'+videoID+'?autoplay=1" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe><button onclick="closeVideo()"><i class="fa fa-close"></i></button>'); jQuery('.lightbox').fadeIn(); } function closeVideo() { jQuery('.lightbox').fadeOut(); jQuery('.lightbox .lightbox-container').empty(); } jQuery('.lightbox').click(function(e){ e.preventDefault; closeVideo(); }); /* Mesmo de Institucional > Parcerias Unificar IBGE PAGINATION? */ function setPage(current) { if(current > 0 && current <= totalPages) { page = current; jQuery(".current-page").text(page); jQuery(".page-item").removeClass("active botao--inativo"); jQuery("#page_" + page).addClass("active botao--inativo"); showContent(itens); if( page == 1 ) { jQuery(".prev").addClass("botao--inativo"); jQuery(".next").removeClass("botao--inativo"); } else if( page == totalPages ) { jQuery(".prev").removeClass("botao--inativo"); jQuery(".next").addClass("botao--inativo"); } else { jQuery(".prev").removeClass("botao--inativo"); jQuery(".next").removeClass("botao--inativo"); } var jsonURLParams = {} var urlParts = window.location.href.split('?'); var mainUrl = urlParts[0]; urlParameters = urlParts[1] != null ? urlParts[1] : ''; //avoid last url character jsonURLParams['pagina'] = page; jsonURLParams['lista'] = currentLista; history.pushState({'title': page}, page + ' ' + document.title, mainUrl + '?' + jQuery.param(jsonURLParams)); } } function preparePagination(result) { totalItens = result; totalPages = Math.ceil(result/qtdItens); jQuery(".list-size").text(totalItens); jQuery(".last-page").text(totalPages); if(totalPages > 1){ jQuery(".paginacao, .pagination__legend").show(); jQuery("pagination__legend").show(); jQuery(".page-item").parent().remove(); for (var l=0; l < totalPages; l++) { jQuery("#startPaginationItens").after("<li><button id='page_" + (totalPages-l) + "' class='page-item botao' onclick='setPage(" + (totalPages-l) + ")'>" + (totalPages-l) + "</li>"); } } else { jQuery(".paginacao, .pagination__legend").hide(); } } function getParameterByName(name, url) { if (!url) url = window.location.href; name = name.replace(/[\[\]]/g, "\\$&"); var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), results = regex.exec(url); if (!results) return null; if (!results[2]) return ''; return decodeURIComponent(results[2].replace(/\+/g, " ")); } </script>]]>
794 <![CDATA[<script> jQuery('.accordion-mobile span').click(function(evt) { if (jQuery(window).width() < 1024) { jQuery(this).next().toggle("slide"); jQuery(this).toggleClass("active"); } }); var baseSticky = 95; jQuery(document).ready(function(){ var scroll = jQuery(window).scrollTop(); changeHeaderScroll(scroll); }); jQuery(window).scroll(function() { var scroll = jQuery(window).scrollTop(); changeHeaderScroll(scroll); }); function changeHeaderScroll(scroll) { if (scroll >= baseSticky) { jQuery("body").addClass("sticky"); } else { jQuery("body").removeClass("sticky"); } } </script>]]>
826 <![CDATA[<script> var unique_getCod_var = ''; function unique_getCodMiniURLQR_main(){ var local_url = window.location.toString(); if (local_url.indexOf("barragov")<0) { var full_url = 'https://cod.ibge.gov.br/min?js=unique_getCod_var=&u=' + encodeURIComponent(local_url); //unique_getCodMiniURLQR_ajax(full_url,unique_getCodMiniURLQR_AfterFunc); } } function unique_getCodMiniURLQR_ajax(url,afterfunction) { //Onde: url = URL a ser carregada | e afterfunction = fnção a ser executada apos o carregamento da url, opcional var headID = document.getElementsByTagName("head")[0]; var newScript = document.createElement('script'); newScript.type = 'text/javascript'; newScript.src = url; newScript.id = 'tempdatascript' + Math.floor(Math.random()*9999999); headID.appendChild(newScript); if(navigator.appName == 'Microsoft Internet Explorer'){ newScript.onreadystatechange= function(){ if (this.readyState == 'complete' || this.readyState == 'loaded')afterfunction();} }else{ newScript.onload = afterfunction; } } function unique_getCodMiniURLQR_AfterFunc(){ //Matenha esta funcao vazia } unique_getCodMiniURLQR_main(); </script>]]>
867 <![CDATA[<script> var erro_servico = []; </script>]]>