index.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <?PHP
  2. require_once "../pcdl/html_head.php";
  3. ?>
  4. <body>
  5. <script src="../palicanon/palicanon.js"></script>
  6. <script src="../term/term.js"></script>
  7. <?php
  8. require_once("../pcdl/head_bar.php");
  9. ?>
  10. <style>
  11. #main_tag {
  12. font-size: 150%;
  13. text-align: center;
  14. margin: 5em 0;
  15. transition: all 600ms ease;
  16. text-transform: capitalize;
  17. }
  18. #main_tag span {
  19. margin: 2px;
  20. padding: 2px 12px;
  21. font-weight: 500;
  22. transition-duration: 0.2s;
  23. cursor: pointer;
  24. font-size: 120%;
  25. border: unset;
  26. border-radius: 0;
  27. border-bottom: 2px solid var(--nocolor);
  28. display: inline-block;
  29. }
  30. #main_tag span:hover {
  31. background-color: unset;
  32. color: unset;
  33. border-color: var(--link-hover-color);
  34. }
  35. #main_tag .select {
  36. border-bottom: 2px solid var(--link-color);
  37. }
  38. #tag_selected {
  39. margin: 1em 0;
  40. }
  41. tag {
  42. background-color: var(--btn-color);
  43. margin: 2px;
  44. padding: 2px 12px;
  45. border-radius: 5px;
  46. border: 1px solid #fe897c;
  47. }
  48. .tag-delete {
  49. margin-left: 6px;
  50. color: #f93e3e;
  51. cursor: pointer;
  52. }
  53. .tag-delete:hover {
  54. color: red;
  55. font-weight: 700;
  56. }
  57. .tag_others {
  58. margin: 10px 0;
  59. }
  60. .canon-tag {
  61. background-color: #46a6d2;
  62. border: 0;
  63. border-radius: 6px;
  64. color: white;
  65. font-weight: 400;
  66. }
  67. .canon-tag:hover {
  68. background-color: var(--link-hover-color);
  69. }
  70. .sutta_row {
  71. display: grid;
  72. align-items: center;
  73. grid-template-columns: 100px 200px 100px auto;
  74. width: 100%;
  75. border-bottom: 1px solid var(--border-line-color);
  76. }
  77. .sutta_row div {
  78. padding: 10px;
  79. /*display: flex;*/
  80. justify-items: center;
  81. }
  82. .sutta_row:hover {
  83. background-color: var(--drop-bg-color);
  84. }
  85. .c_level_1 {
  86. padding-top: 15px;
  87. padding-bottom: 15px;
  88. background-color: var(--main-color1);
  89. }
  90. .c_level_1 .chapter_title{
  91. font-size:120%;
  92. font-weight:700;
  93. }
  94. #book_list{
  95. display: flex;
  96. flex-wrap: wrap;
  97. }
  98. .chapter_list{
  99. display:none;
  100. }
  101. .chapter_book{
  102. display:block;
  103. }
  104. .chapter_progress{
  105. display:block;
  106. }
  107. .parent_chapter{
  108. width:350px;
  109. }
  110. .parent_chapter .chapter_book,.parent_chapter .chapter_progress{
  111. display:none;
  112. }
  113. #select_bar {
  114. display: flex;
  115. justify-content: space-between;
  116. }
  117. @media screen and (max-width:800px) {
  118. .sutta_row {
  119. grid-template-columns: 100px 1fr 1fr;
  120. }
  121. .sutta_tag {
  122. grid-column: 1 / 4;
  123. }
  124. }
  125. </style>
  126. <link type="text/css" rel="stylesheet" href="../palicanon/style.css" />
  127. <script>
  128. var tag_level = <?php echo file_get_contents("../public/book_tag/tag_list.json"); ?>;
  129. </script>
  130. <?php
  131. //
  132. require_once "../path.php";
  133. require_once "../public/_pdo.php";
  134. require_once '../media/function.php';
  135. require_once '../public/function.php';
  136. ?>
  137. <div id='course_head_bar' style='background-color:var(--tool-bg-color1);padding:1em 10px 10px 10px;'>
  138. <div class='index_inner '>
  139. <div style='font-size:140%'>
  140. </div>
  141. <div id="main_tag" style="">
  142. <span tag="sutta" title="sutta"></span>
  143. <span tag="vinaya" title="vinaya"></span>
  144. <span tag="abhidhamma" title="abhidhamma"></span>
  145. <span tag="mūla" title="mūla"></span>
  146. <span tag="aṭṭhakathā" title="aṭṭhakathā"></span>
  147. <span tag="ṭīkā" title="ṭīkā"></span>
  148. <span tag="añña" title="añña"></span>
  149. </div>
  150. <div id="select_bar" >
  151. <div id="tag_selected"></div>
  152. <div><button onclick="tag_list_slide_toggle()">展开</button></div>
  153. </div>
  154. <div>
  155. <div id="tag_list">
  156. <div level="0" class="tag_others"></div>
  157. <div level="1" class="tag_others"></div>
  158. <div level="2" class="tag_others"></div>
  159. <div level="3" class="tag_others"></div>
  160. <div level="4" class="tag_others"></div>
  161. <div level="5" class="tag_others"></div>
  162. <div level="100" class="tag_others"></div>
  163. <div level="8" class="tag_others"></div>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. <div class='index_inner'>
  169. <div id="chapter_shell" class="chapter_list" >
  170. <div id="list_shell_1" class="show" level="1">
  171. <ul id="list-1" class="grid" level="1" >
  172. </ul>
  173. </div>
  174. <div id="list_shell_2" level="2">
  175. <ul id="list-2" class="hidden" level="2" >
  176. </ul>
  177. </div>
  178. <div id="list_shell_3" level="3">
  179. <ul id="list-3" class="hidden" level="3" >
  180. </ul>
  181. </div>
  182. <div id="list_shell_4" level="4">
  183. <ul id="list-4" class="hidden" level="4" >
  184. </ul>
  185. </div>
  186. <div id="list_shell_5" level="5">
  187. <ul id="list-5" class="hidden" level="5" >
  188. </ul>
  189. </div>
  190. <div id="list_shell_6" level="6">
  191. <ul id="list-6" class="hidden" level="6" >
  192. </ul>
  193. </div>
  194. <div id="list_shell_7" level="7">
  195. <ul id="list-7" class="hidden" level="7" >
  196. </ul>
  197. </div>
  198. <div id="list_shell_8" level="8">
  199. <ul id="list-8" class="hidden" level="8" >
  200. </ul>
  201. </div>
  202. </div>
  203. </div>
  204. <script>
  205. $(document).ready(function() {
  206. palicanon_onload();
  207. });
  208. </script>
  209. <?php
  210. include "../pcdl/html_foot.php";
  211. ?>