index.php 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. <?php
  2. require_once "../public/load_lang.php";
  3. require_once "../path.php";
  4. require_once "../pcdl/html_head.php";
  5. ?>
  6. <body style="margin: 0;padding: 0;" class="reader_body" >
  7. <script src="../term/term.js"></script>
  8. <script src="../term/note.js"></script>
  9. <script src="./article.js"></script>
  10. <link type="text/css" rel="stylesheet" href="../term/term.css"/>
  11. <script>
  12. <?php
  13. $_id = "";
  14. $_display = "";
  15. $_channal = "";
  16. if(isset($_GET["id"])){
  17. echo "_articel_id='".$_GET["id"]."';";
  18. }
  19. if(isset($_GET["display"])){
  20. echo "_display='".$_GET["display"]."';";
  21. }
  22. if(isset($_GET["channal"])){
  23. echo "_channal='".$_GET["channal"]."';";
  24. }
  25. if(isset($_GET["lang"])){
  26. echo "_lang='".$_GET["lang"]."';";
  27. }
  28. if(isset($_GET["author"])){
  29. echo "_author='".$_GET["author"]."';";
  30. }
  31. ?>
  32. </script>
  33. <style>
  34. body{
  35. font-size:12pt;
  36. }
  37. #search_result{
  38. position: absolute;
  39. background: wheat;
  40. max-width: 95%;
  41. width: 24em;
  42. }
  43. .icon{
  44. width: 15px;
  45. height: 15px;
  46. }
  47. .submenu_title{
  48. font-size: 120%;
  49. font-weight: 700;
  50. }
  51. .term_word_head_pali {
  52. text-transform: capitalize;
  53. font-size: 200%;
  54. margin: 0.5em 0;
  55. }
  56. .term_word_head{
  57. border-bottom: 1px solid #cecece;
  58. padding: 5px 0;
  59. }
  60. .term_block{
  61. border-bottom: 1px solid #cecece;
  62. padding: 5px 0;
  63. }
  64. .term_word_head_authors a{
  65. color: blue;
  66. margin: 0 3px;
  67. }
  68. .term_word_head_authors a:hover{
  69. text-decoration: underline;
  70. cursor: pointer;
  71. }
  72. note .ref{
  73. text-align: right;
  74. padding: 5px;
  75. font-size: 75%;
  76. margin-top: 8px;
  77. }
  78. note{
  79. padding: 0.5em 0.8em;
  80. margin-bottom: 0.4em;
  81. border-radius: 5px;
  82. line-height:1.3em;
  83. <?php
  84. if(isset($_GET["display"]) && $_GET["display"]=="para"){
  85. echo "display:inline;";
  86. }
  87. else{
  88. echo "display:block;";
  89. echo "background-color: #80808014;";
  90. }
  91. ?>
  92. }
  93. note>.tran{
  94. color: #5c5c5c;
  95. padding-left: 1em;
  96. }
  97. note>.palitext , .palitext{
  98. font-family: Noto serif;
  99. line-height: 1.5em;
  100. color: #9f3a01;
  101. font-weight: 500;
  102. }
  103. note>.palitext>note{
  104. display:inline;
  105. color:blue;
  106. background-color: unset;
  107. padding: unset;
  108. margin-bottom: unset;
  109. border-radius: unset;
  110. }
  111. .term_block_bar {
  112. display: flex;
  113. justify-content: space-between;
  114. }
  115. #head_bar{
  116. display: flex;
  117. justify-content: space-between;
  118. height: 5em;
  119. background-color: var(--bookx);
  120. border-bottom: 1px solid var(--tool-line-color);
  121. }
  122. .term_block_bar_left{
  123. display: flex;
  124. }
  125. .term_block_bar_left_icon{
  126. display: inline-block;
  127. width: 1.5em;
  128. text-align: center;
  129. height: 1.5em;
  130. background-color: gray;
  131. font-size: 180%;
  132. color: white;
  133. border-radius: 99px;
  134. }
  135. .term_block_bar_left_info{
  136. padding-left: 8px;
  137. }
  138. .main_view{
  139. padding: 0 1em;
  140. max-width: 1280px;
  141. margin-left: auto;
  142. margin-right: auto;
  143. }
  144. #term_list_right{
  145. width: 25em;
  146. }
  147. #term_list{
  148. width: 100%;
  149. padding: 0.5em;
  150. }
  151. #term_list_div{
  152. display: flex;
  153. justify-content: space-between;
  154. }
  155. .fun_frame {
  156. border-bottom: 1px solid gray;
  157. margin-right: 10px;
  158. margin-bottom: 10px;
  159. }
  160. .fun_frame>.title{
  161. padding:6px;
  162. font-weight: 700;
  163. }
  164. .fun_frame>.content{
  165. padding:6px;
  166. max-height:6em;
  167. overflow-y: scroll;
  168. }
  169. .fixed{
  170. position:fixed;
  171. right: 0;
  172. top: 0;
  173. }
  174. .when_right_fixed{
  175. padding-right:20em;
  176. }
  177. <?php
  178. if(isset($_GET["display"]) && $_GET["display"]=="para"){
  179. }
  180. else{
  181. ?>
  182. .bg_color_1{
  183. background-color:#ebebeb66;
  184. }
  185. .bg_color_2{
  186. background:linear-gradient(to right, #6afdb033, #ebebeb66);
  187. }
  188. .bg_color_3{
  189. background:linear-gradient(to right, #6a95fd26, #ebebeb66);
  190. }
  191. .bg_color_4{
  192. background:linear-gradient(to right, #f9e7911c, #ebebeb66);
  193. }
  194. .bg_color_5{
  195. background:linear-gradient(to right, #fe99b91c, #ebebeb66);
  196. }
  197. <?php
  198. }
  199. ?>
  200. pre {
  201. white-space: pre-line;
  202. font-family: auto;
  203. border-left: 3px solid var(--border-shadow);
  204. margin-left: 1em;
  205. padding-left: 0.5em;
  206. }
  207. #contents_view{
  208. display:flex;
  209. }
  210. #contents_div{
  211. flex:7;
  212. }
  213. #contents{
  214. min-height: 400px;
  215. }
  216. #contents li{
  217. white-space: normal;
  218. }
  219. #right_pannal{
  220. flex:3;
  221. max-width:20em;
  222. }
  223. #head_bar{
  224. height:unset;
  225. }
  226. <?php
  227. if(isset($_GET["display"]) && $_GET["display"]=="para"){
  228. ?>
  229. .tran>p{
  230. display:inline;
  231. }
  232. note{
  233. padding: 2px;
  234. margin-bottom: unset;
  235. }
  236. <?php
  237. }
  238. ?>
  239. #toc_content .level_2{
  240. padding-left:0.5em;
  241. }
  242. #toc_content .level_3{
  243. padding-left:1em;
  244. }
  245. #toc_content .level_4{
  246. padding-left:1.5em;
  247. }
  248. #toc_content .level_5{
  249. padding-left:2em;
  250. }
  251. </style>
  252. <style media="screen and (max-width:767px)">
  253. #right_pannal{
  254. display:none;
  255. }
  256. .when_right_fixed{
  257. padding-right:0;
  258. }
  259. .index_toolbar{
  260. position:unset;
  261. }
  262. #pali_pedia{
  263. font-size: 200%;
  264. margin-top: auto;
  265. margin-bottom: auto;
  266. padding-left: 0.5em;
  267. }
  268. </style>
  269. <script>
  270. term_word_link_fun("wiki_goto_word");
  271. </script>
  272. <?php
  273. require_once("../pcdl/head_bar.php");
  274. ?>
  275. <div id="head_bar" >
  276. <div id="pali_pedia" style="display:flex;">
  277. <span>文集</span>
  278. </div>
  279. <div>
  280. <span>
  281. <?php
  282. echo "<a href='../article/?id=".$_GET["id"];
  283. echo "&display=para";
  284. echo "'>[逐段]</a>";
  285. echo "<a href='../article/?id=".$_GET["id"];
  286. echo "&display=sent";
  287. echo "'>[逐句]</a>";
  288. ?>
  289. <a href="#">[帮助]</a>
  290. </span>
  291. </div>
  292. </div>
  293. <div id="main_view" class="main_view">
  294. <div id="article_head" style="border-bottom: 1px solid gray;">
  295. <div id="article_title" class="term_word_head_pali">Title</div>
  296. <div id="article_subtitle">Subtitle</div>
  297. <div id="article_author">author</div>
  298. </div>
  299. <div id="contents_view">
  300. <div id="contents_div" style="padding: 0 1em;">
  301. <div id="contents">
  302. loading...
  303. </div>
  304. <div id="contents_foot">
  305. <div id="contents_nav" style="display:flex;justify-content: space-between;">
  306. <div id="contents_nav_left"></div>
  307. <div id="contents_nav_right"></div>
  308. </div>
  309. <div id="contents_dicuse">
  310. </div>
  311. </div>
  312. </div>
  313. <div id="right_pannal">
  314. <div class="fun_frame">
  315. <div id = "collect_title" class="title">Table of Content</div>
  316. <div id = "toc_content" class="content" style="max-height:10em;">
  317. </div>
  318. </div>
  319. <div class="fun_frame">
  320. <div class="title">Translations</div>
  321. <div id="channal_list" class="content" style="max-height:10em;">
  322. </div>
  323. </div>
  324. </div>
  325. </div>
  326. </div>
  327. <script>
  328. articel_load(_articel_id);
  329. articel_load_collect(_articel_id);
  330. window.addEventListener('scroll',winScroll);
  331. function winScroll(e){
  332. if(GetPageScroll().y>220){
  333. }
  334. else{
  335. }
  336. }
  337. //滚动条位置
  338. function GetPageScroll()
  339. {
  340. var pos=new Object();
  341. var x, y;
  342. if(window.pageYOffset)
  343. { // all except IE
  344. y = window.pageYOffset;
  345. x = window.pageXOffset;
  346. } else if(document.documentElement && document.documentElement.scrollTop)
  347. { // IE 6 Strict
  348. y = document.documentElement.scrollTop;
  349. x = document.documentElement.scrollLeft;
  350. } else if(document.body) { // all other IE
  351. y = document.body.scrollTop;
  352. x = document.body.scrollLeft;
  353. }
  354. pos.x=x;
  355. pos.y=y;
  356. return(pos);
  357. }
  358. </script>
  359. </body>
  360. </html>