|
|
|
||||||||||||||||||||||||
MediaWiki:Common.js: mudanças entre as edições
Ir para navegação
Ir para pesquisar
| Linha 31: | Linha 31: | ||
$('.map_frame').hide(); | $('.map_frame').hide(); | ||
} | } | ||
}); | |||
$(document).ready(function() { | |||
$('#calc_shard') | |||
.append('<input name="shards" maxlength="3" id="shards" type="text" size="10" align="center" value="1" onblur="if (this.value == '') {this.value = '1';}" />') | |||
.append('<input name="level" maxlength="3" id="level" type="text" size="10" align="center" value="0" onblur="if (this.value == '') {this.value = '0';}" />') | |||
}); | }); | ||
Edição das 22h49min de 23 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();
}
});
$(document).ready(function() {
$('#calc_shard')
.append('<input name="shards" maxlength="3" id="shards" type="text" size="10" align="center" value="1" onblur="if (this.value == '') {this.value = '1';}" />')
.append('<input name="level" maxlength="3" id="level" type="text" size="10" align="center" value="0" onblur="if (this.value == '') {this.value = '0';}" />')
});