Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Pomax authored Jul 29, 2024
1 parent 6216018 commit 6f33440
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions demo/issue-77b/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
document.body.innerText = e.dataTransfer.getData(`text/plain`);
});

document.addEventListener(`dragstart`, (e) => e.dataTransfer.setData(`text/plain`, `we dragged a ${e.target.tagName}));
document.addEventListener(`dragstart`, (e) =>
e.dataTransfer.setData(`text/plain`, `we dragged a ${e.target.tagName}`)
);
</script>
</head>

Expand All @@ -24,13 +26,20 @@
<a href="#results">
<svg>
<rect width="300" height="200" style="cursor: pointer; fill: green" />
<text x="50%" y="50%" dy=".3em" text-anchor="middle" fill="white" style="font: bold 20px sans-serif;">
<text
x="50%"
y="50%"
dy=".3em"
text-anchor="middle"
fill="white"
style="font: bold 20px sans-serif"
>
testing
</text>
</svg>
</a>
</p>

<p>window B</p>
</body>
</html>

0 comments on commit 6f33440

Please sign in to comment.