Mise en place de la structure de l'interface web

This commit is contained in:
Jack Parrot
2025-03-22 19:12:30 +01:00
parent 104e93936b
commit 4a764beb9b
2 changed files with 36 additions and 22 deletions
+5
View File
@@ -4569,6 +4569,11 @@
motors_joystick.addEventListener('touchend', onup); motors_joystick.addEventListener('touchend', onup);
motors_joystick.addEventListener('touchcancel', onup); motors_joystick.addEventListener('touchcancel', onup);
function onclick(){
send_motors(vy+vx, vy-vx);
}
return index_umd; return index_umd;
+29 -20
View File
@@ -7,29 +7,38 @@
<title>MinHAUMTaure</title> <title>MinHAUMTaure</title>
</header> </header>
<body> <body>
<h1 class="text-center">Bienvenue sur MinHAUMTaure</h1>
<h2> Fonctionnalités</h2> <div class="container-fluid">
<div class="row mb-5 mt-5">
<div class="col">
<h1 class="text-center">Bienvenue sur MinHAUMTaure</h1>
</div>
</div>
<div class="row">
<div class="col mt-5">
<div class="row flex-nowrap">
<div class="col">
<h2 class="text-center">Directions</h2>
<canvas id="motors_joystick"width="400"height="400"></canvas>
</div>
<div class="col">
<h2 class="text-center"> Fonctionnalités</h2>
<p>Sélection de la couleur</p>
<input type="color" id="colorLed">
<br/> <h2 class="text-center">Automatique</h2>
<br/> <div class="form-check-inline form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="flexSwitchCheckDefault">
<label class="form-check-label" for="flexSwitchCheckDefault">Mode Auto</label>
</div>
</div>
</div>
</div>
<div class="col mt-5">
<h2 class="text-center">Repère Spatial</h2>
<p>Sélection de la couleur</p> </div>
<input type="color" id="colorLed"> </div>
<br/>
<br/>
<p>Directions</p>
<canvas id="motors_joystick" width="400" height="400"></canvas>
<br/>
<br/>
<p>Automatique</p>
<div class="form-check-inline form-switch ">
<input class="form-check-input" type="checkbox" role="switch" id="flexSwitchCheckDefault">
<label class="form-check-label" for="flexSwitchCheckDefault">Mode Auto</label>
</div> </div>
</body> </body>