« MediaWiki:Common.js » : différence entre les versions
Aller à la navigation
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 2 : | Ligne 2 : | ||
console.log(e); | console.log(e); | ||
var width = e.clientX + 20 - $('#content').offset().left; | var width = e.clientX + 20 - $('#content').offset().left; | ||
var height = e.clientY + 20 | var height = e.clientY + 20 - $('#content').offset().height; | ||
$('.popup_window:visible').css({top: height, left: width}); | $('.popup_window:visible').css({top: height, left: width}); | ||
}); | }); |
Version du 14 juillet 2016 à 09:59
$(document).mousemove(function(e){ console.log(e); var width = e.clientX + 20 - $('#content').offset().left; var height = e.clientY + 20 - $('#content').offset().height; $('.popup_window:visible').css({top: height, left: width}); });