MediaWiki:Common.js: Difference between revisions
No edit summary |
(Fix for <imagemap>s to prevent them from resizing) |
||
Line 15: | Line 15: | ||
}); | }); | ||
/* End Adobe Analytics Tracking Details */ | /* End Adobe Analytics Tracking Details */ | ||
/* Fix for <imagemap>s to prevent them from resizing */ | |||
$('[usemap]').each(function() { | |||
$(this).css('min-width', $(this).attr('width')); | |||
}); |
Revision as of 14:24, 28 March 2023
/* Add Adobe Analytics Tracking Details 2022-11-17 */
// First listen to an event that is fired when the FS object is available
window.addEventListener('ExReady', function(){
// Call setTimeout to avoid a flaw in FS that triggers infinite recursion
setTimeout(function(){
// Now configure the page data and manually trigger the page view
FS.Analytics.updatePageViewData({
page_channel: 'Wiki',
page_detail: 'Wiki Test'
});
FS.Analytics.trackPageView();
});
});
/* End Adobe Analytics Tracking Details */
/* Fix for <imagemap>s to prevent them from resizing */
$('[usemap]').each(function() {
$(this).css('min-width', $(this).attr('width'));
});