forked from scottjehl/picturefill
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
27 lines (24 loc) · 979 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>SVGfall</title>
<script src="svgfall.js"></script>
<style>
body { font-family: sans-serif }
img { max-width: 100% }
</style>
</head>
<body>
<h1>SVGfall: Reliable fallback for SVG images.</h1>
<p>SVG background don't always cut it, sometimes a proper image is needed. With svgfall.js we detect SVG support and download only one asset, without messing with the CSS.</p>
<p>Library independent</p>
<div data-svgfall data-alt="The Octocat, the Github mascot" data-width="400" data-height="400">
<div data-src="external/imgs/Octocat.svg" data-support="svg"></div>
<div data-src="external/imgs/Octocat.png" data-support="no-svg"></div>
<!-- Fallback content for non-JS browsers. -->
<noscript><img src="external/imgs/Octocat.png" alt="The Octocat, the Github mascot"></noscript>
</div>
</body>
</html>