SHARE
TWEET

Untitled

a guest Nov 17th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.  
  4. <head>
  5.     <meta charset="UTF-8">
  6.     <title>Exam Java 2019</title>
  7.  
  8.     <style>
  9.         body {
  10.         margin: 0;
  11.         padding: 0;
  12.         }
  13.  
  14.         #main-container {
  15.             font-family: Arial, Helvetica, sans-serif;
  16.             padding: 20;
  17.             margin: 20;
  18.             text-align: center;
  19.         }
  20.  
  21.         ul {
  22.         list-style-type: none;
  23.         margin: 0;
  24.         padding: 0;
  25.         overflow: hidden;
  26.         background-color: #333;
  27.         }
  28.  
  29.         li {
  30.         float: left;
  31.         }
  32.  
  33.         li a {
  34.         display: block;
  35.         color: white;
  36.         text-align: center;
  37.         padding: 14px 16px;
  38.         text-decoration: none;
  39.         }
  40.  
  41.         li a:hover:not(.active) {
  42.         background-color: #111;
  43.         }
  44.  
  45.         .active {
  46.         background-color: #4CAF50;
  47.         }
  48.     </style>
  49.  
  50. </head>
  51.  
  52. <body>
  53.     <div id="main-container">
  54.  
  55.     <ul>
  56.         <li><a class="active" href="index.html">Home</a></li>
  57.         <li><a href="newProject.html">New Project</a></li>
  58.         <li><a href="newWorker.html">New Member</a></li>
  59.         <li><a href="setProjectMember.html">Assign member</a></li>
  60.     </ul>
  61.  
  62.     <h1>Project Manager</h1>
  63.  
  64.     </div>
  65. </body>
  66.  
  67. <script>
  68.     // TODO - try to make async and await work - failed to implement keywords.
  69.     function fetchProjectMembers() {
  70.         const projectMemberResponse = fetch("/project_Members");
  71.         if (projectMemberResponse.ok) {
  72.             const shoppingCartContent = projectMemberResponse.text();
  73.             document.getElementById("projectMember").innerHTML = shoppingCartContent;
  74.         } else {
  75.             console.error("fetch failed ", projectMemberResponse);
  76.         }
  77.     }
  78.     fetchProjectMembers();
  79. </script>
  80.  
  81. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top