CARVIEW |
Select Language
HTTP/2 301
location: https://raw.githubusercontent.com/davidjbradshaw/imagemap-resizer/master/js/imageMapResizer.min.js
accept-ranges: bytes
age: 0
date: Mon, 21 Jul 2025 11:23:24 GMT
via: 1.1 varnish
x-served-by: cache-bom4750-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753097005.688363,VS0,VE287
vary: Accept-Encoding
x-fastly-request-id: 980a0ca98bf830d416b1a455460ae8f90cf841a9
content-length: 0
HTTP/2 200
cache-control: max-age=300
content-security-policy: default-src 'none'; style-src 'unsafe-inline'; sandbox
content-type: text/plain; charset=utf-8
etag: W/"9fac0a6a2d6677a9c90c7332a47c576ba78a710c80a6d28101e2a9c22df366ab"
strict-transport-security: max-age=31536000
x-content-type-options: nosniff
x-frame-options: deny
x-xss-protection: 1; mode=block
x-github-request-id: 7928:370001:2095DD:4A2587:687E232C
content-encoding: gzip
accept-ranges: bytes
date: Mon, 21 Jul 2025 11:23:25 GMT
via: 1.1 varnish
x-served-by: cache-bom4744-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753097005.027356,VS0,VE321
vary: Authorization,Accept-Encoding
access-control-allow-origin: *
cross-origin-resource-policy: cross-origin
x-fastly-request-id: c18710006e130f3241d1b7bb086e650c9a3b0ca0
expires: Mon, 21 Jul 2025 11:28:25 GMT
source-age: 0
content-length: 1040
/*! Image Map Resizer (imageMapResizer.min.js ) - v1.0.10 - 2019-04-10
* Desc: Resize HTML imageMap to scaled image.
* Copyright: (c) 2019 David J. Bradshaw - dave@bradshaw.net
* License: MIT
*/
!function(){"use strict";function r(){function e(){var r={width:u.width/u.naturalWidth,height:u.height/u.naturalHeight},a={width:parseInt(window.getComputedStyle(u,null).getPropertyValue("padding-left"),10),height:parseInt(window.getComputedStyle(u,null).getPropertyValue("padding-top"),10)};i.forEach(function(e,t){var n=0;o[t].coords=e.split(",").map(function(e){var t=1==(n=1-n)?"width":"height";return a[t]+Math.floor(Number(e)*r[t])}).join(",")})}function t(e){return e.coords.replace(/ *, */g,",").replace(/ +/g,",")}function n(){clearTimeout(d),d=setTimeout(e,250)}function r(e){return document.querySelector('img[usemap="'+e+'"]')}var a=this,o=null,i=null,u=null,d=null;"function"!=typeof a._resize?(o=a.getElementsByTagName("area"),i=Array.prototype.map.call(o,t),u=r("#"+a.name)||r(a.name),a._resize=e,u.addEventListener("load",e,!1),window.addEventListener("focus",e,!1),window.addEventListener("resize",n,!1),window.addEventListener("readystatechange",e,!1),document.addEventListener("fullscreenchange",e,!1),u.width===u.naturalWidth&&u.height===u.naturalHeight||e()):a._resize()}function e(){function t(e){e&&(!function(e){if(!e.tagName)throw new TypeError("Object is not a valid DOM element");if("MAP"!==e.tagName.toUpperCase())throw new TypeError("Expected