settings.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Bienvenu à microfolie</title>
  6. <link rel="stylesheet" type="text/css" href="css/style.css">
  7. <link rel="stylesheet" type="text/css" href="css/settings.css">
  8. <link rel="stylesheet" type="text/css" href="css/bootstrap/css/bootstrap.css">
  9. <link rel="stylesheet" href="css/style1.css" type="text/css" />
  10. </head>
  11. <body>
  12. <div id="principal">
  13. <div class="header">
  14. <div class="navbar">
  15. <ul>
  16. <li><a href="index.html">Accueil</a></li>
  17. <li><a href="abonnes.html">nos Abonnés</a></li>
  18. </ul>
  19. </div><!-- end navbar -->
  20. </div><!-- end of header -->
  21. <div class="main">
  22. <div class="content">
  23. <main>
  24. <div class="container">
  25. <h4 class="section-title">Nos espace:</h4>
  26. <div>
  27. <button type="button" class="btn btn-danger btn-lg espace" onclick="lauchRequest('Accueil');">Accueil</button>
  28. </div>
  29. </div>
  30. </main>
  31. </div><!-- end of main div -->
  32. <div class="clear"></div>
  33. <div class="footer"></div><!-- end footer div -->
  34. </div><!-- end of pricipal div -->
  35. <script src="js/Chart.min.js" type="text/javascript"></script>
  36. <script src="js/index.js" type="text/javascript"></script>
  37. <script src="js/chart.js" type="text/javascript"></script>
  38. <script src="js/bootstrap/js/bootstrap.js" type="text/javascript"></script>
  39. <script>
  40. function lauchRequest(espace){
  41. console.log(espace);
  42. const xmlhttp = new XMLHttpRequest();
  43. // Get JSON File
  44. xmlhttp.onreadystatechange = function() {
  45. if (this.status == 200) {
  46. console.log(this.responseText);
  47. }
  48. };
  49. xmlhttp.open("GET", "http://localhost:8080/lens/configure?espace="+espace, true);
  50. xmlhttp.send();
  51. }
  52. </script>
  53. </body>
  54. </html>