# viewport.js **Repository Path**: mirrors_leecade/viewport.js ## Basic Information - **Project Name**: viewport.js - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2026-02-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README viewport.js ==== viewport.js provide unification to set viewport for iOS, android and PC Browsers. Support ---- * iOS5 * android2.3 * Opera11.62 * Firefox11.0 * Chrome18.0.1025.151 * Safari5.1.5 Donwload ---- [viewport.js](https://raw.github.com/anatoo/viewport.js/master/viewport.js) Overview ---- In case of iOS, you cat write viewport meta tag to setting viewport. In case of android, android support viewport meta tag too. But viewport's width is not available. And PC Browsers does not support it. Usage ---- Quick example: How it works ---- In case of iOS, viewport.js just write following meta tag: In case of android, viewport.js write following meta tag: And viewport.js do emulation of viewport by computing scale between viewport's width and browser's width and applying zoom to the body element. On orieantion change, it emulate again. In case of PC browsers, viewport.js just emulate viewport by using JavaScript.