@inotom/responsive-clickable-area-map
v1.2.0
Published
A clickable area map script for responsive web design.
Downloads
7
Readme
@inotom/responsive-clickable-area-map
A clickable area map script for responsive web design.
Demo
Install
npm
npm install -D @inotom/responsive-clickable-area-map
Usage
Browser
<script src="responsive-clickable-area-map.min.js"></script>
<script>
ResponsiveClickableAreaMap.responsiveClickableAreaMap('img[usemap]');
</script>
ES module
import { responsiveClickableAreaMap } from '@inotom/responsive-clickable-area-map';
window.addEventListener('load', () => {
responsiveClickableAreaMap('img[usermap]');
});
License
MIT
Author
inotom