Blanked the page
Tags: Blanking Manual revert
No edit summary
Tag: Reverted
Line 1: Line 1:
 
document.querySelectorAll('.tooltip-cell').forEach(cell => {
  const tooltip = cell.querySelector('.tooltip-text');
  cell.addEventListener('mouseenter', (event) => {
    const rect = cell.getBoundingClientRect();
    tooltip.style.top = `${rect.top - 5}px`; // Position a few pixels above
    tooltip.style.left = `${rect.right + 10}px`; // Position to the right
  });
  cell.addEventListener('mouseleave', () => {
    tooltip.style.top = `0`; // Reset
    tooltip.style.left = `0`; // Reset
  });
});

Revision as of 19:32, 27 October 2024

document.querySelectorAll('.tooltip-cell').forEach(cell => {
  const tooltip = cell.querySelector('.tooltip-text');
  cell.addEventListener('mouseenter', (event) => {
    const rect = cell.getBoundingClientRect();
    tooltip.style.top = `${rect.top - 5}px`; // Position a few pixels above
    tooltip.style.left = `${rect.right + 10}px`; // Position to the right
  });
  cell.addEventListener('mouseleave', () => {
    tooltip.style.top = `0`; // Reset
    tooltip.style.left = `0`; // Reset
  });
});