Mise en place de la structure de l'interface web
This commit is contained in:
+5
@@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+31
-22
@@ -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">
|
||||||
<br/>
|
<div class="col">
|
||||||
<br/>
|
<h1 class="text-center">Bienvenue sur MinHAUMTaure</h1>
|
||||||
|
</div>
|
||||||
<p>Sélection de la couleur</p>
|
</div>
|
||||||
<input type="color" id="colorLed">
|
<div class="row">
|
||||||
|
<div class="col mt-5">
|
||||||
<br/>
|
<div class="row flex-nowrap">
|
||||||
<br/>
|
<div class="col">
|
||||||
|
<h2 class="text-center">Directions</h2>
|
||||||
<p>Directions</p>
|
<canvas id="motors_joystick"width="400"height="400"></canvas>
|
||||||
<canvas id="motors_joystick" width="400" height="400"></canvas>
|
</div>
|
||||||
|
<div class="col">
|
||||||
<br/>
|
<h2 class="text-center"> Fonctionnalités</h2>
|
||||||
<br/>
|
<p>Sélection de la couleur</p>
|
||||||
|
<input type="color" id="colorLed">
|
||||||
<p>Automatique</p>
|
|
||||||
<div class="form-check-inline form-switch ">
|
<h2 class="text-center">Automatique</h2>
|
||||||
<input class="form-check-input" type="checkbox" role="switch" id="flexSwitchCheckDefault">
|
<div class="form-check-inline form-switch">
|
||||||
<label class="form-check-label" for="flexSwitchCheckDefault">Mode Auto</label>
|
<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>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user