index.php 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  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 src="../public/js/jquery-ui-1.12.1/jquery-ui.js"></script>
  11. <link type="text/css" rel="stylesheet" href="../term/term.css"/>
  12. <link type="text/css" rel="stylesheet" href="../public/js/jquery-ui-1.12.1/jquery-ui.css"/>
  13. <script>
  14. <?php
  15. $_id = "";
  16. $_display = "";
  17. $_channal = "";
  18. if(isset($_GET["id"])){
  19. echo "_articel_id='".$_GET["id"]."';";
  20. }
  21. if(isset($_GET["display"])){
  22. echo "_display='".$_GET["display"]."';";
  23. }
  24. if(isset($_GET["channal"])){
  25. echo "_channal='".$_GET["channal"]."';";
  26. }
  27. if(isset($_GET["lang"])){
  28. echo "_lang='".$_GET["lang"]."';";
  29. }
  30. if(isset($_GET["author"])){
  31. echo "_author='".$_GET["author"]."';";
  32. }
  33. ?>
  34. </script>
  35. <style>
  36. #search_result{
  37. position: absolute;
  38. background: wheat;
  39. max-width: 95%;
  40. width: 24em;
  41. }
  42. .icon{
  43. width: 15px;
  44. height: 15px;
  45. }
  46. .submenu_title{
  47. font-size: 120%;
  48. font-weight: 700;
  49. }
  50. .term_word_head_pali {
  51. text-transform: capitalize;
  52. font-size: 200%;
  53. margin: 0.5em 0;
  54. }
  55. .term_word_head{
  56. border-bottom: 1px solid #cecece;
  57. padding: 5px 0;
  58. }
  59. .term_block{
  60. border-bottom: 1px solid #cecece;
  61. padding: 5px 0;
  62. }
  63. .term_word_head_authors a{
  64. color: blue;
  65. margin: 0 3px;
  66. }
  67. .term_word_head_authors a:hover{
  68. text-decoration: underline;
  69. cursor: pointer;
  70. }
  71. note .ref{
  72. text-align: right;
  73. padding: 5px;
  74. font-size: 75%;
  75. margin-top: 8px;
  76. }
  77. note{
  78. padding: 0.5em 0.8em;
  79. margin-bottom: 0.4em;
  80. border-radius: 5px;
  81. line-height:1.3em;
  82. <?php
  83. if(isset($_GET["display"]) && $_GET["display"]=="para"){
  84. echo "display:inline;";
  85. }
  86. else{
  87. echo "display:block;";
  88. echo "background-color: #80808014;";
  89. }
  90. ?>
  91. }
  92. note>.tran{
  93. color: #5c5c5c;
  94. padding-left: 1em;
  95. }
  96. note>.palitext , .palitext{
  97. font-family: Noto serif;
  98. line-height: 1.5em;
  99. color: #9f3a01;
  100. font-weight: 500;
  101. }
  102. note>.palitext>note{
  103. display:inline;
  104. color:blue;
  105. background-color: unset;
  106. padding: unset;
  107. margin-bottom: unset;
  108. border-radius: unset;
  109. }
  110. .term_block_bar {
  111. display: flex;
  112. justify-content: space-between;
  113. }
  114. #head_bar{
  115. display: flex;
  116. justify-content: space-between;
  117. height: 5em;
  118. background-color: var(--tool-bg-color1);
  119. border-bottom: 1px solid var(--tool-line-color);
  120. padding:10px;
  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. .ui-dialog-titlebar{
  252. display: flex;
  253. justify-content: space-between;
  254. background-color: var(--btn-bg-color);
  255. padding: 5px;
  256. }
  257. .ui-widget-content{
  258. background-color: var(--bg-color);
  259. }
  260. .ui-dialog{
  261. box-shadow: 8px 8px 20px var(--border-shadow);
  262. }
  263. </style>
  264. <style media="screen and (max-width:767px)">
  265. #right_pannal{
  266. display:none;
  267. }
  268. .when_right_fixed{
  269. padding-right:0;
  270. }
  271. .index_toolbar{
  272. position:unset;
  273. }
  274. #pali_pedia{
  275. font-size: 200%;
  276. margin-top: auto;
  277. margin-bottom: auto;
  278. padding-left: 0.5em;
  279. }
  280. </style>
  281. <script>
  282. term_word_link_fun("wiki_goto_word");
  283. </script>
  284. <?php
  285. require_once("../pcdl/head_bar.php");
  286. ?>
  287. <div id="head_bar" >
  288. <div id="pali_pedia" style="display:flex;">
  289. <span>文集</span>
  290. </div>
  291. <div>
  292. <span>
  293. <?php
  294. echo "<a href='../article/?id=".$_GET["id"];
  295. echo "&display=para";
  296. echo "'>[逐段]</a>";
  297. echo "<a href='../article/?id=".$_GET["id"];
  298. echo "&display=sent";
  299. echo "'>[逐句]</a>";
  300. ?>
  301. <a href="#">[帮助]</a>
  302. </span>
  303. </div>
  304. </div>
  305. <div id="main_view" class="main_view">
  306. <div id="article_head" style="border-bottom: 1px solid gray;">
  307. <div id="article_title" class="term_word_head_pali">Title</div>
  308. <div id="article_subtitle">Subtitle</div>
  309. <div id="article_author">author</div>
  310. </div>
  311. <div id="contents_view">
  312. <div id="contents_div" style="padding: 0 1em;">
  313. <div id="contents">
  314. loading...
  315. </div>
  316. <div id="contents_foot">
  317. <div id="contents_nav" style="display:flex;justify-content: space-between;">
  318. <div id="contents_nav_left"></div>
  319. <div id="contents_nav_right"></div>
  320. </div>
  321. <div id="contents_dicuse">
  322. </div>
  323. </div>
  324. </div>
  325. <div id="right_pannal">
  326. <div class="fun_frame">
  327. <div id = "collect_title" class="title">Table of Content</div>
  328. <div id = "toc_content" class="content" style="max-height:10em;">
  329. </div>
  330. </div>
  331. <div class="fun_frame">
  332. <div class="title">Translations</div>
  333. <div id="channal_list" class="content" style="max-height:10em;">
  334. </div>
  335. </div>
  336. </div>
  337. </div>
  338. </div>
  339. <!-- ui-dialog -->
  340. <div id="dialog" title="Dialog Title">
  341. <div id="edit_dialog_content"></div>
  342. </div>
  343. <script>
  344. note_create();
  345. articel_load(_articel_id);
  346. articel_load_collect(_articel_id);
  347. window.addEventListener('scroll',winScroll);
  348. function winScroll(e){
  349. if(GetPageScroll().y>220){
  350. }
  351. else{
  352. }
  353. }
  354. //滚动条位置
  355. function GetPageScroll()
  356. {
  357. var pos=new Object();
  358. var x, y;
  359. if(window.pageYOffset)
  360. { // all except IE
  361. y = window.pageYOffset;
  362. x = window.pageXOffset;
  363. } else if(document.documentElement && document.documentElement.scrollTop)
  364. { // IE 6 Strict
  365. y = document.documentElement.scrollTop;
  366. x = document.documentElement.scrollLeft;
  367. } else if(document.body) { // all other IE
  368. y = document.body.scrollTop;
  369. x = document.body.scrollLeft;
  370. }
  371. pos.x=x;
  372. pos.y=y;
  373. return(pos);
  374. }
  375. </script>
  376. </body>
  377. </html>