-
Notifications
You must be signed in to change notification settings - Fork 2
/
feed.html
42 lines (38 loc) · 1.31 KB
/
feed.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
39
40
41
42
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script
defer
data-domain="svenlaa.com"
data-api="https://who.svenlaa.workers.dev/my/event"
src="https://who.svenlaa.workers.dev/my/script.js"
></script>
<title>RSS Feed - Svenlaa</title>
<meta property="og:image" content="https://svenlaa.com/og.jpg" />
<link rel="stylesheet" href="/style.css" />
<style>
h4 .danger {
display: inline;
font-weight: normal;
color: var(--red);
}
</style>
<script>
const copyLink = (selector) => {
const element = document.querySelector(selector);
const text = element.href;
if (!text) {
console.warn(`${selector} didn't contain any text`);
}
const style = element.style;
element.style = 'background-color: var(--green); color: var(--stone-050);outline: 2px solid var(--green);';
setTimeout(() => {
element.style = style;
}, 500);
navigator.clipboard.writeText(text);
};
</script>
<h1>RSS Feed</h1>
<h4 style="margin-bottom: 0.3em">Svenlaa.com feed</h4>
<a id="rss_global" href="https://svenlaa.com/feed.xml">https://svenlaa.com/feed.xml</a
><button style="margin: 0 0.5em 0.7em" onclick="copyLink('a#rss_global')">Copy Link</button>
<hr />
<a href="/">Back to Svenlaa.com</a>