Advertisement
Guest User

Untitled

a guest
May 20th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
  5. <meta charset="utf-8">
  6. <title>CoffeeBreak</title>
  7. <link rel="icon" type="image/png" sizes="32x32" href="favicon_transp.png">
  8. <style>
  9.  
  10. html, body {
  11. background-image: url("coffee_time.jpg");
  12. height: 100%;
  13. margin: 0;
  14. padding: 0;
  15. }
  16.  
  17. .header {
  18. text-align: center;
  19. color: #ffffff;
  20. font-size: 150px;
  21. font-family: Georgia, serif;
  22. font-style: italic;
  23. }
  24.  
  25. .logout_btn {
  26. position:absolute;
  27. top:0;
  28. right:0;
  29.  
  30. }
  31.  
  32. .buttonHover1:hover {
  33. background-color: red;
  34. -webkit-transition-duration: 0.5s;
  35. transition-duration: 0.5s;
  36. color: white;
  37. }
  38.  
  39. #myTable {
  40. border-collapse: collapse; /* Collapse borders */
  41. width: 100%; /* Full-width */
  42. border: 1px solid white; /* Add a grey border */
  43. font-size: 20px; /* Increase font-size */
  44. color:white;
  45. }
  46.  
  47. #myTable th, #myTable td {
  48. text-align: left; /* Left-align text */
  49. padding: 12px; /* Add padding */
  50. }
  51.  
  52. #myTable tr {
  53. /* Add a bottom border to all table rows */
  54. border-bottom: 1px solid white;
  55. background-color: purple;
  56. }
  57.  
  58. #myTable tr.header {
  59. /* Add a grey background color to the table header and on hover */
  60. background-color: purple;
  61. }
  62.  
  63.  
  64.  
  65. </style>
  66. </head>
  67. <body>
  68.  
  69. <div class="header">
  70. <p style="margin-top: 0px; text-shadow: 5px 5px #ff0000;">CoffeeBreak</p>
  71. </div>
  72.  
  73. <form action="/logout.php">
  74. <div class="logout_btn">
  75. <button class="buttonHover1" type="submit" style="height:40px; width:200px; font-size: 15px; border-radius: 25px; border: 5px solid red;">Αποσύνδεση</button>
  76. </div>
  77. </form>
  78.  
  79. <div class="table">
  80. <table id="myTable">
  81. <tr class="caption">
  82. <th>Αριθμός παραγγελίας</th>
  83. <th >Διεύθυνση παραγγελίας</th>
  84. <th >Κατάστημα</th>
  85. <th >Όνομα Delivera</th>
  86. <th >Ποσό παραγγελίας</th>
  87. </tr>
  88.  
  89. </table>
  90. </div>
  91.  
  92. <script>
  93.  
  94. <script type="text/javascript">
  95.  
  96. function addRow(myTable) {
  97. // Get a reference to the table
  98. var tableRef = document.getElementById(tableID);
  99.  
  100. // Insert a row in the table at row index 0
  101. var newRow = tableRef.insertRow(0);
  102.  
  103. // Insert a cell in the row at index 0
  104. var newCell = newRow.insertCell(0);
  105.  
  106. // Append a text node to the cell
  107. var newText = document.createTextNode('New top row');
  108. newCell.appendChild(newText);
  109. }
  110.  
  111. // Call addRow() with the ID of a table
  112. addRow('TableA');
  113.  
  114. </script>
  115.  
  116. </script>
  117.  
  118. </body>
  119. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement