index.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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_video_win iframe {
  12. width: 100%;
  13. height: 100%;
  14. }
  15. #main_tag {
  16. font-size: 150%;
  17. text-align: center;
  18. margin: 5em 0;
  19. transition: all 600ms ease;
  20. text-transform: capitalize;
  21. }
  22. #main_tag span {
  23. margin: 2px;
  24. padding: 2px 12px;
  25. font-weight: 500;
  26. transition-duration: 0.2s;
  27. cursor: pointer;
  28. font-size: 120%;
  29. border: unset;
  30. border-radius: 0;
  31. border-bottom: 2px solid var(--nocolor);
  32. display: inline-block;
  33. }
  34. #main_tag span:hover {
  35. background-color: unset;
  36. color: unset;
  37. border-color: var(--link-hover-color);
  38. }
  39. #main_tag .select {
  40. border-bottom: 2px solid var(--link-color);
  41. }
  42. #tag_selected {
  43. margin: 1em 0;
  44. }
  45. tag {
  46. background-color: var(--btn-color);
  47. margin: 2px;
  48. padding: 2px 12px;
  49. border-radius: 5px;
  50. border: 1px solid #fe897c;
  51. }
  52. .tag-delete {
  53. margin-left: 6px;
  54. color: #f93e3e;
  55. cursor: pointer;
  56. }
  57. .tag-delete:hover {
  58. color: red;
  59. font-weight: 700;
  60. }
  61. .tag_others {
  62. margin: 10px 0;
  63. }
  64. .canon-tag {
  65. background-color: #46a6d2;
  66. border: 0;
  67. border-radius: 6px;
  68. color: white;
  69. font-weight: 400;
  70. }
  71. .canon-tag:hover {
  72. background-color: var(--link-hover-color);
  73. }
  74. .sutta_row {
  75. display: grid;
  76. align-items: center;
  77. grid-template-columns: 100px 200px 100px auto;
  78. width: 100%;
  79. border-bottom: 1px solid var(--border-line-color);
  80. }
  81. .sutta_row div {
  82. padding: 10px;
  83. /*display: flex;*/
  84. justify-items: center;
  85. }
  86. .sutta_row:hover {
  87. background-color: var(--drop-bg-color);
  88. }
  89. .c_level_1 {
  90. padding-top: 15px;
  91. padding-bottom: 15px;
  92. background-color: var(--main-color1);
  93. }
  94. .c_level_1 .chapter_title{
  95. font-size:120%;
  96. font-weight:700;
  97. }
  98. #book_list{
  99. display: flex;
  100. flex-wrap: wrap;
  101. }
  102. .chapter_list{
  103. display:none;
  104. }
  105. .chapter_book{
  106. display:block;
  107. }
  108. .chapter_progress{
  109. display:block;
  110. }
  111. .parent_chapter{
  112. width:350px;
  113. }
  114. .parent_chapter .chapter_book,.parent_chapter .chapter_progress{
  115. display:none;
  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. <script>
  127. var tag_level = <?php echo file_get_contents("../public/book_tag/tag_list.json"); ?>;
  128. </script>
  129. <?php
  130. //
  131. require_once "../path.php";
  132. require_once "../public/_pdo.php";
  133. require_once '../media/function.php';
  134. require_once '../public/function.php';
  135. echo "<div id='course_head_bar' style='background-color:var(--tool-bg-color1);padding:1em 10px 10px 10px;'>";
  136. echo "<div class='index_inner '>";
  137. echo "<div style='font-size:140%'>";
  138. echo "</div>";
  139. echo '<div id="main_tag" style="">';
  140. echo '<span tag="sutta" title="sutta"></span>';
  141. echo '<span tag="vinaya" title="vinaya"></span>';
  142. echo '<span tag="abhidhamma" title="abhidhamma"></span>';
  143. echo '<span tag="mūla" title="mūla"></span>';
  144. echo '<span tag="aṭṭhakathā" title="aṭṭhakathā"></span>';
  145. echo '<span tag="ṭīkā" title="ṭīkā"></span>';
  146. echo '<span tag="añña" title="añña"></span>';
  147. echo '</div>';
  148. echo '<div id="tag_selected"></div>';
  149. echo '<div level="0" class="tag_others"></div>';
  150. echo '<div level="1" class="tag_others"></div>';
  151. echo '<div level="2" class="tag_others"></div>';
  152. echo '<div level="3" class="tag_others"></div>';
  153. echo '<div level="4" class="tag_others"></div>';
  154. echo '<div level="5" class="tag_others"></div>';
  155. echo '<div level="100" class="tag_others"></div>';
  156. echo '<div level="8" class="tag_others"></div>';
  157. echo "</div>";
  158. echo '</div>';
  159. ?>
  160. <div class='index_inner'>
  161. <div id="chapter_shell" style="display:flex;" >
  162. <div id="book_list" class="chapter_list" list="1" >
  163. </div>
  164. <div id="chapter_list_1" class="chapter_list" >
  165. </div>
  166. <div id="chapter_list_2" class="chapter_list" >
  167. </div>
  168. <div id="chapter_list_3" class="chapter_list" >
  169. </div>
  170. </div>
  171. </div>
  172. <script>
  173. $(document).ready(function() {
  174. palicanon_onload();
  175. });
  176. </script>
  177. <?php
  178. include "../pcdl/html_foot.php";
  179. ?>