webtoaudio / index.html
Brunwo
default to eng, working separate js UI
30933b5
raw
history blame
1.55 kB
<!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>
<audio id="player" controls></audio>
<!-- Add play button -->
<button id="playButton" style="display: none;">Play</button>
<!-- 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">&times;</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>
<script type="module" src="script.js"></script>
<!-- <script src="/script.js"></script> -->
</body>
</html>