59
| <![CDATA[<script src="https://japira.pr.gov.br//classes/jquery-ui.js"> </script>]]>
|
202
| <![CDATA[<script>
function acessibilidade()
{
$(".uai.userway_dark").trigger( "click" );
}
function libras()
{
$(".access-button").trigger( "click" );
}
function lgpd()
{
window.location="/lgpd/";
}
function press(key){
console.log(key+"|"+event.ctrlKey);
if(event.ctrlKey)
{
if(key==65||key==1){
acessibilidade();
}//ctrl+shift+a
if(key==76||key==12){
libras();
}//Ctrl+Shift+L
if(key==73||key==9){
window.location="/sistema/";//intranet
}//Control+Shift+I
if(key==78||key==14){
window.location="/portal-da-transparencia/";//portal da transparência
}//Control+Shift+N
if(key==66||key==2){
$(window).scrollTop(0);//ir para o topo
}//Control+Shift+B
if(key==68||key==4){
$(window).scrollTop(150);//ir para o menu
}//Control+Shift+D
if(key==69||key==5){
$(window).scrollTop(2150);//ir para o rodapé
}//Control+Shift+E
}
}
function descobre(key){
alert("O código da tecla pressionada é " + key);
}
$("body").attr("onKeyPress","press(event.keyCode)")
</script>]]>
|
260
| <![CDATA[<script>(function(d){var s = d.createElement("script");s.setAttribute("data-account", "c8d0kTxHqB");s.setAttribute("src", "https://cdn.userway.org/widget.js");(d.body || d.head).appendChild(s);})(document)</script>]]>
|
269
| <![CDATA[<script>
new window.VLibras.Widget('https://vlibras.gov.br/app');
</script>]]>
|
321
| <![CDATA[<script type="text/javascript">
$('#txtBuscaIndex').bind('keyup', function(e) {
var code = e.keyCode || e.which;
if(code == 13) { //Enter keycode
//Do something
buscarSite();
}
});
function buscarSite()
{
window.location="/busca/"+$("#txtBuscaIndex").val();
}
$("#frmBuscaIndex").validate({
rules:
{
txtBusca:{required:true}
}//rules
,invalidHandler: function(event, validator) {
//alert('');
mostraErro("Verifique os campos com mensagens em vermelho","Tente novamente",true);
}
,submitHandler:function(form) {
buscarSite();
}
});
</script>]]>
|
431
| <![CDATA[<script type="text/javascript">
// Initialize the widget when the DOM is ready
$(function() {
$("#uploadera").plupload({
// General settings
runtimes : 'html5,flash,silverlight,html4',
url : "/modulos/denuncie/upload.php",
filters: {
mime_types : [
{ title : "Arquivos de Imagens", extensions : "jpg,gif,png,jpeg,bmp" }
,{ title : "PDF", extensions : "pdf"}
,{ title : "MP4", extensions : "mp4"}
],
prevent_duplicates: true
},
// Maximum file size
max_file_size : '300mb',
unique_names : true,
// chunk_size: '1mb',
// Rename files by clicking on their titles
rename: false,
// Sort files
sortable: true,
// Enable ability to drag'n'drop files onto the widget (currently only HTML5 supports that)
dragdrop: true,
// Views to activate
views: {
list: true,
thumbs: true, // Show thumbs
active: 'thumbs'
},
autostart: true,
// Flash settings
flash_swf_url : '/plupload/js/Moxie.swf',
// Silverlight settings
silverlight_xap_url : '/plupload/js/Moxie.xap',
init : {
FileUploaded: function(up, file, info) {
// Called when file has finished uploading
//log('[FileUploaded] File:', file, "Info:", info);
/*resposta=(info.response);
*/
//alert(info.response);
var obj = eval('(' + info.response + ')');
//alert(obj.jsonrpc);
addArquivo(obj.result,file.name);
}
}
});
});
</script>]]>
|
529
| <![CDATA[<script>
function visualizarArquivo(caminho, cd,pasta, nome)
{
abreModal("mVisualizar");
if(cd!="")
{
caminho2="arq/"+pasta+"/"+caminho;
}else{
caminho2="arq/tmp/"+caminho;
}
$("#camaqv").val(caminho2);
$("#nomeaqv").val(nome);
var extension = caminho.substr( (caminho.lastIndexOf('.') +1) );
if(extension=="pdf"||extension=="xlsx"||extension=="xls"||extension=="ppt"||extension=="pptx"||extension=="pps"||extension=="ppsx"||extension=="doc"||extension=="docx")
{
$("#fmVisualizar").attr("src","https://docs.google.com/gview?url=http://japira.pr.gov.br/sistema/"+caminho2+"&embedded=true");
}else{
$("#fmVisualizar").attr("src","https://japira.pr.gov.br/sistema/modulos/visualizador/index.php?caminho="+caminho2);
}
$("#mVisualizar").css("z-index","9999999999999999999");
}
function baixaArquivo()
{
$("#baixaArquivo").attr("src","modulos/visualizador/baixar.php?nome="+$("#nomeaqv").val()+"&caminho="+$("#camaqv").val());
}
</script>]]>
|
556
| <![CDATA[<script>
function addArquivo(caminho,nome)
{
i=$("#totArquivos").val();
icone="";
var extension = caminho.substr( (caminho.lastIndexOf('.') +1) );
extension=extension.toLowerCase();
switch(extension) {
case 'jpg':
case 'png':
case 'gif':
case 'jpeg':
case 'bmp':
// There's was a typo in the example where
icone='<img src="/sistema/arq/tmp/'+caminho+'" width="100%">';
break; // the alert ended with pdf instead of gif.
case 'mp4':
case 'wmv':
icone='<video src="'+caminho+'" width="100%">';
break;
default:
icone='<i class="fa fa-file-image-o"></i>';
break;
}
$("#tdArquivos").append("<div class='c32 linha_conteudo'><input name='arqCaminho"+i+"' id='arqCaminho"+i+"' type='hidden' value='"+caminho+"' /><input name='arqNome"+i+"' type='hidden' value='"+nome+"' /><div class='c100 icone_doc'>"+icone+"</div><div class='c100'><div class='botao_lista cor_2' onclick='excluirArquivo(this,\""+i+"\")' title='EXCLUIR ARQUIVO'><i class='fa fa-trash' style='font-size:14px;'></i></div></div></div>");
i++;
$("#totArquivos").val(i);
$('#totArquivos').valid();
}
$('#codigoDenuncia').bind('keyup', function(e) {
var code = e.keyCode || e.which;
if(code == 13) { //Enter keycode
//Do something
window.location="/denuncie/acompanhe/"+$('#codigoDenuncia').val();
}
});
$( "#confirmaDenuncies" ).click(function() {
$("#frmDenuncie").submit();
});
$("#frmDenuncie").validate({
rules:
{
txtDescricao:{required:true,minlength:40},
txtLocal:{required:true,minlength:10}
}//rules
,messages:{
}
,invalidHandler: function(event, validator) {
//alert('');
mostraErro("Verifique os campos com mensagens em vermelho","Tente novamente",true);
}
,submitHandler:function(form) {
aplicaDenuncies();
}
});
function aplicaDenuncies()
{
dados=$("#frmDenuncie").serialize();
$.ajax({url:"/modulos/denuncie/codeCadastro.php", data:dados, type:"POST", dataType:"json",
error: function (xhr, ajaxOptions, thrownError) {
mostraErro("Erro ao efetuar cadastro",thrownError,"");
},
success: function(ret){
var obj = ret;
if(obj.retorno=="SUCESSO")
{
$.msgBox({
title: "SUCESSO",
content: "Denuncie cadastrado com sucesso",
type: "success",
buttons: [{ value: "OK" }],
afterClose: function () { window.location="/denuncie/sucesso/"+obj.cd; },
autoClose:true,
timeOut:4000,
success: function (result) {
if (result == "OK") {
window.location="/denuncie/sucesso/"+obj.cd;
}
}
});
}
else{
mostraErro("Erro ao cadastrar Denuncies!",obj.retorno,"");
}
}
});
}
$(".plupload_start").hide();
</script>]]>
|
657
| <![CDATA[<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#menuzord").menuzord({
align: "left"
});
});
</script>]]>
|