|
|
|
||||||||||||||||||||||||
MediaWiki:Common.js: mudanças entre as edições
Ir para navegação
Ir para pesquisar
| Linha 15: | Linha 15: | ||
$('.mapa > a').removeClass('external text'); | $('.mapa > a').removeClass('external text'); | ||
/* | /* Mapa */ | ||
$(document).ready(function() { | $(document).ready(function() { | ||
$('. | $('.map_show').click(function() { | ||
var id = $(this).attr('id'); | var id = $(this).attr('id'); | ||
$('#div' + id).toggle(); | $('#div' + id).toggle(); | ||
| Linha 26: | Linha 26: | ||
}); | }); | ||
$(document).bind('click', function(e){ | $(document).bind('click', function(e){ | ||
var $clicked = $(e.target); | var $clicked = $(e.target); | ||
if (!($clicked.is('# | if (!($clicked.is('#map_frameid') || $clicked.parents().is('#map_frameid'))) { | ||
$('. | $('.map_frame').hide(); | ||
} | } | ||
}); | }); | ||
Edição das 00h50min de 15 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');
/* Mapa */
$(document).ready(function() {
$('.map_show').click(function() {
var id = $(this).attr('id');
$('#div' + id).toggle();
$('span',this).toggle();
// alert(id);
return false;
});
});
$(document).bind('click', function(e){
var $clicked = $(e.target);
if (!($clicked.is('#map_frameid') || $clicked.parents().is('#map_frameid'))) {
$('.map_frame').hide();
}
});