83 lines
3.6 KiB
HTML
83 lines
3.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="stylesheet" href="./style.css">
|
|
<title>pearCast</title>
|
|
</head>
|
|
<body class="bg-dark text-light">
|
|
<div id="titlebar">
|
|
<pear-ctrl></pear-ctrl>
|
|
</div>
|
|
<div class="container text-center">
|
|
<h1>pearCast</h1>
|
|
<div id="setup" class="create-join-btn-div">
|
|
<button id="create-station" class="btn btn-primary">Create Station</button>
|
|
<button id="open-join-modal" class="btn btn-secondary" data-bs-toggle="modal" data-bs-target="#joinModal">Join Station</button>
|
|
</div>
|
|
<div id="controls" class="d-none mt-4">
|
|
<p id="station-info"></p>
|
|
<button id="leave-stream" class="btn btn-danger mt-2">Leave Broadcast</button>
|
|
|
|
<!-- Broadcaster-only Controls -->
|
|
<div id="broadcaster-controls" class="mt-3 d-none">
|
|
<label for="audio-input-select" class="form-label">Select Audio Input Source:</label>
|
|
<select id="audio-input-select" class="form-select"></select>
|
|
<button id="apply-audio-source" class="btn btn-success mt-2">Apply</button>
|
|
</div>
|
|
|
|
<!-- Listener-only Controls -->
|
|
<div id="listener-controls" class="mt-3 d-none">
|
|
<!-- You can add listener-specific controls here -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Join Modal -->
|
|
<div class="modal fade hidden" id="joinModal" tabindex="-1" aria-labelledby="joinModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content bg-dark text-light">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="joinModalLabel">Join a Station</h5>
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<input type="text" id="station-id" class="form-control" placeholder="Enter Station ID">
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-secondary" id="join-station-cancel-button" data-bs-dismiss="modal">Cancel</button>
|
|
<button type="button" class="btn btn-primary" id="join-station-button">Join</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Create Station Modal -->
|
|
<div class="modal fade hidden" id="createStationModal" tabindex="-1" aria-labelledby="createStationModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content bg-dark text-light">
|
|
<div class="modal-header">
|
|
<div class="modal-body-container">
|
|
<h5 class="modal-title" id="createStationModalLabel">Create Station</h5>
|
|
<p style="font-size: 9px; font-weight: 900; color: #bbb;">Generate a new station ID or<br /> use an existing ID?</p>
|
|
</div>
|
|
<button id="generate-new-key" class="btn btn-primary mt-2">Generate New ID</button>
|
|
<!-- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> -->
|
|
</div>
|
|
<div class="modal-body">
|
|
<input type="text" id="existing-key" class="form-control" placeholder="You may manually enter an ID here">
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-secondary" id="create-station-cancel-button" data-bs-dismiss="modal">Cancel</button>
|
|
<button type="button" class="btn btn-primary" id="create-station-button">Create Station</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="module" src="app.js"></script>
|
|
</body>
|
|
</html>
|
|
<!-- 8741a7bf2d7709dceb733e910f3397855a5abee01b9f9509c1405af08191abc9 -->
|