index.php 9.3 KB

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