index.php 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  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. background-color: #80808014;
  114. padding: 0.5em 0.8em;
  115. margin-bottom: 0.4em;
  116. border-radius: 5px;
  117. line-height:1.3em;
  118. <?php
  119. if(isset($_GET["display"]) && $_GET["display"]=="para"){
  120. echo "display:inline;";
  121. }
  122. else{
  123. echo "display:block;";
  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. .bg_color_1{
  228. background-color:#ebebeb66;
  229. }
  230. .bg_color_2{
  231. background:linear-gradient(to right, #6afdb033, #ebebeb66);
  232. }
  233. .bg_color_3{
  234. background:linear-gradient(to right, #6a95fd26, #ebebeb66);
  235. }
  236. .bg_color_4{
  237. background:linear-gradient(to right, #f9e7911c, #ebebeb66);
  238. }
  239. .bg_color_5{
  240. background:linear-gradient(to right, #fe99b91c, #ebebeb66);
  241. }
  242. pre {
  243. white-space: pre-line;
  244. font-family: auto;
  245. border-left: 3px solid var(--border-shadow);
  246. margin-left: 1em;
  247. padding-left: 0.5em;
  248. }
  249. #contents_view{
  250. display:flex;
  251. }
  252. #contents{
  253. flex:7;
  254. }
  255. #right_pannal{
  256. flex:3;
  257. max-width:20em;
  258. }
  259. #head_bar{
  260. height:unset;
  261. }
  262. .term_link:hover .guide_contence {
  263. display: inline-block;
  264. }
  265. <?php
  266. if(isset($_GET["display"]) && $_GET["display"]=="para"){
  267. ?>
  268. .tran>p{
  269. display:inline;
  270. }
  271. note{
  272. padding: 2px;
  273. margin-bottom: unset;
  274. }
  275. <?php
  276. }
  277. ?>
  278. </style>
  279. <style media="screen and (max-width:767px)">
  280. #right_pannal{
  281. display:none;
  282. }
  283. .when_right_fixed{
  284. padding-right:0;
  285. }
  286. .index_toolbar{
  287. position:unset;
  288. }
  289. #pali_pedia{
  290. font-size: 200%;
  291. margin-top: auto;
  292. margin-bottom: auto;
  293. padding-left: 0.5em;
  294. }
  295. </style>
  296. <script>
  297. term_word_link_fun("wiki_goto_word");
  298. </script>
  299. <?php
  300. require_once("../pcdl/head_bar.php");
  301. ?>
  302. <div id="head_bar" >
  303. <div id="pali_pedia" style="display:flex;">
  304. <span>文集</span>
  305. </div>
  306. <div>
  307. <span>
  308. <?php
  309. echo "<a href='../article/?id=".$_GET["id"];
  310. echo "&display=para";
  311. echo "'>[逐段]</a>";
  312. echo "<a href='../article/?id=".$_GET["id"];
  313. echo "&display=sent";
  314. echo "'>[逐句]</a>";
  315. ?>
  316. <a href="#">[帮助]</a>
  317. </span>
  318. </div>
  319. </div>
  320. <div id="main_view" class="main_view">
  321. <div id="article_head" style="border-bottom: 1px solid gray;">
  322. <div id="article_title" class="term_word_head_pali">Title</div>
  323. <div id="article_subtitle">Subtitle</div>
  324. <div id="article_author">author</div>
  325. </div>
  326. <div id="contents_view">
  327. <div id="contents" style="padding: 0 1em;">
  328. loading...
  329. </div>
  330. <div id="right_pannal">
  331. <div class="fun_frame">
  332. <div class="title">About Author</div>
  333. <div class="content" style="max-height:10em;">
  334. </div>
  335. </div>
  336. <div class="fun_frame">
  337. <div class="title">Table of Content</div>
  338. <div class="content" style="max-height:10em;">
  339. </div>
  340. </div>
  341. <div class="fun_frame">
  342. <div class="title">Other Authors</div>
  343. <div class="content" style="max-height:10em;">
  344. </div>
  345. </div>
  346. </div>
  347. </div>
  348. </div>
  349. <script>
  350. articel_load(_articel_id);
  351. window.addEventListener('scroll',winScroll);
  352. function winScroll(e){
  353. if(GetPageScroll().y>220){
  354. }
  355. else{
  356. }
  357. }
  358. //滚动条位置
  359. function GetPageScroll()
  360. {
  361. var pos=new Object();
  362. var x, y;
  363. if(window.pageYOffset)
  364. { // all except IE
  365. y = window.pageYOffset;
  366. x = window.pageXOffset;
  367. } else if(document.documentElement && document.documentElement.scrollTop)
  368. { // IE 6 Strict
  369. y = document.documentElement.scrollTop;
  370. x = document.documentElement.scrollLeft;
  371. } else if(document.body) { // all other IE
  372. y = document.body.scrollTop;
  373. x = document.body.scrollLeft;
  374. }
  375. pos.x=x;
  376. pos.y=y;
  377. return(pos);
  378. }
  379. </script>
  380. </body>
  381. </html>