{"version":3,"file":"jquery-249406c3.js","sources":["../../../vendor/javascript/jquery.rwdImageMaps.js"],"sourcesContent":["/*\r* rwdImageMaps jQuery plugin v1.5\r*\r* 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\r*\r* Copyright (c) 2013 Matt Stow\r* https://github.com/stowball/jQuery-rwdImageMaps\r* http://mattstow.com\r* Licensed under the MIT license\r*/\r;(function($) {\r $.fn.rwdImageMaps = function() {\r var $img = this;\r\r var rwdImageMap = function() {\r $img.each(function() {\r if (typeof($(this).attr('usemap')) == 'undefined')\r return;\r\r var that = this,\r $that = $(that);\r\r // Since WebKit doesn't know the height until after the image has loaded, perform everything in an onload copy\r $('').load(function() {\r var attrW = 'width',\r attrH = 'height',\r w = $that.attr(attrW) || this.width,\r h = $that.attr(attrH) || this.height;\r\r var wPercent = $that.width()/100,\r hPercent = $that.height()/100,\r map = $that.attr('usemap').replace('#', ''),\r c = 'coords';\r\r $('map[name=\"' + map + '\"]').find('area').each(function() {\r var $this = $(this);\r if (!$this.data(c))\r $this.data(c, $this.attr(c));\r\r var coords = $this.data(c).split(','),\r coordsPercent = new Array(coords.length);\r\r for (var i = 0; i < coordsPercent.length; ++i) {\r if (i % 2 === 0)\r coordsPercent[i] = parseInt(((coords[i]/w)*100)*wPercent);\r else\r coordsPercent[i] = parseInt(((coords[i]/h)*100)*hPercent);\r }\r $this.attr(c, coordsPercent.toString());\r });\r }).attr('src', $that.attr('src'));\r });\r};\r$(window).resize(rwdImageMap).trigger('resize');\r\rreturn this;\r};\r})(jQuery);\r"],"names":["$"],"mappings":"0CAA2U,SAASA,EAAG"}