<!DOCTYPE html>
<html>
  <head>
    <title>Alqapp</title>
  </head>
  <body>
    <h1>
      Nextix App
    </h1>
    <div>
      <% if(data != null){ %>
      <div id="info">
        Name: <label id="t-name"></label><br>
        Skor: <label id="t-skor"></label><br>
        Absen: <label id="t-absen"></label><br>
        <br>
        <a href=/logout>Logout</a>
      </div><br>
      <div id="tugas"></div><br>
      <script>
        window.onload = function(){
          var name = document.getElementById("t-name")
          name.innerHTML = "<%= data %>"
        }
      </script>
      <% }else{ %>
      Not Logged in, login in <a href="login">Here</a>
      <% } %>
    </div>
  </body>
</html>
