Bone Overlord.gif The Roost of the Graveborn Quest Spoiler!
Domine Graveborn: todos os bosses e mecânicas ilustradas!
Saiba mais ➔
Winter Tree.png Winter Update 2025
Acompanhe tudo sobre o Winter Update 2025!
Saiba mais ➔
Stag.gif The Order of the Stag Quest Spoiler!
Conheça Isle of Ada: sua quest, missões secundárias e todos os bosses!
Saiba mais ➔

MediaWiki:Common.js: mudanças entre as edições

De Tibia Wiki - A Enciclopédia do Tibia
Ir para navegação Ir para pesquisar
Linha 29: Linha 29:
$('html').click(function {
$('html').click(function {
if(e.target.id == '#mapframe') {
if(e.target.id == '#mapframe') {
if ($('#mapframe').is(':visible')){
$("#mapframe").hide();
$("#mapframe").hide();
} else {
} else {
$("#mapframe").show();
$("#mapframe").hide();
}
}
});
});

Edição das 23h05min 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 {
	if(e.target.id == '#mapframe') {
			$("#mapframe").hide();
		} else {
			$("#mapframe").hide();
		}
});