User:Tegnosis/Image Maps

When the browser size is reduced, the image shrinks and breaks the imagemap linking. Example from Template:OHimagemap2.

JS Solution
Adding the following to MediaWiki:Common.js should fix the issue for all imagemaps:

Replace Text
Not needed, see solution above If the Test section below works, this regex might be used with ReplaceText to update all the imagemaps:
 * Find:
 * Replace:
 * Note: Only the  is required, the   is already applied to the imagemap element.