-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
139 lines (139 loc) · 3.87 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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>InfinityAnimeList</title>
<link rel="stylesheet" href="https://raw.githack.com/ch1kulya/Kyo.css/legacy/styleBasic.css" onerror="handleError()">
<link rel="icon" href="https://raw.githack.com/ch1kulya/AutoCrop/main/favicon.ico" type="image/x-icon" onerror="handleError()">
<script src="https://unpkg.com/mithril/mithril.js"></script>
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
<style>
.title-block {
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid var(--border-color);
}
.title-content {
display: flex;
align-items: flex-start;
}
footer {
cursor: pointer;
margin: 0px;
padding: 0px;
transition: opacity 0.5s ease, word-spacing 1s ease;
}
footer:hover {
opacity: 255;
word-spacing: 1.8px;
}
label {
font-size: 14px;
}
input {
margin-bottom: 0;
}
.poster {
max-width: 120px;
margin-right: 20px;
border-radius: 4px;
box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
video {
border-radius: 8px;
box-shadow: 0 0 5px rgba(0,0,0,0.1);
background-color: transparent;
margin-top: 30px;
margin-bottom: 5px;
}
.title-info h2 {
margin-bottom: 10px;
}
.title-description p {
margin-top: 15px;
}
.spinner {
display: block;
margin: 0 auto;
}
.toggle-buttons {
display: flex;
justify-content: space-between;
align-items: center;
margin: 20px;
}
#image-toggle {
top: 20px;
left: 20px;
right: unset;
}
.container {
width: 90%;
max-width: 900px;
}
@media (max-width: 600px) {
.title-content{
flex-direction: column;
}
.poster {
align-items: center;
margin: auto;
max-width: 80%;
margin-bottom: 15px;
}
}
.content-wrapper {
position: relative;
overflow: hidden;
}
.title-description, .player-container {
transition: opacity 0.5s ease, max-height 0.5s ease;
opacity: 1;
max-height: 1000px;
overflow: hidden;
}
.title-description.hidden, .player-container.hidden {
opacity: 0;
max-height: 0;
padding: 0;
margin: 0;
pointer-events: none;
}
.title-description.visible, .player-container.visible {
opacity: 1;
max-height: 1000px;
}
#error-message {
display: none;
color: red;
}
</style>
<script>
function handleError() {
var errorDiv = document.getElementById('error-message');
if (errorDiv) {
errorDiv.style.display = 'block';
}
var content = document.getElementById('content');
if (content) {
content.style.display = 'none';
}
}
</script>
</head>
<body>
<div id="error-message">
<p>Unfortunately, our service is not available in your country. Please consider using a VPN to access the site.</p>
<p>К сожалению, наш сервис недоступен в вашей стране. Пожалуйста, рассмотрите возможность использования VPN для доступа к сайту.</p>
</div>
<div id="content">
<button id="image-toggle" class="theme-toggle">📷</button>
<button id="theme-toggle" class="theme-toggle">🌙</button>
<div class="container">
<div id="app"></div>
</div>
</div>
<script src="https://raw.githack.com/ch1kulya/Kyo.css/legacy/theme.js" onerror="handleError()"></script>
<script src="app.js"></script>
</body>
</html>