diff --git a/FrontEnd/js/controle.js b/FrontEnd/js/controle.js index fa99e0fc8962035f0a91f38f5a42ba0a60d29445..49fef8691e6b9b68354f7d924e7439a4156318ac 100644 --- a/FrontEnd/js/controle.js +++ b/FrontEnd/js/controle.js @@ -6,7 +6,13 @@ onkeydown = onkeyup = function detecteTouche(e){ else {nbTouches--;} if(nbTouches == 3) - {alert("Vous allez pas bien");} + { + header('monitored-backend.php?type=1'); + exit; + } if(nbTouches == 1 && e.keyCode == 13) - {alert("Vous allez bien");} + { + header('monitored-backend.php?type=0'); + exit; + } } diff --git a/monitored.php b/monitored.php index 781b49878b02b6364060f0f00a757219bcf3bc19..4af6e87aececc37d3ea1fa448913355762938adc 100644 --- a/monitored.php +++ b/monitored.php @@ -10,8 +10,8 @@ if(! isset($_SESSION['type']) || $_SESSION['type'] == 'Supervisor') <div class='container'> <div class='row'> <div class='col-sm-3'></div> -<div class='col-sm-3'><img src='bigFriendlyButton2.png' alt="Tout va bien" style='width:200px;height:200px;'/></div> -<div class='col-sm-3'><img src='redButton.png' alt="Au secours" style='width:200px;height:200px;'/></div> +<div class='col-sm-3'><a href="monitored-backend.php?type=0"><img src='green-button.png' alt="Tout va bien" style='width:200px;height:200px;'/></a></div> +<div class='col-sm-3'><a href="monitored-backend.php?type=1"><img src='help-button.jpg' alt="Au secours" style='width:200px;height:200px;'/></a></div> <div class='col-sm-3'></div> </div> </div>