1234567891011121314151617181920212223242526 |
- <html>
- <head>
- <link rel="stylesheet" type="text/css" href="/css/<?=DOMAIN?>.css" />
- <link rel="shortcut icon" href="daktylos.png" type="image/png" />
- </head>
- <body>
- <h1><?=$clientDisplayName?> Dashboard</h1>
- <div class="row">Logged in as <?=$displayName?>
- <button id="logout">Logout</button>
- </div>
- <canvas style="width:600px;height:400px;background-color:gray;"></canvas>
- <script type="text/javascript" src="/js/ajax.js"></script>
- <script type="text/javascript">
- var logoutButton = document.getElementById("logout");
- logoutButton.addEventListener('click', function() {
- postJson("/api/logout", null, function(response) {
- window.location = "/dashboard/";
- });
- }, false);
- </script>
- <script type="text/javascript">
- var authToken = "<?=$sessionToken?>";
- </script>
- </body>
- </html>
|