Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (33 sloc) 1012 Bytes
<!doctype html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
<script src="hisrc.js"></script>
<script>
// for testing purposes clear local storage each time to remove cached network speed tests
try {
localStorage.removeItem("fsjs");
} catch( e ) { }
// for performance run speed test before dom is ready.
$.hisrc.speedTest();
$(document).ready(function(){
$(".hisrc img").hisrc({
useTransparentGif: true,
transparentGifSrc: 'TEST/spacer.gif' // use for IE
});
});
</script>
</head>
<body>
<h1>HiSRC Images</h1>
<div class="hisrc">
<img src="TEST/halloween-mobile-1st.png" width="250" height="222"
data-1x="TEST/halloween-x1.png"
data-2x="TEST/halloween-x2.jpg"
alt="Celebrating Halloween in style" />
</div>
<h2>Regular images</h2>
<img src="http://placehold.it/400x200.png">
<img src="http://placehold.it/400x200.png">
</body>
</html>