Proyek
Lihat di GitHub
joshje/Responsive-Enhance
Tentang
Javascript to load a larger image where necessary
Desain dan mediaPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- 0
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliResponsive 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.
Jelajahi proyek terkait
Memuat…