MediaWiki:Gadget-ImageMaps.js

mw.loader.getScript('https://unpkg.com/image-map-resizer@1.0.10/js/imageMapResizer.min.js') .then(   	function {    		$(document).ready(function{ $('.resizable-image-map map').imageMapResize; $(".tab, .state-control").click(function { // Hack to ensure hidden maps get properly resized        			 $(".resizable-image-map map").imageMapResize;    			}); });   	},    	function(e) {        	mw.log.error(e.message);    	});