clientdashboard.php 808 B

1234567891011121314151617181920212223242526
  1. <html>
  2. <head>
  3. <link rel="stylesheet" type="text/css" href="/css/<?=DOMAIN?>.css" />
  4. <link rel="shortcut icon" href="daktylos.png" type="image/png" />
  5. </head>
  6. <body>
  7. <h1><?=$clientDisplayName?> Dashboard</h1>
  8. <div class="row">Logged in as <?=$displayName?>
  9. <button id="logout">Logout</button>
  10. </div>
  11. <canvas style="width:600px;height:400px;background-color:gray;"></canvas>
  12. <script type="text/javascript" src="/js/ajax.js"></script>
  13. <script type="text/javascript">
  14. var logoutButton = document.getElementById("logout");
  15. logoutButton.addEventListener('click', function() {
  16. postJson("/api/logout", null, function(response) {
  17. window.location = "/dashboard/";
  18. });
  19. }, false);
  20. </script>
  21. <script type="text/javascript">
  22. var authToken = "<?=$sessionToken?>";
  23. </script>
  24. </body>
  25. </html>