-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
166 lines (156 loc) · 7.64 KB
/
index.html
File metadata and controls
166 lines (156 loc) · 7.64 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
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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8" />
<title>Музыкальный плеер</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Подключение шрифтов Google -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet" />
<!-- Основные CSS -->
<link rel="stylesheet" href="./css/default.css" />
<link rel="stylesheet" href="./css/adaptation.css" />
<link rel="stylesheet" href="./css/player.css" />
<link rel="stylesheet" href="./css/progress-bar.css" />
<link rel="stylesheet" href="./css/repeat.css" />
<link rel="stylesheet" href="./css/modal-window.css" />
<link rel="stylesheet" href="./Admin/css/input-track-name.css" />
<link rel="stylesheet" href="./Admin/css/modal-window.css" />
</head>
<body>
<div class="player-container" role="main" aria-label="Музыкальный плеер">
<img src="./img/album-cover.jpg" class="album-art" alt="Обложка альбома" />
<div class="track-info">
<div class="track-title" id="track-title">Название трека</div>
<div class="track-artist">Имя исполнителя</div>
</div>
<div class="progress-bar">
<div class="time-info">
<span id="current-time">0:00</span>
<span id="duration">0:00</span>
</div>
<div
class="progress-container"
id="progress-container"
tabindex="0"
role="slider"
aria-label="Прогресс воспроизведения"
aria-valuemin="0"
aria-valuemax="100"
aria-valuenow="0"
>
<div class="progress-trail"></div>
<div class="progress" id="progress"></div>
<div class="progress-thumb" id="progress-thumb" tabindex="0"></div>
</div>
</div>
<div class="controls" role="group" aria-label="Управление плеером">
<button class="btn" id="prev-btn" aria-label="Предыдущий">◀</button>
<button class="btn play" id="play-btn" aria-label="Воспроизвести">▶</button>
<button class="btn" id="next-btn" aria-label="Следующий">▶▶</button>
</div>
<!-- Контейнер с кнопками Повтор, Избранное и Случайное воспроизведение -->
<div
class="repeat-container"
role="group"
aria-label="Дополнительные функции плеера"
style="margin-top: 32px; display: flex; justify-content: center; gap: 20px;"
>
<!-- Кнопка Повтор -->
<button class="btn repeat-btn" id="repeat-btn" aria-label="Повтор" type="button">
<svg
width="20"
height="20"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
focusable="false"
>
<g>
<path fill="none" d="M0 0h24v24H0z" />
<path
d="M6 4h15a1 1 0 0 1 1 1v7h-2V6H6v3L1 5l5-4v3zm12 16H3a1 1 0 0 1-1-1v-7h2v6h14v-3l5 4-5 4v-3z"
/>
</g>
</svg>
</button>
<!-- Кнопка Избранное -->
<button class="btn repeat-btn" id="favorite-btn" aria-label="Избранное" type="button">
<svg
width="20"
height="20"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
focusable="false"
>
<path fill="none" d="M0 0h24v24H0z" />
<path
d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3
7.5 3c1.74 0 3.41 0.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22
5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
/>
</svg>
</button>
<!-- Кнопка Случайное воспроизведение -->
<button class="btn repeat-btn" id="shuffle-btn" aria-label="Случайное воспроизведение" type="button">
<svg
width="20"
height="20"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
focusable="false"
>
<path fill="none" d="M0 0h24v24H0z" />
<path
d="M16 3h5v5l-2.5-2.5-3.75 3.75c-1.2-0.91-2.42-1.56-3.75-1.96
-2.42-0.67-4.97 0.52-6.28 2.83-1.3 2.31-1.04 5.15 0.66 7.02l1.41-1.42c-1.03-1.17-1.23-3.09-0.26-4.26 0.46-0.6
1.22-1.05 2.15-1.18 1.67-0.22 3.37 0.59 4.94 1.74l1.44-1.44L16 8v-5zM18.59 13.41L22 16.83V12h-1.5l-2.91
2.91c-1.47-1.03-3.12-1.7-4.97-1.7-2.33 0-4.48 1.33-5.61 3.66-1.12 2.33-0.7 5.19 1.08 6.92l1.41-1.41c-1.18-1.02-1.52-3-0.74-4.41.29-.6.83-1.12
1.62-1.12 1.02 0 2.09.85 3.12 1.7l.73-.73-3.12-3.13z"
/>
</svg>
</button>
</div>
</div>
<!-- Модальное окно админ-панели -->
<div
id="repeat-modal"
class="modal"
role="dialog"
aria-modal="true"
aria-labelledby="repeat-modal-title"
style="display: none;"
>
<div class="modal-content" tabindex="0">
<h2 id="repeat-modal-title" class="repeat-modal-title">Панель Администратора</h2>
<p class="repeat-modal-text">Выберите состояние повтора:</p>
<button id="name-author-btn" type="button">Имя автора</button>
<button id="name-music-btn" type="button">Название песни</button>
<button id="img-btn" type="button">Изменить картинку</button>
<button id="repeat-modal-close" aria-label="Закрыть окно" type="button">Закрыть</button>
</div>
</div>
<!-- Скрытый input для загрузки изображения -->
<input
type="file"
id="upload-image-input"
accept="image/*"
style="display: none;"
aria-hidden="true"
tabindex="-1"
/>
<!-- Аудиоэлемент -->
<audio id="audio" src="" preload="metadata"></audio>
<!-- Скрипты -->
<script src="./js/audio.js"></script>
<script src="./js/progress-trail.js"></script>
<script src="./Admin/js/modal-window.js"></script>
<script src="./Admin/js/moveModalWindow.js"></script>
<script src="./Admin/js/nameAdmin.js"></script>
<script src="./Admin/js/trackNameAdmin.js"></script>
<script src="./Admin/js/imgAdmin.js"></script>
</body>
</html>