|
|
|
||||||||||||||||||||||||
MediaWiki:Common.js: mudanças entre as edições
Ir para navegação
Ir para pesquisar
| Linha 27: | Linha 27: | ||
/* Mapa */ | /* Mapa */ | ||
$('html').click(function(E){ | $('html').click(function(E){ | ||
if(e.target.id == ' | if(e.target.id == '#mapframe') { | ||
$(" | $("#mapframe").hide(); | ||
} else { | } else { | ||
$(" | $("#mapframe").hide(); | ||
} | } | ||
}); | }); | ||
Edição das 21h46min de 14 de outubro de 2012
/* Tooltips */
$(document).ready(function() {
$(".tooltip").hover(function(){
tip = $(this).find('.tip');
tip.show();
}, function() {
tip.hide();
}).mousemove(function(e) {
var mousex = e.pageX - 150;
var mousey = e.pageY - 165;
});
});
/* Tirar ícone de links externos */
$('.mapa > a').removeClass('external text');
/* Diálogos */
$(document).ready(function() {
$('.dialogos').click(function() {
var id = $(this).attr('id');
$('#div' + id).toggle();
$('span',this).toggle();
// alert(id);
return false;
});
});
/* Mapa */
$('html').click(function(E){
if(e.target.id == '#mapframe') {
$("#mapframe").hide();
} else {
$("#mapframe").hide();
}
});