-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathembed.html
More file actions
92 lines (74 loc) · 2.06 KB
/
embed.html
File metadata and controls
92 lines (74 loc) · 2.06 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<base target="_parent">
<link rel="icon" type="image/jpg" href="favicon.ico"/>
<title>bolognese embed</title>
<style>
:root {
--black: #161719;
--dark-grey: #505050;
--grey: #a0a0a0;
--white: #dbdad8;
--bright-white: #f0f0f0;
}
* {
font-family: Helvetica, sans-serif;
color: var(--black);
}
html {
background-color: var(--bright-white);
}
html, body {
height: 100%;
margin: 0;
box-sizing: border-box;
}
body {
display: flex;
padding: 0.5em;
flex-wrap: wrap;
justify-content: space-evenly;
align-content: center;
}
a {
display: inline-block;
color: inherit;
position: relative;
text-decoration: underline;
color: var(--black);
}
a:hover{
color: var(--bright-white);
background: var(--black);
text-decoration: none;
}
</style>
</head>
<body style="justify-content: space-between;">
<span>
<a id="prev" href="https://spagwhetti.github.io/redirect.html?to=prev" id="prev">prev</a>
</span>
<span>
<a href="https://spaghetti.nekoweb.org/webring" id="header">bolognese ring</a>
</span>
<span>
<a id="next" href="https://spagwhetti.github.io/redirect.html?to=next" id="next">next</a>
</span>
</body>
<script>
const DATA_FOR_WEBRING = `https://raw.githubusercontent.com/spagwhetti/spagwhetti.github.io/main/webring.json`;
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const name = urlParams.get('name');
const left = document.getElementById("prev");
const right = document.getElementById("next");
fetch(DATA_FOR_WEBRING)
.then((response) => response.json())
.then((sites) => {
left.href += "&name=" + name;
right.href += "&name=" + name;
});
</script>
</html>