index.php 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. <?PHP
  2. require_once "../pcdl/html_head.php";
  3. ?>
  4. <body>
  5. <a name="toc_root"></a>
  6. <?php
  7. if(!(isset($_GET["inline"]) && $_GET["inline"]=='1')){
  8. require_once("../pcdl/head_bar.php");
  9. }
  10. ?>
  11. <style>
  12. body {
  13. margin: unset;
  14. }
  15. .index_toolbar {
  16. position: unset;
  17. }
  18. .search_toolbar {
  19. height: initial;
  20. padding: 0.6em 1em 0.1em 1em;
  21. background-color: var(--tool-bg-color1);
  22. border-bottom: none;
  23. }
  24. .search_fixed {
  25. position: fixed;
  26. top: -500px;
  27. width: 100%;
  28. display: flex;
  29. padding: 0.5em 1em;
  30. }
  31. #dict_search_result {
  32. display: flex;
  33. }
  34. #dict_list {
  35. flex: 2;
  36. text-align: right;
  37. padding-right: 1em;
  38. border-right: 1px solid var(--border-line-color);
  39. }
  40. #dict_ref {
  41. flex: 6;
  42. padding: 0.5em 1.5em;
  43. }
  44. #dict_user {
  45. flex: 2;
  46. }
  47. .dict_word_card {
  48. border-bottom: 1px solid var(--border-line-color);
  49. padding: 5px 0;
  50. display: block;
  51. border-radius: unset;
  52. margin: 10px 0;
  53. transition: unset;
  54. box-shadow: unset;
  55. }
  56. .dict_word {
  57. border-left: none;
  58. border-right: none;
  59. border-top: none;
  60. border-bottom: 1px solid var(--border-line-color);
  61. padding: 5px 0;
  62. display: block;
  63. border-radius: unset;
  64. margin: 10px 0;
  65. transition: unset;
  66. box-shadow: unset;
  67. }
  68. .dict_word>.dict {
  69. font-size: 110%;
  70. color: var(--main-color);
  71. border-bottom: unset;
  72. padding-bottom: 10px;
  73. }
  74. .dict_word>.mean {
  75. font-size: unset;
  76. margin: 2px 0;
  77. line-height: 150%;
  78. font-weight: unset;
  79. display: block;
  80. }
  81. /*for word split part */
  82. .dropdown_ctl {
  83. display: inline-block;
  84. margin-right: 0.7em;
  85. }
  86. .dropdown_ctl>.content {
  87. display: flex;
  88. border: 1px solid var(--border-line-color);
  89. border-radius: 99px;
  90. }
  91. .dropdown_ctl>.menu {
  92. position: absolute;
  93. box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  94. display: none;
  95. }
  96. .dropdown_ctl>.menu {
  97. background-color: white;
  98. }
  99. .dropdown_ctl>.content>.main_view>part {
  100. margin: 0 0.5em;
  101. color: cornflowerblue;
  102. cursor: pointer;
  103. }
  104. .dropdown_ctl>.menu>.part_list {
  105. padding: 5px;
  106. cursor: pointer;
  107. }
  108. .dropdown_ctl>.menu>.part_list:hover {
  109. background-color: azure;
  110. }
  111. .dropdown_ctl>.content>.more_button {
  112. background-color: var(--btn-color);
  113. min-width: 1.4em;
  114. text-align: center;
  115. border-radius: 99px;
  116. cursor: pointer;
  117. }
  118. .pre_serach_block {
  119. border-bottom: 1px solid var(--shadow-color);
  120. padding: 5px 8px;
  121. }
  122. .pre_serach_block_title {
  123. display: flex;
  124. justify-content: space-between;
  125. }
  126. .pre_serach_content {
  127. padding: 4px 4px 4px 15px;
  128. }
  129. #footer_nav {
  130. display: none;
  131. }
  132. .right_tool_btn {
  133. position: fixed;
  134. right: 50px;
  135. top: 5em;
  136. background-color: unset;
  137. }
  138. .right_tool_btn .icon {
  139. height: 2em;
  140. width: 2em;
  141. }
  142. .right_tool_btn button:hover {
  143. background-color: var(--link-hover-color);
  144. border-color: var(--link-color);
  145. color: var(--btn-hover-color);
  146. height: 3em;
  147. width: 3em;
  148. padding: 0;
  149. }
  150. .right_tool_btn button {
  151. background-color: var(--link-color);
  152. border-color: var(--link-color);
  153. color: var(--btn-color);
  154. height: 3em;
  155. width: 3em;
  156. padding: 0;
  157. }
  158. button,
  159. input[type="button"],
  160. input[type="submit"] {
  161. font-weight: 500;
  162. font-size: 90%;
  163. background-color: none;
  164. border: 2px solid var(--btn-border-color);
  165. border-radius: 99px;
  166. margin: 2px;
  167. padding: 2px 12px;
  168. -webkit-transition-duration: 0.2s;
  169. -moz-transition-duration: 0.2s;
  170. transition-duration: 0.2s;
  171. cursor: pointer;
  172. display: -webkit-inline-flex;
  173. display: -moz-inline-flex;
  174. display: inline-flex;
  175. -webkit-align-items: center;
  176. -moz-align-items: center;
  177. align-items: center;
  178. -webkit-flex-wrap: nowrap;
  179. -moz-flex-wrap: nowrap;
  180. flex-wrap: nowrap;
  181. -webkit-justify-content: center;
  182. -moz-justify-content: center;
  183. justify-content: center;
  184. }
  185. </style>
  186. <link type="text/css" rel="stylesheet" href="./css/style.css" >
  187. <link type="text/css" rel="stylesheet" href="./css/style_mobile.css" media="screen and (max-width:800px)">
  188. <!-- tool bar begin-->
  189. <div id='search_toolbar' class="search_toolbar">
  190. <div style="display:flex;justify-content: space-between;">
  191. <div id="left_menu_button">
  192. <button id="left_toc" type="button" class="icon_btn" onclick="setNaviVisibility('table_of_content')" title="Dict List">
  193. <svg class="icon">
  194. <use xlink:href="./icon.svg#icon_toc"></use>
  195. </svg>
  196. <span class="icon_notify" id="icon_notify_table_of_content">
  197. </span>
  198. </button>
  199. </div>
  200. <div >
  201. <guide gid="dict_search_input"></guide>
  202. </div>
  203. <div style="flex:6;">
  204. <div>
  205. <div>
  206. <input id="dict_ref_search_input" type="input" placeholder="<?php echo $_local->gui->search; ?>" onkeyup="dict_input_keyup(event,this)" style="" onfocus="dict_input_onfocus()" />
  207. </div>
  208. <div id="word_parts">
  209. <div id="input_parts" style="font-size: 1.1em;padding: 2px 1em;"></div>
  210. </div>
  211. </div>
  212. <div id="pre_search_result" style="background-color: var(--btn-color);z-index: 50;">
  213. <div id="pre_search_word" class="pre_serach_block">
  214. <div id="pre_search_word_title" class="pre_serach_block_title">
  215. <div id="pre_search_word_title_left"><?php echo $_local->gui->vocabulary_list; ?></div>
  216. <div id="pre_search_word_title_right"></div>
  217. </div>
  218. <div id="pre_search_word_content" class="pre_serach_content">
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. <span style="display:flex;">
  224. <button id="trubo_split" onclick="trubo_split()" >
  225. <?php echo $_local->gui->turbo_split; //强力拆分
  226. ?>
  227. </button>
  228. <guide gid="comp_split"></guide>
  229. </span>
  230. <div></div>
  231. </div>
  232. <div style="display:block;z-index: 5;text-align:center;">
  233. </div>
  234. </div>
  235. <!--tool bar end -->
  236. <!-- tool bar fixed begin-->
  237. <div id='search_toolbar_1' class="search_toolbar search_fixed">
  238. <div style="display:flex;">
  239. <span>
  240. <?php echo $_local->gui->dictionary; ?>
  241. </span>
  242. <div>
  243. <div>
  244. <input id="dict_ref_search_input_1" type="input" placeholder="<?php echo $_local->gui->search; ?>" onkeyup="dict_input_keyup(event,this)" style="margin-left: 0.5em;width: 40em;max-width: 80%;font-size:140%;padding: 0.3em;color: var(--btn-hover-bg-color);background-color: var(--btn-color);" onfocus="dict_input_onfocus()">
  245. </div>
  246. <div id="pre_search_result_1" style="position: absolute;max-width: 100%; width: 50em;background-color: var(--btn-color);z-index: 51;display: none;">
  247. <div class="pre_serach_block">
  248. <div class="pre_serach_block_title">
  249. <div id="pre_search_word_title_left_1"><?php echo $_local->gui->vocabulary_list; ?></div>
  250. <div id="pre_search_word_title_right_1"></div>
  251. </div>
  252. <div id="pre_search_word_content_1" class="pre_serach_content">
  253. </div>
  254. </div>
  255. </div>
  256. </div>
  257. </div>
  258. <div style="display:block;z-index: 5;">
  259. </div>
  260. </div>
  261. <!--tool bar fixed end -->
  262. <div id="tool_btn" class="right_tool_btn" style="display: none;">
  263. <button style="border: 2px solid var(--nocolor); background-color: unset;"><a href="#toc_root">
  264. <svg t="1596888255722" class="icon" style="height: 3em; width: 3em;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4368" width="200" height="200">
  265. <path d="M510.4 514.2m-449.2 0a449.2 449.2 0 1 0 898.4 0 449.2 449.2 0 1 0-898.4 0Z" fill="#8a8a8a" p-id="4369"></path>
  266. <path d="M719.4 314.5h-416c-8.5 0-15.4-6.9-15.4-15.4v-4.8c0-8.5 6.9-15.4 15.4-15.4h416.1c8.5 0 15.4 6.9 15.4 15.4v4.8c-0.1 8.4-7 15.4-15.5 15.4z" fill="#ffffff" p-id="4370"></path>
  267. <path d="M494.1 735.1v-416c0-8.5 6.9-15.4 15.4-15.4h4.8c8.5 0 15.4 6.9 15.4 15.4v416.1c0 8.5-6.9 15.4-15.4 15.4h-4.8c-8.4-0.1-15.4-7-15.4-15.5z" fill="#ffffff" p-id="4371"></path>
  268. <path d="M672.5 503.1l-165-165c-6-6-6-15.8 0-21.7l3.4-3.4c6-6 15.8-6 21.7 0l165 165c6 6 6 15.8 0 21.7l-3.4 3.4c-6 6-15.7 6-21.7 0z" fill="#ffffff" p-id="4372"></path>
  269. <path d="M325.2 478l165-165c6-6 15.8-6 21.7 0l3.4 3.4c6 6 6 15.8 0 21.7l-165 165c-6 6-15.8 6-21.7 0l-3.4-3.4c-5.9-6-5.9-15.7 0-21.7z" fill="#ffffff" p-id="4373"></path>
  270. </svg>
  271. </a>
  272. </button>
  273. </div>
  274. <script>
  275. window.addEventListener('scroll', winScroll);
  276. function winScroll(e) {
  277. if (GetPageScroll().y > 150) {
  278. $("#search_toolbar_1").css("top", 0);
  279. } else {
  280. $("#search_toolbar_1").css("top", GetPageScroll().y - 150);
  281. }
  282. if (GetPageScroll().y > $(window).height() * 0.9) {
  283. $("#tool_btn").show();
  284. } else {
  285. $("#tool_btn").hide();
  286. }
  287. }
  288. //滚动条位置
  289. function GetPageScroll() {
  290. var pos = new Object();
  291. var x, y;
  292. if (window.pageYOffset) { // all except IE
  293. y = window.pageYOffset;
  294. x = window.pageXOffset;
  295. } else if (document.documentElement && document.documentElement.scrollTop) { // IE 6 Strict
  296. y = document.documentElement.scrollTop;
  297. x = document.documentElement.scrollLeft;
  298. } else if (document.body) { // all other IE
  299. y = document.body.scrollTop;
  300. x = document.body.scrollLeft;
  301. }
  302. pos.x = x;
  303. pos.y = y;
  304. return (pos);
  305. }
  306. </script>
  307. <style>
  308. #dt_title {
  309. border-bottom: 2px solid var(--link-hover-color);
  310. }
  311. </style>
  312. <script language="javascript" src="./dict.js"></script>
  313. <div id="dict_search_result" style="background-color:white;color:black;">
  314. </div>
  315. <?php
  316. if (!empty($_GET["key"])) {
  317. echo "<script>";
  318. echo "dict_pre_word_click(\"{$_GET["key"]}\")";
  319. echo "</script>";
  320. }
  321. ?>
  322. <?php
  323. include "../pcdl/html_foot.php";
  324. ?>