-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
123 lines (112 loc) · 4.69 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
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>おっしょい!</title>
<meta name="description" content="Me when Batten the Shoujo">
<style>
body {
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
background-position: center;
margin: 0;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
color: white;
}
.image-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
margin: 10px;
}
iframe {
width: 45%;
max-width: 420px;
height: 225px;
}
footer {
width: 100%;
padding: 10px 0;
}
.link-container {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
padding: 0 20px;
}
.link-container a {
color: white;
text-decoration: none;
}
.link-container a:hover {
color: blue;
}
@media (max-width: 600px) {
iframe {
width: 45%;
height: 160px;
}
footer {
display: flex;
flex-direction: column;
align-items: center;
}
.link-container {
flex-direction: column;
align-items: center;
gap: 5px;
}
h1 {
font-size: 1.5em;
}
}
</style>
</head>
<body>
<h1>Batten</h1>
<div class="profile-text image-container">
<iframe src="https://www.youtube.com/embed/eYJGC3o1zLs" frameborder="0" allowfullscreen></iframe>
<iframe width="560" height="315" src="https://www.youtube.com/embed/m3w2Lw--G0s" referrerpolicy="no-referrer-when-downgrade" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
<iframe src="https://www.youtube.com/embed/qNy5ian2oGI" frameborder="0" allowfullscreen></iframe>
<iframe width="560" height="315" src="https://www.youtube.com/embed/jnW_xR9dy0s" referrerpolicy="no-referrer-when-downgrade" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</div>
<div class='parent'>
<script type='text/javascript' src='https://storage.ko-fi.com/cdn/widget/Widget_2.js'></script>
<script type='text/javascript'>kofiwidget2.init('Osshoi', '#29abe0', 'C0C113VSK3');kofiwidget2.draw();</script>
</div>
<footer>
<div class="link-container">
<a href="https://osshoi.com/blog">blog</a>
<a href="https://github.com/Basshou/osshoi">source</a>
<a href="https://osshoi.com/clips">clips</a>
</div>
</footer>
<script>
const desktopImages = [
'https://raw.githubusercontent.com/Basshou/osshoi/refs/heads/main/background/batten/batten1.png',
'https://raw.githubusercontent.com/Basshou/osshoi/refs/heads/main/background/batten/batten2.png'
];
const mobileImages = [
'https://raw.githubusercontent.com/Basshou/osshoi/refs/heads/main/background/batten/kiyama_ai.webp',
'https://raw.githubusercontent.com/Basshou/osshoi/refs/heads/main/background/batten/ueda_riko.webp',
'https://raw.githubusercontent.com/Basshou/osshoi/refs/heads/main/background/batten/haruno_kiina.webp',
'https://raw.githubusercontent.com/Basshou/osshoi/refs/heads/main/background/batten/seta_sakura.webp',
'https://raw.githubusercontent.com/Basshou/osshoi/refs/heads/main/background/batten/aoi_rirua.webp',
'https://raw.githubusercontent.com/Basshou/osshoi/refs/heads/main/background/batten/yanagi_miyu.webp'
];
const isMobile = window.innerWidth <= 600;
const images = isMobile ? mobileImages : desktopImages;
const randomImage = images[Math.floor(Math.random() * images.length)];
const cacheBuster = new Date().getTime();
document.body.style.backgroundImage = `url('${randomImage}?cb=${cacheBuster}')`;
</script>
</body>
</html>