プロジェクト
概要
レスポンシブイメージマップ用 jQuery プラグイン
デザイン・メディア計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- -1
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルjQuery RWD Image Maps
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
widthandheightattributes 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/
関連プロジェクトを探す
読み込み中…