Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshje/Responsive-Enhance
Javascript to load a larger image where necessary
https://github.com/joshje/Responsive-Enhance
Last synced: 15 days ago
JSON representation
Javascript to load a larger image where necessary
- Host: GitHub
- URL: https://github.com/joshje/Responsive-Enhance
- Owner: joshje
- Created: 2012-02-02T23:27:02.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-06-13T14:05:54.000Z (over 12 years ago)
- Last Synced: 2024-08-01T05:23:01.394Z (3 months ago)
- Language: JavaScript
- Size: 101 KB
- Stars: 376
- Watchers: 15
- Forks: 27
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Responsive Enhance
==================This script will check whether an image is larger than a specified width and load a full resolution image if necessary.
responsiveEnhance(document.getElementById('demo'), 400);
This will replace the image with the image defined in the `data-fullsrc` when the image is wider than 400 pixels.