index.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <?PHP
  2. include "../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. @media screen and (max-width:800px) {
  90. .sutta_row {
  91. grid-template-columns: 100px 1fr 1fr;
  92. }
  93. .sutta_tag {
  94. grid-column: 1 / 4;
  95. }
  96. }
  97. </style>
  98. <script>
  99. var tag_level = <?php echo file_get_contents("../public/book_tag/tag_list.json"); ?>;
  100. </script>
  101. <?php
  102. //
  103. require_once "../path.php";
  104. require_once "../public/_pdo.php";
  105. require_once '../media/function.php';
  106. require_once '../public/function.php';
  107. echo "<div id='course_head_bar' style='background-color:var(--tool-bg-color1);padding:1em 10px 10px 10px;'>";
  108. echo "<div class='index_inner '>";
  109. echo "<div style='font-size:140%'>";
  110. echo "</div>";
  111. echo '<div id="main_tag" style="">';
  112. echo '<span tag="sutta" title="sutta"></span>';
  113. echo '<span tag="vinaya" title="vinaya"></span>';
  114. echo '<span tag="abhidhamma" title="abhidhamma"></span>';
  115. echo '<span tag="mūla" title="mūla"></span>';
  116. echo '<span tag="aṭṭhakathā" title="aṭṭhakathā"></span>';
  117. echo '<span tag="ṭīkā" title="ṭīkā"></span>';
  118. echo '<span tag="añña" title="añña"></span>';
  119. echo '</div>';
  120. echo '<div id="tag_selected"></div>';
  121. echo '<div level="0" class="tag_others"></div>';
  122. echo '<div level="1" class="tag_others"></div>';
  123. echo '<div level="2" class="tag_others"></div>';
  124. echo '<div level="3" class="tag_others"></div>';
  125. echo '<div level="4" class="tag_others"></div>';
  126. echo '<div level="5" class="tag_others"></div>';
  127. echo '<div level="100" class="tag_others"></div>';
  128. echo '<div level="8" class="tag_others"></div>';
  129. echo "</div>";
  130. echo '</div>';
  131. ?>
  132. <div id="book_list" class='index_inner' style='display: flex;flex-wrap: wrap;'>
  133. </div>
  134. <script>
  135. $(document).ready(function() {
  136. palicanon_onload();
  137. });
  138. </script>
  139. <?php
  140. include "../pcdl/html_foot.php";
  141. ?>