jQuery-rwdImageMaps

Responsive Image Maps jQuery Plugin

Github stars Tracking Chart

jQuery RWD Image Maps

CDNJS

Allows image maps to be used in a responsive design by recalculating the area coordinates to match the actual image size on load and window.resize


Usage:

  • If possible, add correct, unitless width and height attributes to your image map images. You can override these in CSS to make them responsive.
  • Add a link to jQuery in your page, preferably at the bottom just before the closing </body>
  • After jQuery, either in a <script> block or a separate file, call:
$('img[usemap]').rwdImageMaps();

You may also want to wrap it inside a $(document).ready() function, like so:

$(document).ready(function(e) {
    $('img[usemap]').rwdImageMaps();
});

Demo:

http://mattstow.com/experiment/responsive-image-maps/rwd-image-maps.html


Copyright (c) 2016 Matt Stow
Licensed under the MIT license (see LICENSE for details)
Minified version created with Online YUI Compressor: http://www.refresh-sf.com/yui/

Main metrics

Overview
Name With Ownerstowball/jQuery-rwdImageMaps
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2012-04-15 05:55:49
Pushed At2021-12-04 00:53:30
Last Commit At2016-10-18 16:21:15
Release Count1
Last Release Name1.6 (Posted on )
First Release Name1.6 (Posted on )
用户参与
Stargazers Count1.6k
Watchers Count101
Fork Count706
Commits Count17
Has Issues Enabled
Issues Count107
Issue Open Count57
Pull Requests Count2
Pull Requests Open Count13
Pull Requests Close Count6
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private