{"provider_url": "https://www.exu.pe.leg.br", "title": "Fale com a Ouvidoria", "html": "<div id=\"conteudoPaginaID\"><i>Carregando formul\u00e1rio...</i></div>\r\n\t<script src=\"https://www.google.com/recaptcha/api.js\" async=\"async\" defer=\"defer\"></script>\t\t\t\r\n\t<script type=\"text/javascript\">\r\n\t\tfunction montar_formulario_sugestao(){\r\n\t\t\tvar tagSugestao = '<p style=\"text-align: justify; text-indent: 32px\">Preencha o formul\u00e1rio abaixo para enviar um elogio, den\u00fancia ou reclama\u00e7\u00e3o \u00e0 Ouvidoria Geral da C\u00e2mara Municipal de Exu.</p><form id=\"elogioReclamacaoFormID\" method=\"post\"><label for=\"tipoManifestacaoSelID\">Tipo de manifesta\u00e7\u00e3o:</label><select id=\"tipoManifestacaoSelID\" style=\"padding: 4px 1%; margin-bottom: 8px; width: 98%\"><option value=\"0\">Selecione...</option><option value=\"e\">Elogio</option><option value=\"r\">Reclama\u00e7\u00e3o</option><option value=\"d\">Den\u00fancia</option></select><label for=\"nomeSocialSugestaoID\">Nome civil ou social:</label><input id=\"nomeSocialSugestaoID\" type=\"text\" required=\"required\" style=\"padding: 4px 1%; margin-bottom: 8px; width: 98%\"><label for=\"emailSugestaoID\">E-mail para contato:</label><input id=\"emailSugestaoID\" type=\"email\" required=\"required\" style=\"padding: 4px 1%; margin-bottom: 8px; width: 98%\"><b>Manter minhas informa\u00e7\u00f5es em sigilo: </b> <input type=\"radio\" id=\"manterSigiloID\" name=\"manterSigilo\" style=\"margin-bottom: 8px; width: 16px; height: 16px\"><label for=\"manterSigiloID\"> Sim. </label><input type=\"radio\" id=\"naoManterSigiloID\" name=\"manterSigilo\" style=\"margin-bottom: 8px; margin-left: 8px; width: 16px; height: 16px\"><label for=\"naoManterSigiloID\"> N\u00e3o.</label><br /><br /><label for=\"mensagemElogioID\">Mensagem:</label><textarea id=\"mensagemElogioID\" placeholder=\"Digite aqui sua manifesta\u00e7\u00e3o...\" style=\"padding: 2%; height: 256px; margin-bottom: 8px; width: 96%; font-family: sans-serif; font-size: 1.0em;\"></textarea><br /><div class=\"g-recaptcha\" data-sitekey=\"6Ld0zFcaAAAAANH_h3aM-p3Q0xsisShQgBclG7Qe\"></div><input type=\"submit\" value=\"Enviar\" style=\"padding: 8px; float: right\"></form><p id=\"notificaSugestaoID\" style=\"color: #ff0000; text-align: center;\"></p>';\r\n\t\t\t$('#conteudoPaginaID').html(tagSugestao);\r\n\t\t}\r\n\t\tvar liberado = true;\r\n        function fn_padronizar_texto(argStr) {\r\n\t\t\targStr = argStr.toUpperCase();\r\n\t\t\targStr = argStr.normalize('NFD').replace(/[\\u0300-\\u036f]/g, \"\");\r\n\t\t\targStr = argStr.replace(/([.,;:*><+?|(){}\\[\\]])/mg, '');/* substituindo potos e outros caracteres */\r\n\t\t\t//argStr.replace(/\\s+/g, ''); remove todos os espa\u00e7os em branco.\r\n\t\t\treturn argStr;\r\n\t\t}\r\n\r\n\t\t/* https://tonyribeiro.com/sessoes-consultas/ */\r\n\t\tfunction enviar_sugestao_projeto() {\r\n\t\t\tif(liberado){\r\n\t\t\t\tliberado = false;\r\n                var mensagemElogio = $('#mensagemElogioID').val();\r\n                var manterSigilo = ($('#manterSigiloID').prop('checked') ? 'SIM' : 'N\u00c3O');\r\n                var tipoManifestacao = $('#tipoManifestacaoSelID').val();\r\n                \r\n\t\t\t\tif(fn_padronizar_texto(mensagemElogio).length > 3 && $('#nomeSocialSugestaoID').val().length > 1 && $('#emailSugestaoID').val().length > 5 && tipoManifestacao != '0'){\r\n\t\t\t\t\tvar chekado = grecaptcha.getResponse();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(chekado != null && chekado != ''){\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t$('#notificaSugestaoID').text('Aguarde...');\r\n\t\t\t\t\t\t$.ajax({\r\n\t\t\t\t\t\t\turl: 'https://tonyribeiro.com/sessoes-consultas/contato_mail.php',\r\n\t\t\t\t\t\t\theaders: { 'Accept': 'application/json' },\r\n\t\t\t\t\t\t\ttype: 'POST',\r\n\t\t\t\t\t\t\tdataType: 'JSON',\r\n\t\t\t\t\t\t\tdata: { keycamara: thisCamara, tipo: tipoManifestacao, nome: $('#nomeSocialSugestaoID').val(), info: manterSigilo, email: $('#emailSugestaoID').val(), conteudo: mensagemElogio, link: '', validaDorFormXek: chekado},\r\n\t\t\t\t\t\t\tsuccess: function (resultado) {\r\n\t\t\t\t\t\t\t\tif(resultado.dados == 'okay'){\r\n\t\t\t\t\t\t\t\t\t$('#conteudoPaginaID').html('<p style=\"color: #096d09;\"><span>Mensagem enviada com </span><b>sucesso!</b></p>');\r\n\t\t\t\t\t\t\t\t\t$('html, body').animate({ scrollTop: ($('#conteudoPaginaID').offset().top - 16) }, 700);\r\n\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\tliberado = true;\r\n                                    $('#notificaSugestaoID').html('<p style=\"color: #ff0000\">Falha ao executar a opera\u00e7\u00e3o.</p>');\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\terror: function () {\r\n\t\t\t\t\t\t\t\t$('#notificaSugestaoID').text('N\u00e3o foi poss\u00edvel enviar sua manifesta\u00e7\u00e3o.');\r\n\t\t\t\t\t\t\t\tliberado = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t$('#notificaSugestaoID').text('Campo de autentica\u00e7\u00e3o do formul\u00e1rio n\u00e3o validado.');\r\n\t\t\t\t\t\tliberado = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$('#notificaSugestaoID').text('Tipo de manifesta\u00e7\u00e3o e Mensagem s\u00e3o campos de preenchimento obrigat\u00f3rio.');\r\n\t\t\t\t\tliberado = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tvar thisCamara = '97b3ede37bbd90660aad63baadda4662';\r\n\t\t$(document).ready(function () {\r\n\t\t\tmontar_formulario_sugestao();\r\n\t\t\t$('#elogioReclamacaoFormID input').css('font-size', '1.0em');\r\n\t\t\t$('#elogioReclamacaoFormID textarea').css('font-size', '1.2em');\r\n\t\t\t$('#elogioReclamacaoFormID #manterSigiloID').prop('checked', true);\r\n\r\n\t\t\t$('#elogioReclamacaoFormID').submit(enviar_sugestao_projeto);\r\n\t\t});\r\n\t</script>", "author_name": "", "version": "1.0", "author_url": "https://www.exu.pe.leg.br/author/exu", "provider_name": "C\u00e2mara Municipal de Exu", "type": "rich"}