Skip to content
Javascript Mobile Auto Zoom Plugin
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
js
README.md
test.html

README.md

mobileAutoZoom

Javascript Mobile Auto Zoom Plugin by Jonathan Argentiero

============== Hello Developers, Would you like to auto-set the "initial-zoom" in the "viewport" meta as much as it's necessary to display your template. mobileAutoZoom is what you need:

How it works

mobileAutoZoom replace the meta "viewport" according to the window.innerWidth / layout_width division that makes the zoom level desidered.

Quick start

(Unecessary) Deep Guide

$(function(){  
    var layout_width = 1280; // your layout width
    if( isMobile.any() ){ // checks if the browser is from a mobile device
        mobileAutoZoom(layout_width); // set the zoom level according the layout width
    }
})
You can’t perform that action at this time.