416
| <![CDATA[<button class="btn-padrao btn-imprimir" id="btn-exporting-print" onclick="printContent('imprimir_noti');" >Imprimir essa matéria</button>]]>
|
555
| <![CDATA[<script type="text/javascript">
$(document).ready(function() {
$('.item-noticia-downloads').on('click', function(e) {
var codigo = $(this).data('codigo');
$.post('noticias_downloads_hit.php', {id: codigo});
});
});
</script>]]>
|
563
| <![CDATA[<script>
function printContent(id){
w = screen.width;
h = screen.height;
meio_w = w/2;
meio_h = h/2;
altura = '768';
largura = '1024';
altura2 = altura/2;
largura2 = largura/2;
meio1 = meio_h-altura2;
meio2 = meio_w-largura2;
str=document.getElementById(id).innerHTML
newwin=window.open('','printwin','left='+meio2+',top='+meio1+',width='+largura+',height='+altura+'')
newwin.document.write('<html>\n')
newwin.document.write('<head>\n')
newwin.document.write('<base href="https://www.nobres.mt.gov.br/" />')
newwin.document.write('<style>')
newwin.document.write('.content-header-print{margin-bottom: 20px; }')
newwin.document.write('table{ font-family: arial, sans-serif; border-collapse: collapse; width: 100%; color: black; }')
newwin.document.write('thead{ background-color: black !important; }')
newwin.document.write('th{color: #FFF;}')
newwin.document.write('th{text-align: center; }')
newwin.document.write('td:nth-child(1), th:nth-child(1) {width: 30%;}')
newwin.document.write('td:nth-child(2), th:nth-child(1) {width: 40%;}')
newwin.document.write('td:nth-child(3), th:nth-child(1) {width: 30%;}')
newwin.document.write('td, th {border: 1px solid #DDDDDD; padding: 8px; }')
newwin.document.write('tr:nth-child(even) { background-color: #dddddd; }')
newwin.document.write('a{ color: #000000; text-decoration: none; }')
newwin.document.write('</style>')
newwin.document.write('<script>\n')
newwin.document.write('function chkstate(){\n')
newwin.document.write('if(document.readyState=="complete"){\n')
newwin.document.write('window.close()\n')
newwin.document.write('}\n')
newwin.document.write('else{\n')
newwin.document.write('setTimeout("chkstate()",2000)\n')
newwin.document.write('}\n')
newwin.document.write('}\n')
newwin.document.write('function print_win(){\n')
newwin.document.write('window.print();\n')
newwin.document.write('chkstate();\n')
newwin.document.write('}\n')
newwin.document.write('<\/script>\n')
newwin.document.write('<title>Notícias > SECRETARIA MUNICIPAL DE SAÚDE - CONFERÊNCIA É ADIADA </title> ')
newwin.document.write('</head>\n')
newwin.document.write('<body style="background:none;" onload="print_win()">\n');
newwin.document.write('<div class="content-header-print">Notícias - SECRETARIA MUNICIPAL DE SAÚDE - CONFERÊNCIA É ADIADA 20/04/2022 ás 01:54:43</div>')
newwin.document.write(str)
newwin.document.write('</body>\n')
newwin.document.write('</html>\n')
newwin.document.close();
}
</script>]]>
|
996
| <![CDATA[<script type='text/javascript'>//<![CDATA[
$(document).ready(function(){
// if no cookie
if ($.cookie('cookie-lgpd')!="true") {
$("#barra-cookies-lgpd").show();
$("#aceitar-cookies-lgpd").click(function() {
$("#barra-cookies-lgpd").hide();
// set the cookie for 24 hours
var date = new Date();
date.setDate(date.getDate() + 30);
$.cookie('cookie-lgpd', "true", { expires: date });
});
}
});//]]>
</script>]]>
|