| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367 |
- <?PHP
- require_once "../pcdl/html_head.php";
- ?>
- <body>
- <a name="toc_root"></a>
- <?php
- if(!(isset($_GET["inline"]) && $_GET["inline"]=='1')){
- require_once("../pcdl/head_bar.php");
- }
-
- ?>
- <style>
- body {
- margin: unset;
- }
- .index_toolbar {
- position: unset;
- }
- .search_toolbar {
- height: initial;
- padding: 0.6em 1em 0.1em 1em;
- background-color: var(--tool-bg-color1);
- border-bottom: none;
- }
- .search_fixed {
- position: fixed;
- top: -500px;
- width: 100%;
- display: flex;
- padding: 0.5em 1em;
- }
- #dict_search_result {
- display: flex;
- }
- #dict_list {
- flex: 2;
- text-align: right;
- padding-right: 1em;
- border-right: 1px solid var(--border-line-color);
- }
- #dict_ref {
- flex: 6;
- padding: 0.5em 1.5em;
- }
- #dict_user {
- flex: 2;
- }
- .dict_word_card {
- border-bottom: 1px solid var(--border-line-color);
- padding: 5px 0;
- display: block;
- border-radius: unset;
- margin: 10px 0;
- transition: unset;
- box-shadow: unset;
- }
- .dict_word {
- border-left: none;
- border-right: none;
- border-top: none;
- border-bottom: 1px solid var(--border-line-color);
- padding: 5px 0;
- display: block;
- border-radius: unset;
- margin: 10px 0;
- transition: unset;
- box-shadow: unset;
- }
- .dict_word>.dict {
- font-size: 110%;
- color: var(--main-color);
- border-bottom: unset;
- padding-bottom: 10px;
- }
- .dict_word>.mean {
- font-size: unset;
- margin: 2px 0;
- line-height: 150%;
- font-weight: unset;
- display: block;
- }
- /*for word split part */
- .dropdown_ctl {
- display: inline-block;
- margin-right: 0.7em;
- }
- .dropdown_ctl>.content {
- display: flex;
- border: 1px solid var(--border-line-color);
- border-radius: 99px;
- }
- .dropdown_ctl>.menu {
- position: absolute;
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
- display: none;
- }
- .dropdown_ctl>.menu {
- background-color: white;
- }
- .dropdown_ctl>.content>.main_view>part {
- margin: 0 0.5em;
- color: cornflowerblue;
- cursor: pointer;
- }
- .dropdown_ctl>.menu>.part_list {
- padding: 5px;
- cursor: pointer;
- }
- .dropdown_ctl>.menu>.part_list:hover {
- background-color: azure;
- }
- .dropdown_ctl>.content>.more_button {
- background-color: var(--btn-color);
- min-width: 1.4em;
- text-align: center;
- border-radius: 99px;
- cursor: pointer;
- }
- .pre_serach_block {
- border-bottom: 1px solid var(--shadow-color);
- padding: 5px 8px;
- }
- .pre_serach_block_title {
- display: flex;
- justify-content: space-between;
- }
- .pre_serach_content {
- padding: 4px 4px 4px 15px;
- }
- #footer_nav {
- display: none;
- }
- .right_tool_btn {
- position: fixed;
- right: 50px;
- top: 5em;
- background-color: unset;
- }
- .right_tool_btn .icon {
- height: 2em;
- width: 2em;
- }
- .right_tool_btn button:hover {
- background-color: var(--link-hover-color);
- border-color: var(--link-color);
- color: var(--btn-hover-color);
- height: 3em;
- width: 3em;
- padding: 0;
- }
- .right_tool_btn button {
- background-color: var(--link-color);
- border-color: var(--link-color);
- color: var(--btn-color);
- height: 3em;
- width: 3em;
- padding: 0;
- }
- button,
- input[type="button"],
- input[type="submit"] {
- font-weight: 500;
- font-size: 90%;
- background-color: none;
- border: 2px solid var(--btn-border-color);
- border-radius: 99px;
- margin: 2px;
- padding: 2px 12px;
- -webkit-transition-duration: 0.2s;
- -moz-transition-duration: 0.2s;
- transition-duration: 0.2s;
- cursor: pointer;
- display: -webkit-inline-flex;
- display: -moz-inline-flex;
- display: inline-flex;
- -webkit-align-items: center;
- -moz-align-items: center;
- align-items: center;
- -webkit-flex-wrap: nowrap;
- -moz-flex-wrap: nowrap;
- flex-wrap: nowrap;
- -webkit-justify-content: center;
- -moz-justify-content: center;
- justify-content: center;
- }
- </style>
- <link type="text/css" rel="stylesheet" href="./css/style.css" >
- <link type="text/css" rel="stylesheet" href="./css/style_mobile.css" media="screen and (max-width:800px)">
- <!-- tool bar begin-->
- <div id='search_toolbar' class="search_toolbar">
- <div style="display:flex;justify-content: space-between;">
- <div id="left_menu_button">
- <button id="left_toc" type="button" class="icon_btn" onclick="setNaviVisibility('table_of_content')" title="Dict List">
- <svg class="icon">
- <use xlink:href="./icon.svg#icon_toc"></use>
- </svg>
- <span class="icon_notify" id="icon_notify_table_of_content">
- </span>
- </button>
- </div>
- <div >
- <guide gid="dict_search_input"></guide>
- </div>
- <div style="flex:6;">
- <div>
- <div>
- <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()" />
- </div>
- <div id="word_parts">
- <div id="input_parts" style="font-size: 1.1em;padding: 2px 1em;"></div>
- </div>
- </div>
- <div id="pre_search_result" style="background-color: var(--btn-color);z-index: 50;">
- <div id="pre_search_word" class="pre_serach_block">
- <div id="pre_search_word_title" class="pre_serach_block_title">
- <div id="pre_search_word_title_left"><?php echo $_local->gui->vocabulary_list; ?></div>
- <div id="pre_search_word_title_right"></div>
- </div>
- <div id="pre_search_word_content" class="pre_serach_content">
- </div>
- </div>
- </div>
- </div>
- <span style="display:flex;">
- <button id="trubo_split" onclick="trubo_split()" >
- <?php echo $_local->gui->turbo_split; //强力拆分
- ?>
- </button>
- <guide gid="comp_split"></guide>
- </span>
- <div></div>
- </div>
- <div style="display:block;z-index: 5;text-align:center;">
- </div>
- </div>
- <!--tool bar end -->
- <!-- tool bar fixed begin-->
- <div id='search_toolbar_1' class="search_toolbar search_fixed">
- <div style="display:flex;">
- <span>
- <?php echo $_local->gui->dictionary; ?>
- </span>
- <div>
- <div>
- <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()">
- </div>
- <div id="pre_search_result_1" style="position: absolute;max-width: 100%; width: 50em;background-color: var(--btn-color);z-index: 51;display: none;">
- <div class="pre_serach_block">
- <div class="pre_serach_block_title">
- <div id="pre_search_word_title_left_1"><?php echo $_local->gui->vocabulary_list; ?></div>
- <div id="pre_search_word_title_right_1"></div>
- </div>
- <div id="pre_search_word_content_1" class="pre_serach_content">
- </div>
- </div>
- </div>
- </div>
- </div>
- <div style="display:block;z-index: 5;">
- </div>
- </div>
- <!--tool bar fixed end -->
- <div id="tool_btn" class="right_tool_btn" style="display: none;">
- <button style="border: 2px solid var(--nocolor); background-color: unset;"><a href="#toc_root">
- <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">
- <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>
- <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>
- <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>
- <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>
- <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>
- </svg>
- </a>
- </button>
- </div>
- <script>
- window.addEventListener('scroll', winScroll);
- function winScroll(e) {
- if (GetPageScroll().y > 150) {
- $("#search_toolbar_1").css("top", 0);
- } else {
- $("#search_toolbar_1").css("top", GetPageScroll().y - 150);
- }
- if (GetPageScroll().y > $(window).height() * 0.9) {
- $("#tool_btn").show();
- } else {
- $("#tool_btn").hide();
- }
- }
- //滚动条位置
- function GetPageScroll() {
- var pos = new Object();
- var x, y;
- if (window.pageYOffset) { // all except IE
- y = window.pageYOffset;
- x = window.pageXOffset;
- } else if (document.documentElement && document.documentElement.scrollTop) { // IE 6 Strict
- y = document.documentElement.scrollTop;
- x = document.documentElement.scrollLeft;
- } else if (document.body) { // all other IE
- y = document.body.scrollTop;
- x = document.body.scrollLeft;
- }
- pos.x = x;
- pos.y = y;
- return (pos);
- }
- </script>
- <style>
- #dt_title {
- border-bottom: 2px solid var(--link-hover-color);
- }
- </style>
- <script language="javascript" src="./dict.js"></script>
- <div id="dict_search_result" style="background-color:white;color:black;">
- </div>
- <?php
- if (!empty($_GET["key"])) {
- echo "<script>";
- echo "dict_pre_word_click(\"{$_GET["key"]}\")";
- echo "</script>";
- }
- ?>
- <?php
- include "../pcdl/html_foot.php";
- ?>
|