-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
37 lines (35 loc) · 1.48 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
<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Subtitle Player</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<dialog id="myDialog" class="custom-dialog">
<h2>Subtitle (.srt) player</h2>
<p>This is a subtitle file player that you can use on a phone during cinema/movie for dubbed films.</p>
<button onclick="closeDialog()">Close</button>
</dialog>
<div class="container">
<button id="fullscreenButton" style="position: fixed; top: 10px; right: 10px">Fullscreen</button>
<div id="filePicker" style="display: flex; justify-content: center; margin-top: 20vh;">
<input type="file" id="subtitleFile" accept=".srt">
</div>
<div class="subtitle-container">
<div id="subtitleText"></div>
</div>
<div style="display: flex; align-items: center; position: fixed; bottom: 10px; left: 10px; width: 98%">
<button id="playButton" class="play-button"> </button>
<button id="seekButtonAdd" style="margin-left: 10px;">+10</button>
<button id="seekButtonSubtract" style="margin-left: 10px;">-10</button>
<input style="width: 100%" type="range" id="seekBar" min="0" step="0.01"></input>
<div id="currentTime">00:00</div>
</div>
</div>
<script src="NoSleep.min.js"></script>
<script src="script.js"></script>
</body>
</html>