jonnyhaynes/inline-svg

View on GitHub
demo/index.html

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Inline SVG Demo</title>

  <style>
    svg path {
      fill: red;
    }
  </style>
</head>
<body>
  <img data-src="twitter.svg" width="20" height="20" alt="Twitter Icon" class="svg another-class">
  <img data-src="facebook.svg" width="20" height="20" class="svg a-class" alt="Facebook Icon" longdesc="A longer description of the image.">
  <img data-src="facebook.svg" width="20" height="20" class="svg a-class" alt="Facebook Icon" longdesc="A longer description of the image.">

  <script src="../src/inlineSVG.js"></script>
  <script>
    inlineSVG.init();
  </script>
</body>
</html>