|
@@ -33,27 +33,34 @@
|
|
|
<div class="container">
|
|
|
<h4 class="section-title">Nos espace:</h4>
|
|
|
<div>
|
|
|
- <button type="button" class="btn btn-danger btn-lg espace" href="localhost:8080/lens/configue?espace=accueil")>Accueil</button>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <button type="button" class="btn btn-danger btn-lg espace" href="localhost:8080/lens/configue?espace=espace1">Espace1</button>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <button type="button" class="btn btn-danger btn-lg espace" href="localhost:8080/lens/configue?espace=espace2">Espace2</button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
+ <button type="button" class="btn btn-danger btn-lg espace" onclick="lauchRequest('Accueil');">Accueil</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</main>
|
|
|
-
|
|
|
</div><!-- end of main div -->
|
|
|
<div class="clear"></div>
|
|
|
<div class="footer"></div><!-- end footer div -->
|
|
|
</div><!-- end of pricipal div -->
|
|
|
|
|
|
- <script src="js/Chart.min.js" type="text/javascript"></script>
|
|
|
+ <script src="js/Chart.min.js" type="text/javascript"></script>
|
|
|
<script src="js/index.js" type="text/javascript"></script>
|
|
|
<script src="js/chart.js" type="text/javascript"></script>
|
|
|
<script src="js/bootstrap/js/bootstrap.js" type="text/javascript"></script>
|
|
|
+
|
|
|
+ <script>
|
|
|
+ function lauchRequest(espace){
|
|
|
+ console.log(espace);
|
|
|
+ const xmlhttp = new XMLHttpRequest();
|
|
|
+ // Get JSON File
|
|
|
+ xmlhttp.onreadystatechange = function() {
|
|
|
+ if (this.status == 200) {
|
|
|
+ console.log(this.responseText);
|
|
|
+ }
|
|
|
+ };
|
|
|
+ xmlhttp.open("GET", "http://localhost:8080/lens/configure?espace="+espace, true);
|
|
|
+ xmlhttp.send();
|
|
|
+ }
|
|
|
+ </script>
|
|
|
</body>
|
|
|
|
|
|
</html>
|