Created
November 22, 2022 06:05
-
-
Save stephenquan/8a4a138ef15ee0fd079bded7f3591463 to your computer and use it in GitHub Desktop.
sam2.hta
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta http-equiv="x-ua-compatible" content="ie=edge" /> | |
<style> | |
div.redCross { | |
display: inline-block; | |
width: 16px; | |
height: 16px; | |
background-image: url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20stroke%3D%22red%22%20d%3D%22M23.985%208.722L16.707%2016l7.278%207.278-.707.707L16%2016.707l-7.278%207.278-.707-.707L15.293%2016%208.015%208.722l.707-.707L16%2015.293l7.278-7.278z%22%2F%3E%3C%2Fsvg%3E); | |
} | |
div.greenTick { | |
display: inline-block; | |
width: 16px; | |
height: 16px; | |
background-image: url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20stroke%3D%22green%22%20d%3D%22M13.5%2022.142L7.59%2016.42l.636-.636L13.5%2020.87%2026.721%207.8l.637.637z%22%2F%3E%3C%2Fsvg%3E); | |
} | |
</style> | |
</head> | |
<body> | |
<div>1 + 1 = 2 <div id="demo2" class="redCross"></div></div> <p> | |
<script> | |
var demo2 = document.getElementById("demo2"); | |
</script> | |
<button type="button" onclick="demo2.className = 'greenTick'; ">Change SVG!</button> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment