diff --git a/.DS_Store b/.DS_Store index 3a78f13..2c98fda 100644 --- a/.DS_Store +++ b/.DS_Store Binary files differ diff --git a/.DS_Store b/.DS_Store index 3a78f13..2c98fda 100644 --- a/.DS_Store +++ b/.DS_Store Binary files differ diff --git a/img/.DS_Store b/img/.DS_Store index fe39884..3e7e3f0 100644 --- a/img/.DS_Store +++ b/img/.DS_Store Binary files differ diff --git a/.DS_Store b/.DS_Store index 3a78f13..2c98fda 100644 --- a/.DS_Store +++ b/.DS_Store Binary files differ diff --git a/img/.DS_Store b/img/.DS_Store index fe39884..3e7e3f0 100644 --- a/img/.DS_Store +++ b/img/.DS_Store Binary files differ diff --git a/index.php b/index.php index 342a971..6776305 100644 --- a/index.php +++ b/index.php @@ -40,6 +40,7 @@ + Nuestra mejor versión diff --git a/.DS_Store b/.DS_Store index 3a78f13..2c98fda 100644 --- a/.DS_Store +++ b/.DS_Store Binary files differ diff --git a/img/.DS_Store b/img/.DS_Store index fe39884..3e7e3f0 100644 --- a/img/.DS_Store +++ b/img/.DS_Store Binary files differ diff --git a/index.php b/index.php index 342a971..6776305 100644 --- a/index.php +++ b/index.php @@ -40,6 +40,7 @@ + Nuestra mejor versión diff --git a/js/jquery.rwdImageMaps.min.js b/js/jquery.rwdImageMaps.min.js new file mode 100644 index 0000000..61854cd --- /dev/null +++ b/js/jquery.rwdImageMaps.min.js @@ -0,0 +1,11 @@ +/* +* rwdImageMaps jQuery plugin v1.6 +* +* 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 +* +* Copyright (c) 2016 Matt Stow +* https://github.com/stowball/jQuery-rwdImageMaps +* http://mattstow.com +* Licensed under the MIT license +*/ +;(function(a){a.fn.rwdImageMaps=function(){var c=this;var b=function(){c.each(function(){if(typeof(a(this).attr("usemap"))=="undefined"){return}var e=this,d=a(e);a("").on('load',function(){var g="width",m="height",n=d.attr(g),j=d.attr(m);if(!n||!j){var o=new Image();o.src=d.attr("src");if(!n){n=o.width}if(!j){j=o.height}}var f=d.width()/100,k=d.height()/100,i=d.attr("usemap").replace("#",""),l="coords";a('map[name="'+i+'"]').find("area").each(function(){var r=a(this);if(!r.data(l)){r.data(l,r.attr(l))}var q=r.data(l).split(","),p=new Array(q.length);for(var h=0;h + Nuestra mejor versión diff --git a/js/jquery.rwdImageMaps.min.js b/js/jquery.rwdImageMaps.min.js new file mode 100644 index 0000000..61854cd --- /dev/null +++ b/js/jquery.rwdImageMaps.min.js @@ -0,0 +1,11 @@ +/* +* rwdImageMaps jQuery plugin v1.6 +* +* 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 +* +* Copyright (c) 2016 Matt Stow +* https://github.com/stowball/jQuery-rwdImageMaps +* http://mattstow.com +* Licensed under the MIT license +*/ +;(function(a){a.fn.rwdImageMaps=function(){var c=this;var b=function(){c.each(function(){if(typeof(a(this).attr("usemap"))=="undefined"){return}var e=this,d=a(e);a("").on('load',function(){var g="width",m="height",n=d.attr(g),j=d.attr(m);if(!n||!j){var o=new Image();o.src=d.attr("src");if(!n){n=o.width}if(!j){j=o.height}}var f=d.width()/100,k=d.height()/100,i=d.attr("usemap").replace("#",""),l="coords";a('map[name="'+i+'"]').find("area").each(function(){var r=a(this);if(!r.data(l)){r.data(l,r.attr(l))}var q=r.data(l).split(","),p=new Array(q.length);for(var h=0;h -