Proyectos
Ver en GitHub
joshje/Responsive-Enhance
Acerca de
Javascript to load a larger image where necessary
Diseño y multimediaCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalResponsive Enhance
This script will check whether an image is larger than a specified width and load a full resolution image if necessary.
<img id="demo" src="http://dummyimage.com/400x300" alt="Responsive Image" data-fullsrc="http://dummyimage.com/800x600">
<script>responsiveEnhance(document.getElementById('demo'), 400);</script>
This will replace the image with the image defined in the data-fullsrc when the image is wider than 400 pixels.
Explorar proyectos relacionados
Cargando…