You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
2.5 KiB
HTML
95 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>PI Video Player</title>
|
|
<style>
|
|
/* #videos {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
width: fit-content;
|
|
margin: 0 auto;
|
|
}
|
|
#videos button {
|
|
margin: 2px;
|
|
} */
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Upload a file and it should start playing</h1>
|
|
<form ref='uploadForm'
|
|
id='uploadForm'
|
|
action='/upload'
|
|
method='post'
|
|
encType="multipart/form-data">
|
|
<input type="file" name="file" />
|
|
<input type='submit' value='Upload!' />
|
|
</form>
|
|
|
|
<hr>
|
|
|
|
<h2>Background video</h2>
|
|
<div id="videos"></div>
|
|
<div>Currently selected video:</div>
|
|
<div id="selectedvideo"></div>
|
|
|
|
<hr>
|
|
|
|
<h2>Overlay video</h2>
|
|
<div id="overlayvideos"></div>
|
|
<button id="play" onclick="fetch(`/playoverlay`, { method: 'POST' });">Play Overlay now</button>
|
|
<div>Currently selected video:</div>
|
|
<div id="overlayvideo"></div>
|
|
|
|
<hr>
|
|
|
|
<h2>Delete videos</h2>
|
|
<div id="deletevideos"></div>
|
|
|
|
<hr>
|
|
|
|
<h2>Projector status 1</h2>
|
|
<div id="projectorstatus1"></div>
|
|
|
|
<hr>
|
|
|
|
<h2>Projector status 2</h2>
|
|
<div id="projectorstatus2"></div>
|
|
<button onclick="fetch(`/startprojector`, { method: 'POST' });">Start projectors</button>
|
|
<button onclick="fetch(`/stopprojector`, { method: 'POST' });">Stop projectors</button>
|
|
|
|
<hr>
|
|
|
|
<h2>Relay 1</h2>
|
|
<div id="relay1"></div>
|
|
<button onclick="fetch(`https://steady.bpfilip.dk/relay/on/19`);">Relay 1 ON</button>
|
|
<button onclick="fetch(`https://steady.bpfilip.dk/relay/off/19`);">Relay 1 Off</button>
|
|
|
|
<hr>
|
|
|
|
<h2>Relay 2</h2>
|
|
<div id="relay2"></div>
|
|
<button onclick="fetch(`https://steady.bpfilip.dk/relay/on/13`);">Relay 2 ON</button>
|
|
<button onclick="fetch(`https://steady.bpfilip.dk/relay/off/13`);">Relay 2 Off</button>
|
|
|
|
<hr>
|
|
|
|
<h2>Relay 3</h2>
|
|
<div id="relay3"></div>
|
|
<button onclick="fetch(`https://steady.bpfilip.dk/relay/on/6`);">Relay 3 ON</button>
|
|
<button onclick="fetch(`https://steady.bpfilip.dk/relay/off/6`);">Relay 3 Off</button>
|
|
|
|
<hr>
|
|
|
|
<h2>Relay 4</h2>
|
|
<div id="relay4"></div>
|
|
<button onclick="fetch(`https://steady.bpfilip.dk/relay/on/5`);">Relay 4 ON</button>
|
|
<button onclick="fetch(`https://steady.bpfilip.dk/relay/off/5`);">Relay 4 Off</button>
|
|
|
|
<script src="/main.js"></script>
|
|
</body>
|
|
</html>
|