rwdImageMaps
を使えばいい!とわかっていたのですが、実際に組み込んでみるとエラー…
動かない例1
jQuery(document).ready(function(e){ jQuery('img[usemap]').rwdImageMaps(); });
これはUncaught TypeError: jQuery(...).rwdImageMaps is not a function
になります。
動かない例2
$(document).ready(function() { jQuery('img[usemap]').rwdImageMaps(); });
これはimageMap.js:1 Uncaught TypeError: $ is not a function
動く例
jQuery(function( $ ) { $('img[usemap]').rwdImageMaps(); });