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

Sites Pertecentes a (o) SP

Endereço Nota Erros Avisos

ciagri.iea.sp.gov.br/bancodedados/borracha

72.08 29 109
Recomendações Avaliadas
1.1 Respeitar os Padrões Web.

Recomendações

Número Descrição Quantidade Linhas Código Fonte
1.1.5 Presença de javascript(s) in-line 2 164 362
1.1.6 Presença de javascript(s) interno 8 20 89 336 615 668 738 788 832
164 <![CDATA[<a class="govsp-acessibilidade" href="#" id="altocontraste" accesskey="3" onclick="window.toggleContrast()" onkeydown="window.toggleContrast()"><img class="govsp-acessibilidade" src="https://saopaulo.sp.gov.br/barra-govsp/img/contrast.png" alt="Contraste" ></a>]]>
362 <![CDATA[<a href="#" onclick="appLogin.doLogout()">Sair</a>]]>
20 <![CDATA[<script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-139474634-1'); </script>]]>
89 <![CDATA[<script> new window.VLibras.Widget('https://vlibras.gov.br/app'); </script>]]>
336 <![CDATA[<script> function mostraPesquisa() { document.getElementById("formBuscaAutor").className = ''; document.getElementById("buscaGoogle").className = ''; } </script>]]>
615 <![CDATA[<script> if (!Modernizr.promises) { document.getElementById('body').innerHTML = '<br/><br/><h4>Desculpe, seu navegador não possui os recursos necessários para visualizar esta página.</h4><br/><br/>'; } </script>]]>
668 <![CDATA[<script> var appSpinner = new Vue({ el: '#app-spinner', data: { loading: false }, methods: { show: function () { this.loading = true; jQuery('#spinner-overlay').show(); }, hide: function () { this.loading = false; jQuery('#spinner-overlay').hide(); } } }); </script>]]>
738 <![CDATA[<script> var appLogin = new Vue({ el: '#app-login', data: { message: null, password: '' }, methods: { setMessage: function (value) { this.message = value; }, clearPassword: function () { this.password = ''; }, loginStarted: function () { this.setMessage(null); this.clearPassword(); appSpinner.show(); }, loginCompleted: appSpinner.hide, doLogout: function () { jQuery('#logout-form').submit(); }, loginSucceeded: function (login) { jQuery('#login-modal').modal('hide'); if (typeof (window.loginSucceeded) == "function") { this.updateSnippet(login); window.loginSucceeded(); } else location.reload(); }, logoutSucceeded: function () { if (typeof (window.logoutSucceeded) == "function") { this.updateSnippet(); window.logoutSucceeded(); } else location.reload(); }, updateSnippet: function (login) { if (login != undefined) { jQuery('#logged-in-snippet').removeClass('hide'); jQuery('#logged-out-snippet').addClass('hide'); jQuery('#login-snippet-usuario').html(login); } else { jQuery('#logged-in-snippet').addClass('hide'); jQuery('#logged-out-snippet').removeClass('hide'); jQuery('#login-snippet-usuario').html(''); } } } }); </script>]]>
788 <![CDATA[<script> var appPeriod = new Vue({ el: '#app-period', data: { isAuthenticated: false, years: jQuery([2020,2021,2022,2023]).toArray(), firstPublicYear: 2020, availableYears: null, firstYear: null, lastYear: null, }, watch: { firstYear: function (newValue, oldValue) { this.lastYear = Math.max(this.firstYear, this.lastYear); }, lastYear: function (newValue, oldValue) { this.firstYear = Math.min(this.firstYear, this.lastYear); } }, mounted: function () { this.updateYears(); }, methods: { userLoggedIn: function () { this.isAuthenticated = true; this.updateYears(); }, userLoggedOut: function () { this.isAuthenticated = false; this.updateYears(); }, updateYears: function () { this.availableYears = this.isAuthenticated ? this.years : this.years.filter(function (y) { return y >= this.firstPublicYear }, this); if (!this.availableYears.includes(this.firstYear)) this.firstYear = this.availableYears[this.availableYears.length - 1]; if (!this.availableYears.includes(this.lastYear)) this.lastYear = this.firstYear; } } }); </script>]]>
832 <![CDATA[<script> var loginSucceeded = function () { appPeriod.userLoggedIn(); appButtons.spreadSheetVisible = true; }; var logoutSucceeded = function () { appPeriod.userLoggedOut(); appButtons.spreadSheetVisible = false; }; var appButtons = new Vue({ el: '#app-buttons', data: { spreadSheetVisible: false, }, mounted: function () { document.getElementById('data-button').click(); }, methods: { submitData: function (e) { // When clicked, always requests the first page. if (typeof appPagination !== 'undefined') appPagination.setPage(1); }, submitSpreadsheet: function (e) { var href = e.target.href; var i = href.indexOf("?"); if (i >= 0) href = href.substr(0, i); e.target.href = href + '?' + jQuery('form').serialize(); } } }); </script>]]>