You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,29 +4,30 @@
4
4
5
5
---
6
6
7
-
**Usage:**
7
+
#### Usage:
8
8
9
-
* If possible, add correct `width` and `height` attributes to your image map images. You can override these in CSS to make them responsive.
9
+
* If possible, add [correct, unitless](http://dev.w3.org/html5/markup/img.html)`width` and `height` attributes to your image map images. You can override these in CSS to make them responsive.
10
10
* Add a link to jQuery in your page, preferably at the bottom just before the closing `</body>`
11
11
* After jQuery, either in a `<script>` block or a separate file, call:
12
12
13
-
`$('img[usemap]').rwdImageMaps();`
13
+
```js
14
+
$('img[usemap]').rwdImageMaps();
15
+
```
14
16
15
17
You may also want to wrap it inside a `$(document).ready()` function, like so:
0 commit comments