Files
projectorpi-web/projectorpi_web/index.html
Marijn Doeve b82724664e
All checks were successful
release-nightly / release-image (push) Has been cancelled
release-tag / release-image (push) Successful in 20m28s
Add new index page
2023-09-05 00:07:21 +02:00

25 lines
983 B
HTML

<!DOCTYPE html>
<html>
<head></head>
<body>
<main>
<button class="remote-button" data-direction="up">UP</button>
<button class="remote-button" data-direction="right">RIGHT</button>
<button class="remote-button" data-direction="down">DOWN</button>
<button class="remote-button" data-direction="left">LEFT</button>
<button class="remote-button" data-direction="enter">ENTER</button>
<button class="remote-button" data-direction="menu">MENU</button>
<button class="remote-button" data-direction="vol_up">VOL UP</button>
<button class="remote-button" data-direction="vol_down">VOL DOWN</button>
</main>
<script>
document.addEventListener('DOMContentLoaded', () => {
document.addEventListener('click', (e) => {
let direction = e.target.dataset.direction
fetch(`/control/${direction}`, {method: 'POST'})
});
})
</script>
</body>
</html>