Guest User

Untitled

a guest
Sep 6th, 2020
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.12 KB | None | 0 0
  1. <style>
  2.  
  3. .englectureenglish {
  4. font-family: arial, sans-serif;
  5. border-collapse: collapse;
  6. width: 100%;
  7. }
  8. .trenglectureenglishtd th{text-align:center !important;}
  9.  
  10. .englectureenglishtdtr td, .trenglectureenglishtd th {
  11. border: 1px solid #424040;
  12. text-align: left;
  13. padding: 8px;
  14. }
  15.  
  16. .englectureenglish {
  17. counter-reset: rowNumber;
  18. /*width: 30%;*/
  19. margin: auto;
  20. }
  21.  
  22. .englectureenglish .englectureenglishtdtr {
  23. counter-increment: rowNumber;
  24. }
  25.  
  26. .englectureenglish tr td:first-child::before {
  27. content: counter(rowNumber);
  28. min-width: 1em;
  29. margin-right: 0.5em;
  30. }
  31. .englectureenglish .englectureenglishtdtr .englectureenglishtd:first-child{text-align:center;}
  32. .trenglectureenglishtd th:first-child{width:1%; /*4px*/}
  33. .trenglectureenglishtd th:nth-child(2) {width:10%;}
  34. .trenglectureenglishtd th:nth-child(3) {width:10%;}
  35. .trenglectureenglishtd th:nth-child(4) {width:17%;}
  36. .trenglectureenglishtd th:nth-child(5) {width:31%;}
  37. .trenglectureenglishtd th:nth-child(6) {width:31%;}
  38.  
  39. th.sticky-header {
  40. position: sticky;
  41. top: -1px;
  42. z-index: 10;
  43. background-color: #8dbbea;
  44. }
  45.  
  46. tr:nth-child(even) {
  47. background-color: #f2f1f1;
  48. }
  49.  
  50. .englectureenglishtd ol , .englectureenglishtd ul{margin:0px;padding-left:15px;}
  51. .englectureenglishtd ul li , .englectureenglishtd ol li{padding-bottom:8px; text-transform: capitalize;}
  52. /*.englectureenglishtdtr td:nth-child(4) , .trenglectureenglishtd th:nth-child(4){display: none;}
  53. .englectureenglishtdtr td:nth-child(5) , .trenglectureenglishtd th:nth-child(5){display: none;}
  54. .englectureenglishtdtr td:nth-child(6) , .trenglectureenglishtd th:nth-child(6){display: none;}*/
  55. .bc{background-color: #d4e6f1;color: #fd0000;}
  56.  
  57. .hover_bkgr_fricc {
  58. background: rgba(0, 0, 0, .4);
  59. cursor: pointer;
  60. display: none;
  61. height: 100%;
  62. position: fixed;
  63. text-align: center;
  64. top: 0;
  65. width: 100%;
  66. z-index: 10000;
  67. }
  68.  
  69. .hover_bkgr_fricc .helper {
  70. display: inline-block;
  71. height: 100%;
  72. vertical-align: middle;
  73. }
  74.  
  75. .hover_bkgr_fricc>div {
  76. background-color: #fff;
  77. box-shadow: 10px 10px 60px #555;
  78. display: inline-block;
  79. height: auto;
  80. max-width: 551px;
  81. min-height: 100px;
  82. vertical-align: middle;
  83. width: 60%;
  84. position: relative;
  85. border-radius: 8px;
  86. padding: 15px 5%;
  87. }
  88.  
  89.  
  90. .trigger_popup_fricc {
  91. cursor: pointer;
  92. font-size: 20px;
  93. margin: 20px;
  94. display: inline-block;
  95. font-weight: bold;
  96. }
  97.  
  98. .center {
  99. margin: auto;
  100. width: 96%;
  101. padding: 1em;
  102. box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  103. position: fixed;
  104. left: 0.78%;
  105. top: 0;
  106. z-index: 9999;
  107. background-color: white;
  108. height: 100%;
  109. }
  110.  
  111. #close {
  112. float: right;
  113. }
  114.  
  115. .hideform {
  116. display: none;
  117. }
  118.  
  119. .active {
  120. display: block;
  121. }
  122.  
  123. .wordssynonyms {
  124. cursor: pointer
  125. }
  126. </style>
  127.  
  128.  
  129.  
  130. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  131. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  132. <div dir="ltr" style="text-align: left;" trbidi="on">
  133. <table class="englectureenglish">
  134. <tbody>
  135. <tr class="trenglectureenglishtd">
  136. <th class="sticky-header">SN</th>
  137. <th class="sticky-header">1111</th>
  138. <th class="sticky-header">2222</th>
  139. <th class="sticky-header">3333</th>
  140. <th class="sticky-header">4444</th>
  141. <th class="sticky-header">5555</th>
  142. </tr>
  143. <tr class="englectureenglishtdtr">
  144. <td class="englectureenglishtd"></td>
  145. <td class="englectureenglishtd">aaaa</td>
  146. <td class="englectureenglishtd">bbbb</td>
  147. <td class="englectureenglishtd">cccc</td>
  148. <td class="englectureenglishtd">dddd</td>
  149. <td class="englectureenglishtd"><a class="wordssynonyms" title="Click me open pop">Click here to show the popup</a>
  150. <div class="center hideform">
  151. <button id="close" title="Click me to close">X</button> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley
  152. of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
  153. Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
  154. </div>
  155. </td>
  156. </tr>
  157. <tr class="englectureenglishtdtr">
  158. <td class="englectureenglishtd"></td>
  159. <td class="englectureenglishtd">aaaa</td>
  160. <td class="englectureenglishtd">bbbb</td>
  161. <td class="englectureenglishtd">cccc</td>
  162. <td class="englectureenglishtd">dddd</td>
  163. <td class="englectureenglishtd"><a class="wordssynonyms" title="Click me open pop">Click here to show the popup</a>
  164. <div class="center hideform">
  165. <button id="close" title="Click me to close">X</button> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley
  166. of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
  167. Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
  168. </div>
  169. </td>
  170. </tr>
  171. <tr class="englectureenglishtdtr">
  172. <td class="englectureenglishtd"></td>
  173. <td class="englectureenglishtd">aaaa</td>
  174. <td class="englectureenglishtd">bbbb</td>
  175. <td class="englectureenglishtd">cccc</td>
  176. <td class="englectureenglishtd">dddd</td>
  177. <td class="englectureenglishtd"><a class="wordssynonyms" title="Click me open pop">Click here to show the popup</a>
  178. <div class="center hideform">
  179. <button id="close" title="Click me to close">X</button> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley
  180. of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
  181. Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
  182. </div>
  183. </td>
  184. </tr>
  185. </tbody>
  186. </table>
  187.  
  188.  
  189. </div>
  190.  
  191.  
  192. <script type="text/javascript">
  193. //Open popup
  194. $(".wordssynonyms").on("click", function() {
  195. $('.center').addClass('active');
  196. });
  197.  
  198. //Close popup
  199. $("#close").on("click", function() {
  200. $('.center').removeClass('active');
  201. });
  202. </script>
Add Comment
Please, Sign In to add comment