Skip to content

Commit

Permalink
Updating test to include internal use and embedded internal use
Browse files Browse the repository at this point in the history
  • Loading branch information
timeiscoffee committed Mar 3, 2017
1 parent 48197f5 commit c1e2b9a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<title>SVG for Everybody</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<script src="../dist/svg4everybody.legacy.min.js"></script>
<script src="../dist/svg4everybody.legacy.js"></script>
<script>
if (location.hash !== '#nofill') {
if (location.hash === '') {
svg4everybody();
} else if (location.hash === '#fill') {
svg4everybody({
Expand Down Expand Up @@ -45,12 +45,22 @@
<use xlink:href="demo.svg#camera"/>
</svg>

<svg title="Eye" role="img">
<use xlink:href="#eye"/>
</svg>

<svg title="Pencil" role="img">
<a xlink:href="javascript:alert('hi!');">
<use xlink:href="demo.svg#pencil"/>
</a>
</svg>

<svg title="Eye" role="img">
<a xlink:href="javascript:alert('hi!');">
<use xlink:href="#eye"/>
</a>
</svg>

<span>
<button onclick="addSVG(this, 'demo.svg#eye')">Add an external SVG</button>
<button onclick="addSVG(this, 'demo.svg#eye')">Add another external SVG</button>
Expand Down

0 comments on commit c1e2b9a

Please sign in to comment.