Projetos
Ver no GitHub
joshje/Responsive-Enhance
Sobre
Javascript to load a larger image where necessary
Design e mídiaCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- 0
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
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.
Explore projetos relacionados
Carregando…