index.php 6.9 KB

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