Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jasonmorita/js-set-viewport

JavaScript to set meta viewport for desktop sites squeezing down to mobile that are big and have a fixed width. Ran into an issue where the site would not scale down to screen width if using width=device-width. Seemed to only be related to the way this site was coded and the way tablets reacted to it. Refactoring site not an option.
https://github.com/jasonmorita/js-set-viewport

Last synced: 2 days ago
JSON representation

JavaScript to set meta viewport for desktop sites squeezing down to mobile that are big and have a fixed width. Ran into an issue where the site would not scale down to screen width if using width=device-width. Seemed to only be related to the way this site was coded and the way tablets reacted to it. Refactoring site not an option.

Awesome Lists containing this project

README

        

# Set meta viewport tag with JavaScript based on screenwidth and size of fixed-width site

JavaScript to set meta viewport for desktop sites squeezing down to mobile that are big and have a fixed width. Ran into an issue where the site would not scale down to screen width if using width=device-width. Seemed to only be related to the way this site was coded and the way tablets reacted to it. Refactoring site not an option.