averages.html 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE html>
  2. <!--
  3. vim: expandtab shiftwidth=4:
  4. -->
  5. <html>
  6. <head>
  7. <link rel="stylesheet" type="text/css" href="/css/default.css">
  8. <script type="text/javascript" src="/js/Chart.bundle.min.js"></script>
  9. <script type="text/javascript" src="/js/averages.js"></script>
  10. <script type="text/javascript">
  11. window.onload = function () {
  12. render_graph(
  13. '/cgi-bin/output/statistics?from=1970-01-01&until=2038-12-31',
  14. 'chart'
  15. );
  16. var loader = document.getElementById('loader');
  17. if (loader)
  18. loader.style.display = 'none';
  19. var chartdiv = document.getElementById('chartContainer');
  20. if (chartdiv)
  21. chartdiv.style.display = 'block';
  22. };
  23. </script>
  24. </head>
  25. <body>
  26. <div class="loader" id="loader"></div>
  27. <div id="chartContainer" style="height: 100%; width: 100%; display: none;">
  28. <canvas id="chart"></canvas>
  29. </div>
  30. </body>
  31. </html>