-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
266 lines (257 loc) · 6.32 KB
/
index.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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
<!DOCTYPE HTML>
<html lang=ja>
<head>
<meta name=viewport content="width=device-width,initial-scale=1">
<meta charset=utf-8>
<title>めたばーす!</title>
<meta property=og:type content=website>
<meta property=og:title content=めたばーす!>
<meta property=og:description content=「めた」の「ばーす」!>
<meta property=og:site_name content=めたばーす!>
<meta property=og:image content=https://metaba.su/imgs/ogp.png>
<meta name=twitter:card content=summary_large_image>
<meta name=twitter:site content=@yanorei32>
<meta name=twitter:creator content=@yanorei32>
<meta http-equiv=X-UA-Compatible content="IE=edge">
<link rel=icon type=image/png href=imgs/favicon.png>
<link href="https://fonts.googleapis.com/css?family=Kosugi+Maru&text=めたばーす!" rel=stylesheet>
<link href="https://fonts.googleapis.com/css?family=Oxygen" rel=stylesheet>
<link rel=preload href=imgs/metaba.su.jpg as=image>
<style>
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
border: 0;
}
body {
font-family: 'Oxygen', 'Kosugi Maru';
font-size: 125%;
background-image: url('imgs/metaba.su.jpg');
background-size: cover;
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;
color: #333333;
}
.content {
width: calc(min(800px, calc(100vw - 40px)) - 40px);
/* IE does not support #ffffffc0 style transparency */
background-color: rgba(255, 255, 255, 0.75);
padding: 1px 20px;
margin: 50px auto;
border-radius: 5px;
}
.outer {
height: 100%;
position: relative;
}
.inner {
border-radius: 5px;
position: absolute;
bottom: 0;
left: 0;
right: 0;
top: 0;
margin: auto;
width: min(800px, calc(100vw - 40px));
/* IE does not support #ffffffc0 style transparency */
background-color: rgba(255, 255, 255, 0.75);
height: 10em;
}
a, a:visited, a:hover, a:active {
color: inherit;
}
hr {
border: none;
border-top: 2px solid #808080;
}
div.domain {
font-size: 50%;
}
.gallery {
width: 100%;
}
.gallery > .scroller {
width: 100%;
height: calc( calc( calc(min(800px, calc(100vw - 20px)) - 40px) / 16 ) * 9 );
display: flex;
overflow-x: scroll;
/* Escape from Chromium's scrolling issue Battle */
/* Do not move to child element. */
overflow-y: hidden;
scroll-snap-type: x mandatory;
scroll-behavior: smooth;
-ms-overflow-style: none;
border-radius: 10px;
scrollbar-width: none;
}
.gallery > .scroller::-webkit-scrollbar {
display: none;
}
.gallery > .scroller > div > span:target {
/*
Offset HTML anchor without JavaScript
https://stackoverflow.com/questions/10732690
*/
height: 100px;
margin-top: -100px;
display: block;
position: relative;
visibility: hidden;
}
.gallery > .scroller > div {
flex: 0 0 100%;
border: 0;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
.gallery > .scroller > div > img {
width: 100%;
height: 100%;
object-fit: contain;
scroll-snap-align: start;
}
.gallery > .selector {
text-align: center;
padding: 16px;
}
.gallery > .selector.safari {
display: none;
}
.gallery > .selector > a {
display: inline-block;
width: 16px;
height: 16px;
margin-left: 10px;
margin-right: 10px;
border-radius: 50%;
background-color: gray;
}
/* Fix Safari and Chrome's footer spacing */
.safari_chrome_footer {
width: 100%;
margin-top: -50px;
height: 50px;
}
/* Branch for MS Edge */
@supports (-ms-ime-align:auto) {
.inner {
border-radius: 0;
}
.content {
max-width: 760px;
}
.gallery > .scroller {
border-radius: 0;
}
.gallery > .scroller > div > img {
height: auto;
}
}
/* Branch for IE */
@media all and (-ms-high-contrast: none) {
.inner {
border-radius: 0;
}
.content {
max-width: 760px;
}
.gallery > .scroller {
border-radius: 0;
}
.gallery > .scroller > div > img {
height: auto;
}
}
/* Branch for Safari */
_::-webkit-full-page-media, _:future, :root .gallery > .scroller > div {
padding-top: 100px;
margin-top: -100px;
}
_::-webkit-full-page-media, _:future, :root .gallery > .selector.safari {
display: block;
}
_::-webkit-full-page-media, _:future, :root .gallery > .selector {
display: none;
}
</style>
</head>
<body>
<div class=outer>
<div class=inner>
<center>
<h1>
<div class=domain>metaba.su</div>
めたばーす!
</h1>
<hr>
<p><a href=https://kuso.domains>kuso.domains</a></p>
</center>
</div>
</div>
<div class=content>
<h2 id=gallery>Kawaii Gallery</h2>
<div class=gallery>
<div class=scroller>
<div id=img0_safari>
<span id=img0></span>
<img loading=lazy src=imgs/gallery.0.jpg>
</div>
<div id=img1_safari>
<span id=img1></span>
<img loading=lazy src=imgs/gallery.1.jpg>
</div>
<div id=img2_safari>
<span id=img2></span>
<img loading=lazy src=imgs/gallery.2.jpg>
</div>
<div id=img3_safari>
<span id=img3></span>
<img loading=lazy src=imgs/gallery.3.jpg>
</div>
</div>
<div class=selector>
<a href=#img0></a>
<a href=#img1></a>
<a href=#img2></a>
<a href=#img3></a>
</div>
<div class="selector safari">
<a href=#img0_safari></a>
<a href=#img1_safari></a>
<a href=#img2_safari></a>
<a href=#img3_safari></a>
</div>
</div>
</div>
<div class=content id=faq>
<h2>FAQ</h2>
<h3>What is kuso.domains</h3>
<p>
A community of joke domains.
Let see
<a target=_blank href=https://kuso.domains>web site</a>
and
<a target=_blank href=https://youtu.be/o5DNvdjnKPY>theme song</a>.
</p>
<h3>What is .su</h3>
<p>
.su is ccTLD (country code top-level domain) of SovietUnion.
</p>
<p>
For example, Japan's ccTLD is .jp.
</p>
<h3>How to contribute</h3>
<p>
You can send pull request or issue to metaba.su on GitHub
(<a target=_blank href=https://github.com/yr32infra/metaba.su>yr32infra/metaba.su</a>).
</p>
</div>
<div class=safari_chrome_footer>
</div>
</body>
</html>