-
Notifications
You must be signed in to change notification settings - Fork 3
/
footer.html
38 lines (37 loc) · 1.11 KB
/
footer.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
28
29
30
31
32
33
34
35
36
37
38
</div>
<a href="https://github.com/ktwrd/88x31"><h3>View on GitHub</h3></a>
<p>It is suggested that you turn off anti-aliasing for images, that can be done with the following CSS code</p>
<pre><code>img {
image-rendering: auto;
image-rendering: crisp-edges;
image-rendering: pixelated;
image-rendering: -webkit-optimize-contrast;
}
</code></pre>
<script type="text/javascript">
function clipboardCopy(content)
{
try
{
navigator.clipboard.writeText(content)
console.log('Copied to clipboard;\n', content)
alert('Coped HTML to clipboard')
}
catch (except){}
}
document.addEventListener('click', (e) =>
{
if (e.target.localName == "img")
{
let targetContent = `<img src="${e.target.src}" height="31" />`
if (e.target.attributes.targetLink != undefined)
{
targetContent = `<a href="${e.target.attributes.targetLink.value}">${targetContent}</a>`
}
clipboardCopy(targetContent)
e.preventDefault()
}
})
</script>
</body>
</html>