You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

158 lines
5.1 KiB

6 years ago
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Title</title>
  6. <style>
  7. #img:hover{
  8. color: #424242;
  9. -webkit-transition: all .3s ease-in;
  10. -moz-transition: all .3s ease-in;
  11. -ms-transition: all .3s ease-in;
  12. -o-transition: all .3s ease-in;
  13. transition: all .3s ease-in;
  14. opacity: 1;
  15. transform: scale(1.15);
  16. -ms-transform: scale(1.15); /* IE 9 */
  17. -webkit-transform: scale(1.15); /* Safari and Chrome */
  18. }
  19. .close {
  20. /* Position it in the top right corner outside of the modal */
  21. float:right;
  22. right: 25px;
  23. top: 0;
  24. color: #000;
  25. font-size: 35px;
  26. font-weight: bold;
  27. margin-top:10px;
  28. }
  29. .title{
  30. text-align: left;
  31. }
  32. td{
  33. padding: 20px 10px;
  34. }
  35. .popup{
  36. display: none; /* Hidden by default */
  37. position: fixed; /* Stay in place */
  38. left: 0;
  39. top: 0;
  40. width: 100%; /* Full width */
  41. height: 100%; /* Full height */
  42. overflow: auto; /* Enable scroll if needed */
  43. background-color: rgb(0,0,0); /* Fallback color */
  44. background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  45. padding-top: 60px;
  46. }
  47. #table,#table-user{
  48. background: white;
  49. padding: 40px 60px;
  50. }
  51. #content, #user-content{
  52. display: inline-block;
  53. margin-top: 125px;
  54. background: white;
  55. }
  56. </style>
  57. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
  58. </head>
  59. <body>
  60. <button onclick="document.getElementById('popup').style.display='block'">Login</button>
  61. <div id = "popup" align = "center" class = "popup">
  62. <div id = "content">
  63. <table border="0" cellpadding="10" cellspacing="0" id = "table" class = "modal">
  64. <tr>
  65. <td rowspan="2" colspan="7"><img src="cityscape.png" alt="img"id = "img"></td>
  66. <td colspan="2" class="title"><strong>Priority: </strong></td>
  67. <td colspan="1" id = "priority">7</td>
  68. </tr>
  69. <tr>
  70. <td colspan="2" class="title"><strong>Type: </strong></td>
  71. <td colspan="1" id = "type"> Ambulance</td>
  72. </tr>
  73. <tr>
  74. <td colspan="4" class="title"><strong>Submitter: </strong></td>
  75. <td colspan="6">
  76. <a href="#" id = "user" class = "panel" onclick=
  77. "document.getElementById('popup').style.display='none';
  78. document.getElementById('user-popup').style.display='block';"
  79. >Efe Aydın </a>
  80. </td>
  81. </tr>
  82. <tr>
  83. <td colspan="4" class="title"><strong>Message: </strong></td>
  84. <td colspan="6" id = "message">Test ambulance</td>
  85. </tr>
  86. <tr>
  87. <td colspan="4" class="title"><strong>Tags: </strong></td>
  88. <td colspan="6" id = "tags">Test tags</td>
  89. </tr>
  90. </table>
  91. </div>
  92. </div>
  93. <div id = "user-popup" align = "center" class="popup">
  94. <div id = "user-content">
  95. <table border="0" cellpadding="10" cellspacing="0" id = "table-user" class = "modal">
  96. <tr>
  97. <td rowspan="3" colspan="7"><img src="cityscape.png" alt="img"id = "img-user"></td>
  98. <td colspan="2" class="title"><strong>Name: </strong></td>
  99. <td colspan="1" id = "name">Efe Aydın</td>
  100. </tr>
  101. <tr>
  102. <td colspan="2" class="title"><strong>TC: </strong></td>
  103. <td colspan="1" id = "tc">111111111111</td>
  104. </tr>
  105. <tr>
  106. <td colspan="2" class="title"><strong>Trust: </strong></td>
  107. <td colspan="1" id = "trust">7</td>
  108. </tr>
  109. <tr>
  110. <td colspan="4" class="title"><strong>Phone: </strong></td>
  111. <td colspan="6" id="phone">
  112. 0 555 555 55 55
  113. </td>
  114. </tr>
  115. <tr>
  116. <td colspan="4" class="title"><strong>E-mail: </strong></td>
  117. <td colspan="6" id = "email">efeaydin@citizenview.com</td>
  118. </tr>
  119. <tr>
  120. <td colspan="4" class="title"><strong>Health: </strong></td>
  121. <td colspan="6" id = "health">Test tags</td>
  122. </tr>
  123. </table>
  124. <button onclick=
  125. "document.getElementById('popup').style.display='block';
  126. document.getElementById('user-popup').style.display='none';"
  127. style="margin-bottom: 5px;">OK</button>
  128. </div>
  129. </div>
  130. <script>
  131. var modal = document.getElementById('popup');
  132. window.onclick = function(event) {
  133. if (event.target == modal) {
  134. modal.style.display = "none";
  135. }
  136. }
  137. </script>
  138. </body>
  139. </html>