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{ $('.responsive-imagemap map').imageMapResize; $(".tab, .state-control").click(function { // Hack to ensure hidden maps get properly resized        			 $(".responsive-imagemap map").imageMapResize;    			}); });   	},    	function(e) {        	mw.log.error(e.message);    	});