index.php 7.5 KB

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