Difference between revisions of "MediaWiki:Atlas Tools.js"
BrianFreud (talk | contribs) (Created page with " →Flash icons on hover.: $('#UOLinksList').on('mouseover', 'span', function () { $('.pin a img').addClass('pin-not_circle'); $('#' + $(this).data('p...") |
BrianFreud (talk | contribs) m |
||
Line 10: | Line 10: | ||
/* Highlight map region on hover. */ | /* Highlight map region on hover. */ | ||
$('body').on('mouseover', '.overlayhighlighter', function () { | $('body').on('mouseover', '.overlayhighlighter', function () { | ||
− | $('.mapgrid'). | + | $('.mapgrid').css('visibility','hidden'); |
− | $([...$(this).find('span:first').text().split(',')].map((x) => { return `.grid${x}` }).join(', ')). | + | $([...$(this).find('span:first').text().split(',')].map((x) => { return `.grid${x}` }).join(', ')).css('visibility','visible'); |
}) | }) | ||
.on('mouseout', 'article', function () { | .on('mouseout', 'article', function () { | ||
− | $('.mapgrid'). | + | $('.mapgrid').css('visibility','hidden'); |
}); | }); |
Revision as of 02:49, 28 September 2020
/* Flash icons on hover. */
$('#UOLinksList').on('mouseover', 'span', function () {
$('.pin a img').addClass('pin-not_circle');
$('#' + $(this).data('pair') + ' a img').addClass('pin-circle').removeClass('pin-not_circle');
})
.on('mouseout', 'span', function () {
$('.pin a img').removeClass('pin-not_circle');
$('#' + $(this).data('pair') + ' a img').removeClass('pin-circle');
});
/* Highlight map region on hover. */
$('body').on('mouseover', '.overlayhighlighter', function () {
$('.mapgrid').css('visibility','hidden');
$([...$(this).find('span:first').text().split(',')].map((x) => { return `.grid${x}` }).join(', ')).css('visibility','visible');
})
.on('mouseout', 'article', function () {
$('.mapgrid').css('visibility','hidden');
});