added arduino data to front

This commit is contained in:
bach 2025-05-30 17:19:03 +02:00
parent 9250353c1c
commit f969bf638c
2 changed files with 8 additions and 2 deletions

View File

@ -52,8 +52,8 @@
<!-- Ajoute autant de titres que nécessaire -->
</div>
<script src="script.js"></script>
<script src="socket.io.min.js"></script>
<script src="script.js"></script>
</body>
</html>

View File

@ -12,6 +12,12 @@ const loopBtn = document.getElementById('loop');
let isPlaying = false;
let isLooping = false;
// sokcet.io & arduino serial info
const socket = io();
socket.on('position', (position) => {
console.log('recieved position', position);
});
// 3. Fonctions
// Fonction pour basculer la lecture