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

Sites Verificados

Lista com todos os sítios que foram verificados pela TIC Web Acessibilidade. Dentro de cada domínio, há informações detalhadas sobre as páginas coletadas, bem como os erros e avisos de cada uma *.

Endereço Nota Erros Avisos

ibge.gov.br/atendimento.html

86.54 55 226
Recomendações Avaliadas
1.1 Respeitar os Padrões Web.

Recomendações

Número Descrição Quantidade Linhas Código Fonte
1.1.3 Presença de CSS(s) in-line 16 82 87 98 99 100 101 154 209 393 396 411 442 906 1015 1057 1057
1.1.4 Presença de CSS(s) interno 2 88 1057
1.1.5 Presença de javascript(s) in-line 7 148 154 198 209 394 426 435
1.1.6 Presença de javascript(s) interno 7 13 25 75 478 1077 1109 1150
82 <![CDATA[<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5ND2WBQ" height="0" width="0" style="display:none;visibility:hidden"></iframe>]]>
87 <![CDATA[<div class="barra-do-governo" style="position: relative;z-index: 10000000;"> <style> div.barra-body { margin: 0; padding: 0; height: 44px; } </style> <div class="barra-body"> <div id="barra-brasil" style="background:#7F7F7F; height: 20px; padding:0 0 0 10px;display:block;"> <ul id="menu-barra-temp" style="list-style:none;"> <li style="display:inline; float:left;padding-right:10px; margin-right:10px; border-right:1px solid #EDEDED"> <a href="http://brasil.gov.br" style="font-family:sans,sans-serif; text-decoration:none; color:white;">Portal do Governo Brasileiro</a> </li> </ul> </div> <!-- Barra Brasil--> <script defer="defer" src="https://www.ibge.gov.br/includes/barraBrasil.js" type="text/javascript"></script> </div> </div>]]>
98 <![CDATA[<div id="barra-brasil" style="background:#7F7F7F; height: 20px; padding:0 0 0 10px;display:block;"> <ul id="menu-barra-temp" style="list-style:none;"> <li style="display:inline; float:left;padding-right:10px; margin-right:10px; border-right:1px solid #EDEDED"> <a href="http://brasil.gov.br" style="font-family:sans,sans-serif; text-decoration:none; color:white;">Portal do Governo Brasileiro</a> </li> </ul> </div>]]>
99 <![CDATA[<ul id="menu-barra-temp" style="list-style:none;"> <li style="display:inline; float:left;padding-right:10px; margin-right:10px; border-right:1px solid #EDEDED"> <a href="http://brasil.gov.br" style="font-family:sans,sans-serif; text-decoration:none; color:white;">Portal do Governo Brasileiro</a> </li> </ul>]]>
100 <![CDATA[<li style="display:inline; float:left;padding-right:10px; margin-right:10px; border-right:1px solid #EDEDED"> <a href="http://brasil.gov.br" style="font-family:sans,sans-serif; text-decoration:none; color:white;">Portal do Governo Brasileiro</a> </li>]]>
101 <![CDATA[<a href="http://brasil.gov.br" style="font-family:sans,sans-serif; text-decoration:none; color:white;">Portal do Governo Brasileiro</a>]]>
154 <![CDATA[<label style="font-size: 0;" for="mod-search-searchword">Buscar</label>]]>
209 <![CDATA[<label style="font-size: 0;" for="mod-search-searchword">Buscar</label>]]>
393 <![CDATA[<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="upload" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-upload fa-w-16 fa-3x" style="width: 25px; height: 18px; fill: #1351b4; color: #1351b4; float: left; margin: 13px -30px 0 5px; padding-left: 10px;"><path fill="currentColor" d="M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z" class=""></path></svg>]]>
396 <![CDATA[<div class="files-list-container" style="display:none;">Arquivos selecionados: <div id="files-list"></div></div>]]>
411 <![CDATA[<textarea required cols="50" rows="5" maxlength="65000" placeholder="Mensagem" name="message" id="message" class="rsform-text-box" style="height: 257px;"></textarea>]]>
442 <![CDATA[<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="width:35px; height:35px; display:inline; margin-top:6px;" width="200px" height="200px" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"> <g transform="rotate(0 50 50)"> <rect x="48" y="24" rx="2" ry="3" width="4" height="12" fill="#777777"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.9166666666666666s" repeatCount="indefinite"></animate></rect></g><g transform="rotate(30 50 50)"> <rect x="48" y="24" rx="2" ry="3" width="4" height="12" fill="#777777"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.8333333333333334s" repeatCount="indefinite"></animate></rect></g><g transform="rotate(60 50 50)"> <rect x="48" y="24" rx="2" ry="3" width="4" height="12" fill="#777777"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.75s" repeatCount="indefinite"></animate></rect></g><g transform="rotate(90 50 50)"> <rect x="48" y="24" rx="2" ry="3" width="4" height="12" fill="#777777"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.6666666666666666s" repeatCount="indefinite"></animate></rect></g><g transform="rotate(120 50 50)"> <rect x="48" y="24" rx="2" ry="3" width="4" height="12" fill="#777777"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.5833333333333334s" repeatCount="indefinite"></animate></rect></g><g transform="rotate(150 50 50)"> <rect x="48" y="24" rx="2" ry="3" width="4" height="12" fill="#777777"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.5s" repeatCount="indefinite"></animate></rect></g><g transform="rotate(180 50 50)"> <rect x="48" y="24" rx="2" ry="3" width="4" height="12" fill="#777777"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.4166666666666667s" repeatCount="indefinite"></animate></rect></g><g transform="rotate(210 50 50)"> <rect x="48" y="24" rx="2" ry="3" width="4" height="12" fill="#777777"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.3333333333333333s" repeatCount="indefinite"></animate></rect></g><g transform="rotate(240 50 50)"> <rect x="48" y="24" rx="2" ry="3" width="4" height="12" fill="#777777"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.25s" repeatCount="indefinite"></animate></rect></g><g transform="rotate(270 50 50)"> <rect x="48" y="24" rx="2" ry="3" width="4" height="12" fill="#777777"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.16666666666666666s" repeatCount="indefinite"></animate></rect></g><g transform="rotate(300 50 50)"> <rect x="48" y="24" rx="2" ry="3" width="4" height="12" fill="#777777"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.08333333333333333s" repeatCount="indefinite"></animate></rect></g><g transform="rotate(330 50 50)"> <rect x="48" y="24" rx="2" ry="3" width="4" height="12" fill="#777777"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="0s" repeatCount="indefinite"></animate></rect></g> </svg>]]>
906 <![CDATA[<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve"><path class="st0" d="M388,235.3c-25.7,0.1-50.8-8-71.8-22.9v104.5c0,52.5-42.6,95-95.1,95c-52.5,0-95-42.6-95-95.1s42.6-95,95.1-95 c4.4,0,8.7,0.3,13,0.9v52.6c-23-7.2-47.5,5.5-54.7,28.5c-7.2,23,5.5,47.5,28.5,54.7s47.5-5.5,54.7-28.5c1.3-4.2,2-8.7,2-13.1V112.6 h51.4c0,4.3,0.3,8.7,1.1,13l0,0c3.6,19.3,15,36.3,31.5,46.9c11.6,7.7,25.2,11.8,39.2,11.8V235.3z"/></svg>]]>
1015 <![CDATA[<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve"><path class="st0" d="M388,235.3c-25.7,0.1-50.8-8-71.8-22.9v104.5c0,52.5-42.6,95-95.1,95c-52.5,0-95-42.6-95-95.1s42.6-95,95.1-95 c4.4,0,8.7,0.3,13,0.9v52.6c-23-7.2-47.5,5.5-54.7,28.5c-7.2,23,5.5,47.5,28.5,54.7s47.5-5.5,54.7-28.5c1.3-4.2,2-8.7,2-13.1V112.6 h51.4c0,4.3,0.3,8.7,1.1,13l0,0c3.6,19.3,15,36.3,31.5,46.9c11.6,7.7,25.2,11.8,39.2,11.8V235.3z"/></svg>]]>
1057 <![CDATA[<path style="stroke: #071d41;stroke-width:9;stroke-linecap:round;" d="m 22,23 v 13"></path>]]>
1057 <![CDATA[<path style="stroke:#fff;stroke-width:4;stroke-linejoin:round;" d="m 4,43 3,-6 4,3 z"></path>]]>
88 <![CDATA[<style> div.barra-body { margin: 0; padding: 0; height: 44px; } </style>]]>
1057 <![CDATA[<style type="text/css">.a {font: normal bold 11px Open Sans, sans-serif;}</style>]]>
148 <![CDATA[<a id="nav-toggle" onclick='$(".envolve_menu--principal").toggle(); $(this).toggleClass("active");jQuery("html").toggleClass("noscroll");'>&#9776;</a>]]>
154 <![CDATA[<button class="button btn btn-primary header__busca--btn" aria-label="Buscar" onclick="this.form.searchword.focus();"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15"><path class="cls-1" d="M16.3,14.32l-3.84-3.84a5.79,5.79,0,0,0,.88-3.06,5.92,5.92,0,1,0-5.92,5.92,5.79,5.79,0,0,0,3.06-.88l3.84,3.84a.71.71,0,0,0,1,0l1-1A.71.71,0,0,0,16.3,14.32Zm-8.88-3a3.95,3.95,0,1,1,3.95-3.95A4,4,0,0,1,7.42,11.37Z" transform="translate(-1.5 -1.5)"/></svg></button>]]>
198 <![CDATA[<a id="nav-toggle" onclick='$(".envolve_menu--principal").toggle(); $(this).toggleClass("active");jQuery("html").toggleClass("noscroll");'>&#9776;</a>]]>
209 <![CDATA[<button class="button btn btn-primary header__busca--btn" aria-label="Buscar" onclick="this.form.searchword.focus();"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15"><path class="cls-1" d="M16.3,14.32l-3.84-3.84a5.79,5.79,0,0,0,.88-3.06,5.92,5.92,0,1,0-5.92,5.92,5.79,5.79,0,0,0,3.06-.88l3.84,3.84a.71.71,0,0,0,1,0l1-1A.71.71,0,0,0,16.3,14.32Zm-8.88-3a3.95,3.95,0,1,1,3.95-3.95A4,4,0,0,1,7.42,11.37Z" transform="translate(-1.5 -1.5)"/></svg></button>]]>
394 <![CDATA[<input type="button" class="btn btn-add" id="btn-addFiles" onclick="add_file();" value="Adicionar Arquivos">]]>
426 <![CDATA[<div id="sucesso-container" class="sucesso-container" onclick="$(this).removeClass('sucesso-container--show');"> <p class="sucesso-mensagem"> Mensagem enviada com sucesso!<br> <small>Protocolo de atendimento nº </small> <span id="protocolo"></span> <small>Você receberá um e-mail de confirmação.</small> </p> <div class="sucesso-container--close-btn">Fechar [x]</div> </div>]]>
435 <![CDATA[<div id="falha-container" class="falha-container" onclick="$(this).removeClass('falha-container--show');"> <p class="falha-mensagem">Falha ao enviar a mensagem.</p> <div class="falha-container--close-btn">Fechar [x]</div> </div>]]>
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":"02ab103caa669ebe9fe820030220a1a8","system.paths":{"root":"","base":""}}</script>]]>
478 <![CDATA[<script> var lang = "pt-BR"; function sendData() { $('#loading-container').addClass('loading-container--show'); const XHR = new XMLHttpRequest(); // Bind the FormData object and the form element var FD = new FormData( $('#ticketform')[0] ); // appendando arquivos ao FormData for (i = 0; i < filesArray.length; i++) { if(typeof filesArray[i]!="undefined"){ FD.append("attachment[]", filesArray[i]); } } // Display the values for (var value of FD.values()) { console.log(value); } // Display the key/value pairs for(var pair of FD.entries()) { console.log(pair[0]+ ', '+ pair[1]); } // Define what happens on successful data submission XHR.addEventListener( "load", function(event) { console.debug( event.target.responseText ); } ); // Define what happens in case of error XHR.addEventListener( "error", function( event ) { console.error(event); } ); // Set up our request // XHR.open( "POST", "http://w3.homologacao.ibge.gov.br:8081/ticket", true ); XHR.open( "POST", "https://www.ibge.gov.br/atendimentoapi/ticket", true ); XHR.setRequestHeader("Access-Control-Allow-Origin", "*"); // XHR.setRequestHeader("Content-Type", "application/json"); // The data sent is what the user provided in the form XHR.send(FD); XHR.addEventListener("load", transferComplete); XHR.addEventListener("error", transferFailed); } // ...and take over its submit event. var onSubmit = function(token) { event.preventDefault(); console.log('reCaptcha success!'); if(validateName($('#authorName')) && required($('#authorEmail')) && validateEmail($('#authorEmail')) && required($('#category')) && required($('#title')) && required($('#message')) && validateFilesField($('#ticketform .file-input')) ){ $this = $(this); /** prevent double posting */ if ($this.data().isSubmitted) { return false; } sendData(); /** mark the form as processed, so we will not process it again */ $this.data().isSubmitted = true; // limpa o isSubmitted depois de 2 segundos para permitir envio de novo form var checkSubmit = setInterval(function(){ if ($this.data().isSubmitted) { clearInterval(checkSubmit); $this.data().isSubmitted = false; } }, 2000); return true; } }; function transferComplete(evt) { console.log('Mensagem sendo enviada...'); console.log(evt); $('#loading-container').removeClass('loading-container--show'); var status = JSON.parse(evt.target.status); if(status < 300){ var protocolo = JSON.parse(evt.target.response).id; console.log('Mensagem recebida com sucesso! Status:'+status); $('#protocolo').text(protocolo); $('#falha-container').removeClass('falha-container--show'); $('#sucesso-container').addClass('sucesso-container--show'); resetForm(); } else { console.log('Erro HTTP status:'+status); $('#sucesso-container').removeClass('sucesso-container--show'); $('#falha-container').addClass('falha-container--show'); resetForm(); } } function transferFailed(evt) { var status = JSON.parse(evt.target.status); console.log('Falha no envio da mensagem. Status:'+status); $('#loading-container').removeClass('loading-container--show'); console.log(evt); $('#sucesso-container').removeClass('sucesso-container--show'); $('#falha-container').addClass('falha-container--show'); resetForm(); } function resetForm(){ $('#ticketform')[0].reset(); $('.rsform-block-file .control-label .formError').text('Entrada Inválida'); $('.rsform-block-file').removeClass('error'); $('.fileblock--child').remove(); $('.files-list-container').hide(); filesArray = []; } // FUNCTION PARA LISTAR CATEGORIAS NO SELECT PELA API/CATEGORIES function getCategories(){ var url = new URL( "https://www.ibge.gov.br/atendimentoapi/categories" ); // const url = new URL( "http://api.atendimento.homolog/categories" ); var params = { "lang": "PT_BR" }; Object.keys(params).forEach(key => url.searchParams.append(key, params[key])); var headers = { "Content-Type": "application/json", "Accept": "application/json", }; fetch(url, { method: "GET", headers, }).then(response => response.json()).then(function(data){ Object.keys(data).forEach(key => $('#category').append($("<option />").val(key).text(data[key]))); }); } this.getCategories(); // get user IP var ipifyUrl = 'https://api.ipify.org?format=json'; fetch(ipifyUrl, { method: "GET" }).then(response => response.json()).then(function(data){ $('#authorIp').val(data.ip); }); function required(inputtx){ if (inputtx[0].value.length == 0){ // alert("message"); inputtx.parent().parent().addClass('error'); return false; } inputtx.parent().parent().removeClass('error'); return true; } function validateName(inputtxt) { $('.rsform-block-authorName .control-label .formError').text(''); if (inputtxt[0].value.length == 0){ inputtxt.parent().parent().addClass('error'); return false; } var numbers = /[0-9]/; if(inputtxt[0].value.match(numbers)) { $('.rsform-block-authorName .control-label .formError').text('Formato Inválido'); inputtxt.parent().parent().addClass('error'); return false; } else { inputtxt.parent().parent().removeClass('error'); return true; } } function validateEmail(mail){ var value = mail.value == undefined ? mail[0].value : mail.value; if(value.length == 0){ $('.rsform-block-authorEmail .control-label .formError').text('Campo obrigatório'); $('.rsform-block-authorEmail').addClass('error'); return (false) } // if(/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(value)) { if(/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/.test(value)) { $('.rsform-block-authorEmail').removeClass('error'); return (true) } // alert("You have entered an invalid email address!") $('.rsform-block-authorEmail .control-label .formError').text('Entrada Inválida'); $('.rsform-block-authorEmail').addClass('error'); return (false) } function formatPhoneNumber(phoneNumberString) { if(phoneNumberString.length > 0){ var cleaned, match = ("" + phoneNumberString).replace(/\D/g, "").match(/^(\d{2})(\d{5})(\d{4})$/); if(match){ $('.rsform-block-authorPhone').removeClass('error'); return "(" + match[1] + ") " + match[2] + "-" + match[3]; } else{ $('.rsform-block-authorPhone').addClass('error'); return null; } // return match ? "(" + match[1] + ") " + match[2] + "-" + match[3] : null; } else { $('.rsform-block-authorPhone').removeClass('error'); return null; } } function validateFiles(file){ var fileName= file.name; var fileIndex = filesArray.indexOf(file); // Formato de arquivos permitidos; // Imagem, PDF, Texto(word, ods,txt, csv), Planilhas(excel, libre office etc) e arquivos compactados // var reg = /(.*?)\.(jpg|bmp|jpeg|png|gif|tiff|webp|heif|eps|svg|doc|docx|pdf|ods|odt|txt|csv|xls|xlsx|zip|gz|bz2|z|rar|tar)$/; var reg = /(.*?)\.(jpg|bmp|jpeg|png|doc|docx|pdf|ods|odt|txt|csv|xls|xlsx|zip|gz|rar|tar|7z)$/; if(!fileName.toLowerCase().match(reg)){ $('.rsform-block-file .control-label .formError').append('<span>Formato de arquivo não permitido '+fileName+'</span>'); $('.rsform-block-file').addClass('error'); filesArray.splice(fileIndex,1); return false; } if(fileName.length > 50){ $('.rsform-block-file .control-label .formError').append('<span>O nome do arquivo '+fileName+ ' é muito grande. Envio limitado a 50 caracteres.</span>'); $('.rsform-block-file').addClass('error'); filesArray.splice(fileIndex,1); return false; } if(file.length > 0) sizeCheck(file.size); } function sizeCheck(fileSize) { var numb = fileSize/1024/1024; numb = numb.toFixed(2); // Tamanho máximo permitido = 20 MB if(numb > 20){ // 20MB $('.rsform-block-file .control-label .formError').append('<span>Total de '+numb+'MB. Tamanho máximo para envio de arquivos é 20MB.</span>'); $('.rsform-block-file').addClass('error'); return false; // alert('to big, maximum is 2MiB. You file size is: ' + numb +' MiB'); } } // variavel para armazenar os arquivos concatenados var filesArray = []; function validateFilesField(fileFields){ // $('.rsform-block-file .controls .formError').text('Entrada Inválida'); $('.rsform-block-file .control-label .formError span').remove(); $('.rsform-block-file').removeClass('error'); $('.file-block').removeClass('error'); var totalSize = 0; var totalFiles = 0; var filesList = ''; var removeBtn = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="trash" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="svg-inline--fa fa-trash fa-w-14 fa-3x" style="width:14px;height:14px;"><path fill="#1351b4" d="M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"></path></svg>'; $('#files-list div').remove(); // varrendo campos tipo file $(fileFields).each(function(fieldIdx){ var fileField = fileFields[fieldIdx]; // campo com algum arquivo selecionado if(fileField.files.length > 0){ // concatena os arquivos de cada campo na variavel filesArray var filesInputArray = Array.from(fileField.files); filesArray = filesArray.concat(filesInputArray); console.log(filesArray); } }); // removendo file inputs $('.fileblock--child').remove(); // varrendo todos os arquivos para validação $(filesArray).each(function(file){ //.name .type .size validateFiles(this,file); totalSize += this.size; totalFiles++; var fileIndex = filesArray.indexOf(this); var actualFileSize = calcSize(this.size);//this.size/1024/1024; if(fileIndex >= 0) filesList += '<div id="file_'+fileIndex+'"><span class="filename">'+this.name+'</span> <span class="filesize">'+actualFileSize+'<span class="removeBtn" onclick="removeFile('+fileIndex+');">'+removeBtn+'</span></span></div>'; // filesList += '<div id="file_'+fileIndex+'"><span class="filename">'+this.name+'</span> <span class="filesize">('+actualFileSize.toFixed(2)+' MB)<span class="removeBtn" onclick="removeFile('+fileIndex+');">'+removeBtn+'</span></span></div>'; }); $('#files-list').append(filesList); filesList == '' ? $('.files-list-container').hide() : $('.files-list-container').show(); if(sizeCheck(totalSize) == false){ return false; } console.log('total de arquivos:'+totalFiles); if(totalFiles > 20){ $('.rsform-block-file .control-label .formError').append('<span>Quantidade máxima para envio é de 20 arquivos.</span>'); $('.rsform-block-file').addClass('error'); return false; } else { return true; } } var fileCounter = 1; function add_file() { if($(".rsform-block-file .file-input").length <= 20){ $(".rsform-block-file .formControls").append("<div class='file-block fileblock--child fileblock-"+fileCounter+"'><div class='controls'><input id='fileblock-"+fileCounter+"' type='file' name='attachment[]' multiple hidden class='file-input rsform-input-box' onchange=\"validateFilesField($('#ticketform .file-input'));\"><button class='btn btn-remove' id='fileblock-"+fileCounter+"--remove' onclick=remove_file(this);>Remover</button> <span class='formValidation'><span class='formError'>Entrada Inválida</span></span></div></div>"); $('#fileblock-'+fileCounter).click(); fileCounter++; } if($(".rsform-block-file .file-input").length >= 20) $("#btn-addFiles").hide(); } function remove_file(ele) { $(ele).parent().parent().remove(); if($(".rsform-block-file .file-input").length < 20) $("#btn-addFiles").show(); validateFilesField($('#ticketform .file-input')); } function removeFile(idx) { // remove item do array filesArray.splice(idx,1); // $(ele).parent().parent().remove(); if($(".rsform-block-file .file-input").length < 20) $("#btn-addFiles").show(); validateFilesField($('#ticketform .file-input')); } function calcSize(nBytes) { let sOutput = nBytes+'B'; for ( let aMultiples = ['KB', 'MB', 'GB', 'TB'], nMultiple = 0, nApprox = nBytes / 1024; nApprox > 1; nApprox /= 1024, nMultiple++ ) { sOutput = `${nApprox.toFixed(2)} ${aMultiples[nMultiple]}` } return sOutput } function cleanValidation(inputtx){ inputtx.parent().parent().removeClass('error'); return true; } $('#authorName').on("blur", function(){validateName($('#authorName'))}); $('#category').on("blur", function(){required($('#category'))}); $('#title').on("blur", function(){required($('#title'))}); $('#message').on("blur", function(){required($('#message'))}); $('#authorEmail').on("blur", function(){validateEmail(this)}); if(lang == "pt-BR") { $('#authorPhone').on("blur", function(){ var fmt = formatPhoneNumber($("#authorPhone").val()); $("#authorPhone").val(fmt); }); } </script>]]>
1077 <![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>]]>
1109 <![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>]]>
1150 <![CDATA[<script> var erro_servico = []; </script>]]>