프로젝트
GitHub에서 보기
joshje/Responsive-Enhance
소개
Javascript to load a larger image where necessary
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
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.
관련 프로젝트 살펴보기
불러오는 중…