{"provider_url": "https://www.exu.pe.leg.br", "title": "Sugest\u00e3o de Projeto de Lei", "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\">Use o formul\u00e1rio abaixo para enviar sua sugest\u00e3o de projeto de lei para C\u00e2mara Municipal de Exu, caso n\u00e3o queira descrever por completo sua sugest\u00e3o informe o link de compartilhamento do arquivo da propositura no campo especificado no formul\u00e1rio.</p><form id=\"sugestaoProjetoID\" method=\"post\"><label for=\"nomeSocialSugestaoID\">Nome civil ou social:</label><input id=\"nomeSocialSugestaoID\" type=\"text\" required=\"required\" style=\"padding: 2px; height: 20px; margin-bottom: 8px; width: 100%\"><label for=\"cidadeSugestaoID\">Cidade que reside:</label><input id=\"cidadeSugestaoID\" type=\"text\" required=\"required\" style=\"padding: 2px; height: 20px; margin-bottom: 8px; width: 100%\"><label for=\"bairroSugestaoID\">Bairro que reside:</label><input id=\"bairroSugestaoID\" type=\"text\" required=\"required\" style=\"padding: 2px; height: 20px; margin-bottom: 8px; width: 100%\"><label for=\"emailSugestaoID\">E-mail para contato:</label><input id=\"emailSugestaoID\" type=\"email\" required=\"required\" style=\"padding: 2px; height: 20px; margin-bottom: 8px; width: 100%\"><label for=\"descricaoSugestaoID\">Sugest\u00e3o:</label><textarea id=\"descricaoSugestaoID\" style=\"padding: 2%; height: 256px; margin-bottom: 8px; width: 96%\"></textarea><br /><label for=\"linkSugestaoID\">Link de compartilhamento do arquivo ( opcional ):</label><input id=\"linkSugestaoID\" type=\"url\" style=\"color: #407ef5; padding: 2px; height: 20px; margin-bottom: 8px; width: 100%\"><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\t\t\t\tif(fn_padronizar_texto($('#descricaoSugestaoID').val()).length > 3 && $('#nomeSocialSugestaoID').val().length > 1 && $('#bairroSugestaoID').val().length > 2 && $('#emailSugestaoID').val().length > 5){\r\n\t\t\t\t\tvar chekado = grecaptcha.getResponse();\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: 'p', nome: $('#nomeSocialSugestaoID').val(), info: ($('#bairroSugestaoID').val() + ' - ' + $('#cidadeSugestaoID').val()), email: $('#emailSugestaoID').val(), conteudo: $('#descricaoSugestaoID').val(), link: $('#linkSugestaoID').val(), 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>Sugest\u00e3o 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\t\t\t\t\t\t\t\t\t$('#notificaSugestaoID').html('<p style=\"color: #ff0000\">Falha ao salvar sujest\u00e3o</p>');\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 sugest\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('O campo descri\u00e7\u00e3o deve ser preenchido.');\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$('#sugestaoProjetoID input, #sugestaoProjetoID textarea').css('font-size', '12pt');\r\n\t\t\t$('#sugestaoProjetoID').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"}