Bez popisu

testFrontEnd.php 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
  5. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
  6. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
  7. <title>Test</title>
  8. <style type="text/css">
  9. :root {
  10. --size: 12px;
  11. /* 15px for btn-xl */
  12. /* 15px for btn-lg */
  13. /* 12px for btn-md */
  14. /* 10px for btn-sm */
  15. /* 5px for btn-xs */
  16. --period: 750ms;
  17. --color: #3498db;
  18. --bg-color: white;
  19. --thinness: 5;
  20. /* 10 is okay */
  21. }
  22. .loader {
  23. display: inline-block;
  24. width: 12px;
  25. height: 12px;
  26. position: relative;
  27. margin-right: calc(12px / 2);
  28. }
  29. .loader:before, .loader:after {
  30. content: "";
  31. position: absolute;
  32. left: 0; /* make sure it's inside the box */
  33. width: 100%;
  34. height: 100%;
  35. border-radius: 100%;
  36. border: calc(12px / 5) solid transparent;
  37. border-top-color: #3498db;
  38. }
  39. .loader:before {
  40. z-index: 100;
  41. animation: spin 750ms infinite;
  42. }
  43. .loader:after {
  44. border: calc(12px / 5) solid white;
  45. }
  46. @keyframes spin {
  47. 0% {
  48. -webkit-transform: rotate(0deg);
  49. -ms-transform: rotate(0deg);
  50. -o-transform: rotate(0deg);
  51. transform: rotate(0deg);
  52. }
  53. 100% {
  54. -webkit-transform: rotate(360deg);
  55. -ms-transform: rotate(360deg);
  56. -o-transform: rotate(360deg);
  57. transform: rotate(360deg);
  58. }
  59. }
  60. </style>
  61. </head>
  62. <body>
  63. <!--
  64. <form id="myForm">
  65. <input type="hidden" name="caca" value="pipi">
  66. <input type="hidden" name="caca2" value="pipi2">
  67. <input type="hidden" name="caca3" value="pipi3">
  68. <button type="submit" name="formSubmit" class="btn btn-xl btn-primary">
  69. Press Me!
  70. </button>
  71. </form>
  72. <div id="error-myForm" class="row" style="display: none;">
  73. <div class="col-sm-3">
  74. <div class="alert alert-danger mb-1" role="alert">
  75. <h4 class="error-lead">Error!</h4>
  76. <p class="error-description"></p>
  77. </div>
  78. </div>
  79. </div>
  80. -->
  81. <header id="main-header">
  82. <a id="logo" href=".">
  83. TANIA
  84. <img src="./img/pen_800x800.png" alt="tania logo pen" width="25" height="25">
  85. </a>
  86. <div id="account">
  87. <a class="nav-link" href="./questionnaires.php">Questionnaire Collection</a>
  88. <a class="sign-out" href="./processes/logout.php">Sign Out</a>
  89. </div>
  90. </header>
  91. <div class="container-fluid" id="view-experience-showcase" style="background-color: #333;">
  92. <h2 style="color: white;">Test 123</h2>
  93. <div id="view-experience-block">
  94. <blockquote style="color:rgb(216,216,216); margin: 0;">
  95. <h4><b style="color:#fff;">Description:</b> <span style="color:rgb(216,216,216);">Testing purposes</span></h4>
  96. <h4><b style="color:#fff;">Type:</b> <span style="color:rgb(216,216,216);">Independent Research</span></h4>
  97. <h4><b style="color:#fff;">Duration:</b> <span style="color:rgb(216,216,216);">3 weeks</span></h4>
  98. </blockquote>
  99. <div id="view-experience-buttons">
  100. <div id="experience-pen" onclick="window.location='respuestas.php?exp=<?php echo $id_experience; ?>'">
  101. <span class="fas fa-poll-h"></span>
  102. </div>
  103. <div id="experience-pen" onclick="nextModal('#Edit')">
  104. <span class="fas fa-pen"></span>
  105. </div>
  106. <div id="experience-pen" onclick="prompt('Press Ctrl + C to copy to clipboard!','https://tania.uprrp.edu/enrollInExp.php?id=<?php echo $rowHash['hash_id']; ?>')">
  107. <span class="fas fa-link"></span>
  108. </div>
  109. </div>
  110. </div>
  111. <br>
  112. <div id="view-experience-tabs">
  113. <a class="active" href="#calendar">Calendar</a>
  114. <a href="#questionnaires">Questionnaires</a>
  115. <a href="#moments">Moments</a>
  116. <a href="#milestones">Milestones</a>
  117. </div>
  118. </div>
  119. <div class="container">
  120. <div class="row">
  121. <div class="col-sm-12">
  122. <button type="button" data-piruli="acérrimo" data-pupi="yandel" class="btn btn-primary" data-toggle="modal" data-target="#bookModal">Hello World</button>
  123. </div>
  124. </div>
  125. </div>
  126. <div id="bookModal" class="modal fade" role="dialog" aria-labelledby="orderModalLabel" aria-hidden="true">
  127. <div class="modal-dialog" role="document">
  128. <div class="modal-content">
  129. <div class="modal-header">
  130. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  131. </div>
  132. <div id="orderDetails" class="modal-body">
  133. </div>
  134. <div class="modal-footer">
  135. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. <script type="text/javascript">
  141. $('#bookModal').on('show.bs.modal', function(e) {
  142. var modal = $(this);
  143. modal.find('#orderDetails').text(e.relatedTarget.innerText);
  144. var data = $(e.relatedTarget).data('piruli');
  145. var data2 = $(e.relatedTarget).data('pupi');
  146. console.log(data);
  147. console.log(data2);
  148. console.log(modal);
  149. });
  150. //setTimeout(() => $('#bookModal').modal('toggle'), 5000);
  151. </script>
  152. </body>
  153. </html>