Cross Browser Zoom and Pixel Ratio Detector
Detecting the browser zoom level and device pixel ratio relative to the zoom level.
It can be used to show higher-resolution
img when necessary,
to warn users that your site's layout will be broken in their current zoom level,
and much more.
Personally I'm maintaining it to use Detect-zoom in Wix.com's editor to warn users
that their browser is in zoom mode before saving important changes to their website.
Don't worry, he is well. As of January 2013 @yonran stopped maintaining his source of detect-zoom, and transferred the repository to me. If you are looking to update previous versions note that there were some breaking changes
DetectZoomobject name changed to
DetectZoom.ratio()is no longer publicly accessible
See the Live Example section in http://tombigel.github.com/detect-zoom/
Detect-zoom has only two public functions:
device()Returns the device pixel ratio multiplied by the zoom level (Read more about devicePixelRatio at QuirksMode)
devicePixelRatiothe same. Still looking for a solution here.
Detect-zoom is not complete, many parts of the code are 6 to 12 months old and I'm still reviewing them I need help testing different browsers, finding better ways to measure zoom on problematic browsers (ahm.. Firefox.. ahm) patches are more than welcome.