index.html 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <link type="text/css" rel="stylesheet" href="css/material-icons.css" />
  7. <link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection" />
  8. <link type="text/css" rel="stylesheet" href="css/style.min.css" media="screen,projection" />
  9. <link rel="icon" href="img/favicon.ico" />
  10. <title>Accueil - Microfolie Lens</title>
  11. </head>
  12. <body class="grey lighten-3">
  13. <!-- Header -->
  14. <header class="navbar-fixed">
  15. <nav class="red">
  16. <div class="nav-wrapper">
  17. <a href="./" class="brand-logo center mtop-half hide-on-med-and-down"><img src="img/logo.png"
  18. title="Logo Microfolie" class="responsive-img" style="max-width: 128px;" /></a>
  19. <a href="./" class="brand-logo center hide-on-large-only">Microfolie Lens</a>
  20. <a href="#!" data-target="mobile-nav" class="sidenav-trigger"><i class="material-icons">menu</i></a>
  21. <div class="left mleft-2 hide-on-med-and-down">
  22. <a href="./">
  23. <h5>Microfolie Lens</h5>
  24. </a>
  25. </div>
  26. <ul class="right mright-2 hide-on-med-and-down">
  27. <li><a href="#abonne">Abonn&eacute;s</a></li>
  28. <li><a href="inscription.jsp">Inscription</a></li>
  29. <li><a href="#param">Param&eacute;trage espace</a></li>
  30. </ul>
  31. </div>
  32. </nav>
  33. </header>
  34. <!-- Header Mobile -->
  35. <ul class="sidenav" id="mobile-nav">
  36. <li class="center-align mtop-1">
  37. <img src="img/logo.png" title="Logo Microfolie" class="responsive-img" style="max-height: 150px;" />
  38. </li>
  39. <li class="center-align">
  40. <h4>Microfolie Lens</h4>
  41. <hr />
  42. </li>
  43. <li><a href="#abonne">Abonn&eacute;s</a></li>
  44. <li><a href="inscription.jsp">Inscription</a></li>
  45. <li><a href="#param">Param&eacute;trage espace</a></li>
  46. </ul>
  47. <div class="mtop-5 hide-on-med-and-down"></div>
  48. <!-- Main -->
  49. <main class="container">
  50. <div class="row">
  51. <div class="col s12 center-align">
  52. <h3>Dashboard</h3>
  53. </div>
  54. </div>
  55. <div class="row">
  56. <div class="col m12 l6">
  57. <canvas id="espaceToday"></canvas>
  58. </div>
  59. <div class="col m12 l6">
  60. <canvas id="espaceMonth"></canvas>
  61. </div>
  62. </div>
  63. <div class="row mtop-2">
  64. <div class="col m12 l6">
  65. <canvas id="freqWeek"></canvas>
  66. </div>
  67. <div class="col m12 l6">
  68. <canvas id="freqHours"></canvas>
  69. </div>
  70. </div>
  71. </main>
  72. <!-- Footer -->
  73. <footer class="page-footer red">
  74. <div class="container">
  75. <div class="row">
  76. <div class="col l6 s12">
  77. <h5 class="white-text">Microfolie Lens</h5>
  78. <p class="grey-text text-lighten-4">Bla bla bla ...</p>
  79. </div>
  80. <div class="col l4 offset-l2 s12">
  81. <h5 class="white-text">Liens utiles</h5>
  82. <ul>
  83. <li><a class="grey-text text-lighten-3" href="./">Accueil</a></li>
  84. <li><a class="grey-text text-lighten-3" href="#apropos">Qui somme nous</a></li>
  85. <li><a class="grey-text text-lighten-3" href="#mention">Mentions l&eacute;gales</a></li>
  86. <li><a class="grey-text text-lighten-3" href="#contact">Contact</a></li>
  87. </ul>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="footer-copyright">
  92. <div class="container">
  93. © 2019 Copyright Text
  94. <a class="grey-text text-lighten-4 right" href="https://villedelens.fr" target="_blank">Ville de
  95. Lens</a>
  96. </div>
  97. </div>
  98. </footer>
  99. <!-- Script -->
  100. <script type="text/javascript" src="js/jquery.min.js"></script>
  101. <script type="text/javascript" src="js/materialize.min.js"></script>
  102. <script type="text/javascript" src="js/script.js"></script>
  103. <!-- Script pour cette page-->
  104. <script type="text/javascript" src="js/chart.min.js"></script>
  105. <script type="text/javascript" src="js/generate-chart.js"></script>
  106. <script type="text/javascript">
  107. $(document).ready(() => {
  108. generateBarChart(
  109. document.getElementById('espaceToday'),
  110. 'Fréquentation des espaces aujourd\'hui',
  111. ["Accueil", "Realite Virtuelle", "Musee Numerique", "Cyber Base", "Shooting Photo", "Jeux Videos", "Espace Scenique"],
  112. [{
  113. title: 'Actuel',
  114. value: [60, 46, 30, 28, 22, 35, 9],
  115. color: { r: 255, g: 99, b: 132 }
  116. },
  117. {
  118. title: 'Moyenne 2019',
  119. value: [88, 42, 21, 34, 19, 38, 11],
  120. color: { r: 235, g: 192, b: 52 }
  121. }]
  122. );
  123. generateBarChart(
  124. document.getElementById('espaceMonth'),
  125. 'Fréquentation des espaces ce mois-ci',
  126. ["Accueil", "Realite Virtuelle", "Musee Numerique", "Cyber Base", "Shooting Photo", "Jeux Videos", "Espace Scenique"],
  127. [{
  128. title: 'Actuel',
  129. value: [260, 146, 90, 128, 112, 235, 109],
  130. color: { r: 255, g: 99, b: 132 }
  131. },
  132. {
  133. title: 'Moyenne 2019',
  134. value: [260, 142, 157, 132, 101, 191, 118],
  135. color: { r: 235, g: 192, b: 52 }
  136. }]
  137. );
  138. generateBarChart(
  139. document.getElementById('freqWeek'),
  140. 'Fréquentation par jours',
  141. ["Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi"],
  142. [{
  143. title: 'Actuel',
  144. value: [60, 46, 30, 28, 22]
  145. },
  146. {
  147. title: 'Moyenne 2019',
  148. value: [88, 42, 21, 34, 19],
  149. line: true
  150. }]
  151. );
  152. generateBarChart(
  153. document.getElementById('freqHours'),
  154. 'Fréquentation par heures',
  155. ["09H00-11H00", "11H00-13H00", "13H00-15H00", "15H00-17H00", "17H00-19H00"],
  156. [{
  157. title: 'Actuel',
  158. value: [10, 8, 4, 20, 12],
  159. },
  160. {
  161. title: 'Moyenne 2019',
  162. value: [14, 6, 5, 18, 14],
  163. line: true
  164. }]
  165. );
  166. });
  167. </script>
  168. </body>
  169. </html>