-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
171 lines (147 loc) · 4.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chainsaw Man | Watch Anime</title>
<link rel="stylesheet" href="../assets/styles.css">
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='90%' font-size='90'>💽</text></svg>">
<style>
/* Global Styles */
body {
font-family: Arial, sans-serif;
background: linear-gradient(to bottom, #0d0d0d, #1a1a1a);
color: #fff;
margin: 0;
overflow-x: hidden;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 30px;
background: linear-gradient(to right, #121212, #1f1f1f);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
position: sticky;
top: 0;
z-index: 1000;
}
header h1 {
font-size: 2.5rem;
color: #FF4D4D;
}
nav a {
color: white;
margin: 0 15px;
text-decoration: none;
}
.anime-header {
text-align: center;
margin: 30px 0;
}
.video-container {
margin: 30px auto;
max-width: 900px;
text-align: center;
background: #1a1a1a;
padding: 15px;
border-radius: 8px;
}
video {
width: 100%;
height: 500px;
border-radius: 8px;
}
.episode-controls {
margin: 30px auto;
max-width: 900px;
display: flex;
justify-content: center;
gap: 10px;
flex-wrap: wrap;
}
.episode-controls button {
background: #FF4D4D;
color: white;
border: none;
border-radius: 4px;
padding: 8px 16px;
cursor: pointer;
}
.episode-controls button:hover {
background: #D40060;
}
.episode-controls button.active {
background: #6A0DAD;
}
.anime-details {
margin: 50px auto;
max-width: 900px;
display: flex;
align-items: center;
background: #1a1a1a;
padding: 20px;
border-radius: 8px;
}
.anime-details img {
width: 250px;
border-radius: 8px;
margin-right: 20px;
}
</style>
</head>
<body>
<header>
<h1>Anime World</h1>
<nav>
<a href="../index.html">Home</a>
<a href="#">Trending</a>
<a href="#">Genres</a>
</nav>
</header>
<section class="anime-header">
<h1 id="anime-title">Chainsaw Man - Episode 1</h1>
</section>
<section class="video-container">
<video id="video-player" controls>
<source id="video-source" src="https://drive.google.com/uc?id=1sGyEEJcRFx1aMhkLCp7LPDQWZALmpjj-&export=download" type="video/mp4">
<track id="subtitle-track" src="subtitles/episode1.srt" kind="subtitles" srclang="en" label="English" default>
</video>
</section>
<section class="episode-controls">
<script>
for (let i = 1; i <= 12; i++) {
document.write(`<button onclick="loadEpisode(${i})">${i}</button>`);
}
</script>
</section>
<section class="anime-details">
<img src="../assets/chainsawman-cover.jpg" alt="Chainsaw Man Cover">
<div>
<h2>Chainsaw Man</h2>
<p>Denji is a poor young man who will do anything for money, even hunting devils with his pet devil Pochita. But his life changes when he merges with Pochita to become the fearsome Chainsaw Man.</p>
</div>
</section>
<script>
const videoLinks = {
1: '1-00Sg8w71MIXQm6E-vLXoBjtAz58JZBA',
2: '15jfXbfBMIVSs0E7MeuS44lhKmhNPIyUP'
};
const subtitleLinks = {
1: 'subtitles/episode1.srt',
2: 'subtitles/episode2.srt'
};
function loadEpisode(episode) {
const videoSource = document.getElementById('video-source');
const subtitleTrack = document.getElementById('subtitle-track');
const animeTitle = document.getElementById('anime-title');
videoSource.src = `https://drive.google.com/uc?id=${videoLinks[episode]}&export=download`;
subtitleTrack.src = subtitleLinks[episode];
animeTitle.innerText = `Chainsaw Man - Episode ${episode}`;
document.querySelectorAll('.episode-controls button').forEach(btn => btn.classList.remove('active'));
document.querySelectorAll('.episode-controls button')[episode - 1].classList.add('active');
document.getElementById('video-player').load();
}
</script>
</body>
</html>