Sites Pertecentes a (o) CE
Endereço | Nota | Erros | Avisos |
---|---|---|---|
www.irapuanpinheiro.ce.gov.br/campanha.php?pg=COVID-
|
73.33 | 93 | 1.432 |
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 | 8 | 43 374 482 1002 2583 2966 2995 3027 |
43 | <![CDATA[<script> var tam = 15; function mudaFonte(tipo, elemento) { if (tipo == "mais") { if (tam < 24) tam += 1; } else { if (tam > 10) tam -= 1; } document.getElementById("Noticia").style.fontSize = tam + "px"; document.getElementById("Descricao").style.fontSize = tam + "px"; } function printDiv(id, pg, url) { var oPrint, oJan; oPrint = window.document.getElementById(id).innerHTML; oJan = window.open(pg); oJan.document.write(oPrint); oJan.document.write(url); oJan.window.print(); oJan.document.close(); oJan.focus(); } // Função contraste INICIO (function() { var Contrast = { storage: 'contrastState', cssClass: 'contrast', currentState: null, check: checkContrast, getState: getContrastState, setState: setContrastState, toogle: toogleContrast, updateView: updateViewContrast }; window.toggleContrast = function() { Contrast.toogle(); }; Contrast.check(); function checkContrast() { this.updateView(); } function getContrastState() { return localStorage.getItem(this.storage) === 'true'; } function setContrastState(state) { localStorage.setItem(this.storage, '' + state); this.currentState = state; this.updateView(); } function updateViewContrast() { var body = document.body; if (this.currentState === null) this.currentState = this.getState(); if (this.currentState) body.classList.add(this.cssClass); else body.classList.remove(this.cssClass); } function toogleContrast() { this.setState(!this.currentState); } })(); // Função contraste FIM </script>]]> |
374 | <![CDATA[<script> $(document).ready(function() { $(window).scroll(function() { if ($(this).scrollTop() > 100) { $("#logo-top-bar").css({ "margin-top": "-25.5Vh", "transition": ".4s", "z-index": "-2" }); $("#logo-top-bar").fadeOut("800"); $('#scroll').fadeIn(); } else { $("#logo-top-bar").fadeIn("800"); $("#logo-top-bar").css({ "margin-top": "0px" }); $('#scroll').fadeOut(); } }); $('#scroll').click(function() { $("html, body").animate({ scrollTop: 0 }, 0); return false; }); $('#menu-acessiblidade').hide().contents().hide(); $('#btnperq').on('click', function(e) { e.preventDefault(); $('#menu-acessiblidade').slideToggle('fast', function(e) { if ($(this).is(':visible')) { $(this).contents().fadeIn(1000); } else { $(this).contents().hide(); } }); }) }); </script>]]> |
482 | <![CDATA[<script type="text/javascript"> google.charts.load('current', { 'packages': ['corechart'] }); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['Data', 'SUSPEITOS', 'CONFIRMADOS', 'ÓBITOS', 'DESCARTADOS', 'CASOS NOTIFICADOS', 'CURADOS', 'INTERNADOS', 'ISOLAMENTO' ], ['08/12', 0, 912, 14, 1999, 2911, 898, 0, 0 ], ['22/02', 0, 955, 14, 2064, 3019, 938, 0, 0 ], ['23/02', 0, 955, 14, 2067, 3022, 938, 0, 0 ], ['25/02', 0, 955, 14, 2068, 3023, 940, 0, 0 ], ['07/03', 0, 955, 14, 2072, 3027, 940, 0, 0 ], ['10/03', 0, 955, 14, 2074, 3029, 940, 0, 0 ], ['17/03', 0, 955, 14, 2078, 3033, 940, 0, 0 ], ['04/04', 0, 955, 14, 2088, 3043, 940, 0, 0 ], ['24/06', 0, 966, 14, 2195, 3161, 942, 0, 0 ], ['20/07', 0, 1209, 15, 2593, 3802, 1169, 0, 0 ], ['25/08', 0, 1225, 15, 2738, 3963, 1207, 0, 0 ], ['19/09', 0, 1226, 15, 2789, 4015, 1211, 0, 0 ], ['31/01', 0, 1353, 15, 3046, 4398, 1317, 0, 0 ], ]); var options = { title: '', height: 400, chartArea: { width: '90%' }, legend: { position: 'top' }, series: { 0: { color: '#e67e22' }, 1: { color: '#e74c3c' }, 2: { color: '#2D3436' }, 3: { color: '#27ae60' }, 4: { color: '#8e44ad' }, 5: { color: '#2980b9' }, 6: { color: '#1abc9c' }, 7: { color: '#7f8c8d' } }, lineWidth: 4, hAxis: { title: '' }, vAxis: { minValue: 0 } }; var chart = new google.visualization.LineChart(document.getElementById('chart_div')); chart.draw(data, options); var columns = []; var series = {}; for (var i = 0; i < data.getNumberOfColumns(); i++) { columns.push(i); if (i > 0) { series[i - 1] = {}; } } google.visualization.events.addListener(chart, 'select', function () { var sel = chart.getSelection(); // if selection length is 0, we deselected an element if (sel.length > 0) { // if row is undefined, we clicked on the legend if (sel[0].row === null) { var col = sel[0].column; if (columns[col] == col) { // hide the data series columns[col] = { label: data.getColumnLabel(col), type: data.getColumnType(col), calc: function () { return null; }, }; // grey out the legend entry series[col - 1].color = '#CCCCCC'; } else { // show the data series columns[col] = col; series[col - 1].color = null; } var view = new google.visualization.DataView(data); view.setColumns(columns); chart.draw(view, options); } } }); } </script>]]> |
1002 | <![CDATA[<script type="text/javascript"> google.charts.load('current', { 'packages': ['corechart'] }); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['Data', 'Receita', 'Empenhado', 'liquidado', 'pago'], ['', 300000.00, 0.00, 0.00, 0.00], ]); var formatter = new google.visualization.NumberFormat({ decimalSymbol: ',', groupingSymbol: '.' }); formatter.format(data, 1); var options = { title: '', height: 400, chartArea: { width: '85%' }, animation: { "startup": true, duration: 2000, easing: 'out' }, legend: { position: 'top' }, series: { 0: { color: '#27ae60' }, 1: { color: '#f39c12' }, 2: { color: '#e67e22' }, 3: { color: '#c0392b' } }, lineWidth: 1, hAxis: { title: 'Demonstrativo das despesas empenhadas, liquidadas e pagas durunte a pandemia', viewWindow: { min: 0, } }, vAxis: { minValue: 0 } }; var chart = new google.visualization.BarChart(document.getElementById('chart_div2')); chart.draw(data, options); } </script>]]> |
2583 | <![CDATA[<script> shortcut.add("Alt+H", function() { window.location.assign("index.php"); }); shortcut.add("Alt+Shift+1", function() { window.location.assign("acessibilidade.php"); }); shortcut.add("Alt+9", function() { window.scrollTo(0, 0); }); shortcut.add("Alt+C", function() { window.location.href = '#ancora'; }); </script>]]> |
2966 | <![CDATA[<script> var cookies2 = document.cookie; if (cookies2.indexOf("usuarioCookiesPm") == -1) { document.getElementById('cookie-container').style.display = "flex"; } function fechaDiv(){ document.cookie = 'usuarioCookiesPm=SIM; max-age=86400;path=/'; $.post("data_cookies.php", { usercookies : "YES" }, function(msg){ }) document.getElementById('cookie-container').style.display = "none"; } </script>]]> |
2995 | <![CDATA[<script type="text/javascript" language="javascript"> function rolar_para(botaoContatos) { var targetOffset = $(botaoContatos).offset().top; $('html, body').animate({ scrollTop: targetOffset - 100 }, 2000); } $(document).ready( function() { (function($) { $('#filter').keyup(function() { var rex = new RegExp($(this).val(), 'i'); $('.linha').hide(); $('.linha').filter(function() { return rex.test($(this).text()); }).show(); }) }(jQuery)); }); </script>]]> |
3027 | <![CDATA[<script> $(function() { /* Custom buttons */ $('#font-setting-buttons').easyView({ container: 'body, .row', increaseSelector: '.increase-me', decreaseSelector: '.decrease-me', normalSelector: '.reset-me', contrastSelector: '.change-me' }); }); </script>]]> |