Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orkon/viewport-changer
Widget for changing iframe to emulate various devices
https://github.com/orkon/viewport-changer
Last synced: 17 days ago
JSON representation
Widget for changing iframe to emulate various devices
- Host: GitHub
- URL: https://github.com/orkon/viewport-changer
- Owner: OrKoN
- License: mit
- Created: 2015-07-12T11:07:18.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-31T14:19:58.000Z (over 9 years ago)
- Last Synced: 2023-04-09T19:07:24.503Z (over 1 year ago)
- Language: JavaScript
- Size: 172 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Viewport Changer
A simple drop-in script that resizes the specified iframe on the page to emulate desktop/mobile/tablet devices. It's useful for demos for component authors. Adding the view changer will allow users to see how your components behave on different devices.
## Usage
Include via script tag:
```html
```
or install via JSPM:
Then add the following HTML to your page:
```html
```## TODO
- unregister event listeners
- tests
- test cross-platform