488
| <![CDATA[<script>
function modal(L,W,H,T){
$("#myIframee").attr('src','');
$("#myModalIframee").modal({
//backdrop: 'static'
});
$('#myModalIframee').on('shown.bs.modal', function () {
$(this).find('.modal-dialog').css({
width:W, //probably not needed
height:H, //probably not needed
});
$(this).find('.modal-body').css({
padding : '0',
margin : '0',
height: H
});
$(this).find('h4').css({
padding : '0',
margin : '0'
});
$(this).find('iframe').css({
height: H
});
$(this).find('.modal-header h4').html(T);
$("#myIframee").attr('src',L);
$(this).find('iframe').focus();
});
}//fim funcao
function modalServ(L,W,H,T){
$("#myIframeServ").attr('src','');
$("#myModalServ").modal({
//backdrop: 'static'
});
$('#myModalServ').on('shown.bs.modal', function () {
$(this).find('.modal-dialog').css({
width:W, //probably not needed
height:H, //probably not needed
});
$(this).find('.modal-body').css({
padding : '0',
margin : '0',
height: H
});
$(this).find('h4').css({
padding : '0',
margin : '0'
});
$(this).find('iframe').css({
height: H
});
$(this).find('.modal-header h4').html(T);
$("#myIframeServ").attr('src',L);
$(this).find('iframe').focus();
});
}//fim funcao
function modalAviso(L,W,H,T){
$("#myIframeAviso").attr('src','');
$("#myModalAviso").modal({
//backdrop: 'static'
});
$('#myModalAviso').on('shown.bs.modal', function () {
$(this).find('.modal-dialog').css({
width:W, //probably not needed
height:H, //probably not needed
});
$(this).find('.modal-body').css({
padding : '0',
margin : '0',
height: H
});
$(this).find('h4').css({
padding : '0',
margin : '0'
});
$(this).find('iframe').css({
height: H
});
$(this).find('.modal-header h4').html(T);
$("#myIframeAviso").attr('src',L);
$(this).find('iframe').focus();
});
}//fim funcao
function modalAvisoImg(L,W,H,T){
//$("#myIframeAviso").attr('src','');
$('#imagepreview').attr('src','');
$("#myModalAvisoImg").modal({
// backdrop: 'static'
});
$('#myModalAvisoImg').on('shown.bs.modal', function () {
$('#imagepreview').attr('src', L);
// $(this).find('iframe').focus();
});
}//fim funcao
$(document).ready(function(){
console.log('aqq')
var achei = $("style[data-fbcssmodules~='css:fb.css.basecss:fb.css.dialog css:fb.css.iframewidget']");
console.log('achei'+achei.length);
if (achei.length > 0) {
var text = $("style[data-fbcssmodules='css:fb.css.basecss:fb.css.dialog css:fb.css.iframewidget']").text();
$(this).text(text.replace('fb_iframe_widget span{display:inline-block;position:relative;text-align:justify}', 'fb_iframe_widget span{display:inline-block;position:relative;text-align:left}'));
};
var linkar = '';
var relw = '';
var relh = '';
var titulo = '';
});
$('.iptu').click(function(){
//We tell our browser not to follow that link
console.log('iptu');
modalServ('http://https://trb.pmmp.rj.gov.br:8086/webrun/form.jsp?sys=TR2&action=openform&formID=7589','500','300','IPTU');
});
$(document).ready(function(){
$('.comunicado-link').click(function(){
modalAviso('aviso_feriado.php','','480','Comunicado')
});//chama o comunicado
$(".twitter_pop").click(function(e){
//We tell our browser not to follow that link
e.preventDefault();
//We get the URL of the link
var loc = $(this).attr('href');
//We get the title of the link
var title = encodeURIComponent($(this).attr('title'));
//We trigger a new window with the Twitter dialog, in the middle of the page
window.open('https://twitter.com/share?url=' + loc + '&text=' + title + '&', 'twitterwindow', 'height=450, width=550, top='+($(window).height()/2 - 225) +', left='+$(window).width()/2 +', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0');
});
$(".face_pop").click(function(e) {
//We tell our browser not to follow that link
e.preventDefault();
//We get the URL of the link
var loc = $(this).attr('href');
//We get the title of the link
var title = encodeURIComponent($(this).attr('title'));
//We trigger a new window with the Twitter dialog, in the middle of the page
window.open('https://facebook.com/sharer.php?u=' + loc + '&text=' + title + '&', 'facebookwindow', 'height=450, width=550, top='+($(window).height()/2 - 225) +', left='+$(window).width()/2 +', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0');
});
$(".plus_pop").click(function(e) {
//We tell our browser not to follow that link
e.preventDefault();
//We get the URL of the link
var loc = $(this).attr('href');
//We get the title of the link
var title = encodeURIComponent($(this).attr('title'));
//We trigger a new window with the Twitter dialog, in the middle of the page
window.open('https://plus.google.com/share?url=' + loc , 'pluswindow', 'height=450, width=550, top='+($(window).height()/2 - 225) +', left='+$(window).width()/2 +', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0');
});
$(".linkedIn_pop").click(function(e) {
//We tell our browser not to follow that link
e.preventDefault();
//We get the URL of the link
var loc = $(this).attr('href');
//We get the title of the link
var title = encodeURIComponent($(this).attr('title'));
//We trigger a new window with the Twitter dialog, in the middle of the page
window.open('https://www.linkedin.com/shareArticle?mini=true&url=' + loc +'&title='+title, 'pluswindow', 'height=450, width=550, top='+($(window).height()/2 - 225) +', left='+$(window).width()/2 +', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0');
});
});
$("iframe").attr('title',Math.random());
$(".ModalIframe").click(function(){
var linkar = $(this).attr('rellink');
var relw = $(this).attr('rew');
var relh = $(this).attr('reh');
var titulo = $(this).text();
$("#myIframe").attr('src','');
//$("#myIframe").attr('src','');
$("#myModalIframe").modal({
backdrop: 'static'
});
$('#myModalIframe').on('shown.bs.modal', function () {
$(this).find('.modal-dialog').css({
width:relw, //probably not needed
height:relh, //probably not needed
});
$(this).find('.modal-body').css({
padding : '1px',
margin : '5px',
height: relh
});
$(this).find('h4').css({
padding : '0',
margin : '0'
});
$(this).find('iframe').css({
height: relh
});
$(this).find('.modal-header h4').html(titulo);
$("#myIframe").attr('src',linkar);
$(this).find('iframe').focus();
});
});
$(function(){
});
function AbreJanela(html, largura, altura){
w = screen.width;
h = screen.height;
meio_w = w/2;
meio_h = h/2;
altura2 = altura/2;
largura2 = largura/2;
meio1 = meio_h-altura2;
meio2 = meio_w-largura2;
window.open(html,"nova_janela","toolbar=no,location=no,location=0,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+largura+",height="+altura+", top="+meio1+", left="+meio2+"");void(0);
}
$('#Menu7').click(function(){
alert('Antes de imprimir, desabilitar o bloqueador de popup no canto superior do seu navegador');
});
$('#MenuFooter7').click(function(){
alert('Antes de imprimir, desabilitar o bloqueador de popup no canto superior do seu navegador');
});
</script>]]>
|