Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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.

Responsive Image
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.