Anonymous

MediaWiki:Gadget-Tooltips.js: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
m
replaced let with var due to parse error in console?
m (I think fixed the issue of position being offset due to tooltip having more lines than before, but I notice without positioning that the tooltip will not stick off screen anyway (but has its own complexities))
m (replaced let with var due to parse error in console?)
Line 6: Line 6:
$(function() {
$(function() {
let EDGE_BUFFER = 2; // pixels
var EDGE_BUFFER = 2; // pixels
$(".explain, .tooltip").bind("mouseenter", function() {
$(".explain, .tooltip").bind("mouseenter", function() {
3,972

edits