Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/javve/hop-ons.js
Might help you with those tricky Media Queries.
https://github.com/javve/hop-ons.js
Last synced: about 1 month ago
JSON representation
Might help you with those tricky Media Queries.
- Host: GitHub
- URL: https://github.com/javve/hop-ons.js
- Owner: javve
- Created: 2014-08-12T07:47:47.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-12T07:58:14.000Z (over 10 years ago)
- Last Synced: 2024-04-14T09:10:10.952Z (7 months ago)
- Homepage:
- Size: 130 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
hop-ons.js
==========
Help tool for developers testing responsivity in web projects.
Developed in Javascript with no external dependencies.Bookmarks-link:
javascript:((function(d){var%20h=d.createElement('script');h.type='text/javascript';h.name='hop-ons-init.js';h.src='https://rawgit.com/cristoffer/hop-ons.js/decf984f6f854652c043a060bba9a5443671a10a/hop-ons-init.js';d.getElementsByTagName('head')[0].appendChild(h);})(document));
Functionality
- Display website in commmon devices size.
- Flip orientation of device.
- Preview size on hover.
- Display as custom size by typing dimensions directly in x- / y-displays.
- Save custom dimensions as a device.
- Parse existing CSS for Media Query limits and add them to devices menu.
- Toggle size of window by 1px when MQ-device is active to show exactly what difference it does.Horizontal menu description:
1. Reload: reloads page in iframe and resets all the Media Query limits it has found. Does not reload encapsulating page.
2. Flip orientation: flips orientation of current device
3. CSS: Media Query code tips for limits that matches the current device
4. MQ: displays the Media query limits found in user CSS-file as devices, allows direct testing of limits
(5.) Toggle Size: (only visible when a MQ device is active), changes the size by 1px to see MQ's at workVertical menu description:
List of devices
The Media Query limits are displayed as devices in a list next to the ordinary device list when the MQ (horizontal 4) button is clicked.1. Fullpage: fits device to browser window size.
2. iPhone: iPhone 3, 4 viewport size.
3. iPhone5: iPhone5 viewport size.
4. iPad mini
5. iPad
6. HD-displayUsage:
Put a script element with src to the hop-ons-init.js file in header of website.
Requires the wesite to run in some kind of server that allows http-requests (python SimpleHTTPServer works fine), because it uses AJAX to fetch the CSS for parsing and finding Media Query limits.