Skip to content

jonathanargentiero/mobileAutoZoom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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
    }
})

About

Javascript Mobile Auto Zoom Plugin

Resources

Stars

Watchers

Forks

Packages

No packages published