-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (55 loc) · 1.86 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MP3 Player PWA</title>
<meta name="theme-color" content="#317EFB">
<link rel="manifest" href="manifest.json">
<link rel="stylesheet" href="styles.css">
<!-- Removed Gradio client library -->
</head>
<body>
<h1>web to podcast player</h1>
<!-- Add audio controls container -->
<div id="audioControls">
<audio id="player" controls></audio>
<div id="controlButtons">
<button id="skipBackward">-10s</button>
<button id="playButton" style="display: none;">Play</button>
<button id="skipForward">+10s</button>
</div>
</div>
<!-- Add settings button -->
<button id="settingsBtn">Settings</button>
<!-- Add transcription container -->
<div id="transcriptionContainer" style="display: none;">
<h2>Transcription:</h2>
<p id="transcription"></p>
</div>
<!-- Add settings modal -->
<div id="settingsModal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<h2>Settings</h2>
<label for="apiKey">OpenAI API Key:</label>
<div class="api-key-container">
<input type="password" id="apiKey" placeholder="Enter your API key">
<button id="toggleApiKey">👁️</button>
</div>
<label for="apiServer">API Server:</label>
<input type="text" id="apiServer" placeholder="Enter API server URL">
<button id="saveSettings">Save</button>
</div>
</div>
<div id="loadingIndicator" style="display: none;">Loading audio...</div>
<!-- Add history section -->
<div id="historySection">
<h2>History</h2>
<ul id="historyList"></ul>
<button id="clearHistory">Clear History</button>
</div>
<script type="module" src="script.js"></script>
<!-- <script src="/script.js"></script> -->
</body>
</html>