| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407 |
- <?php
- require_once "../public/load_lang.php";
- require_once "../path.php";
- require_once "../pcdl/html_head.php";
- if(isset($_GET["id"])){
- $_get_id=$_GET["id"];
- }
- if(isset($_GET["word"])){
- $_get_word=$_GET["word"];
- }
- if(isset($_GET["author"])){
- $_get_author=$_GET["author"];
- }
- else{
- $_get_author="";
- }
- if(isset($_GET["active"])){
- $_get_active=$_GET["active"];
- }
- else{
- $_get_active="read";
- }
- ?>
- <body style="margin: 0;padding: 0;" class="reader_body" >
- <script src="../term/term.js"></script>
- <script src="../term/note.js"></script>
- <script src="wiki.js"></script>
- <script>
- <?php
- if(isset($_GET["id"])){
- $_get_id=$_GET["id"];
- echo "_id='".$_GET["id"]."';";
- }
- if(isset($_GET["word"])){
- echo "_word='".$_GET["word"]."';";
- }
- if(isset($_GET["channel"])){
- echo "_channel='".$_GET["channel"]."';";
- }
- if(isset($_GET["lang"])){
- echo "_lang='".$_GET["lang"]."';";
- }
- if(isset($_GET["author"])){
- echo "_author='".$_GET["author"]."';";
- }
- if(isset($_GET["active"])){
- echo "_active='".$_GET["active"]."';";
- }
- ?>
- </script>
- <style>
- .term_link,.term_link_new{
- color: blue;
- padding-left: 2px;
- padding-right: 2px;
- }
- .term_link_new{
- color:red;
- }
- #search_result{
- position: absolute;
- background: var(--bg-color);
- box-shadow: 8px 8px 20px var(--border-shadow);
- max-width: 95%;
- width: 24em;
- z-index: 20;
- }
- note:hover chapter{
- display:inline;
- }
- .ref>chapter:first-child{
- display:inline;
- }
- chapter{
- display:none;
- color: var(--box-bg-color1);
- text-decoration: none;
- cursor: pointer;
- }
- chapter:hover{
- color: var(--link-color);
- text-decoration: underline;
- }
- para{
- background-color: var(--drop-bg-color);
- padding: 2px 8px;
- text-decoration: none;
- cursor: pointer;
- color: var(--btn-border-color);
- border-radius: 5px;
- }
- para:hover{
- text-decoration: underline;
- }
- .icon{
- width: 15px;
- height: 15px;
- }
- .submenu_title{
- font-size: 120%;
- font-weight: 700;
- }
- .term_word_head_pali {
- text-transform: capitalize;
- font-size: 200%;
- margin: 0.5em 0;
- }
- .term_word_head{
- border-bottom: 1px solid #cecece;
- padding: 5px 0;
- }
- .term_block{
- border-bottom: 1px solid #cecece;
- padding: 5px 0;
- }
- .term_word_head_authors a{
- color: blue;
- margin: 0 3px;
- }
- .term_word_head_authors a:hover{
- text-decoration: underline;
- cursor: pointer;
- }
- note .ref{
- text-align: right;
- padding: 5px;
- font-size: 75%;
- margin-top: 8px;
- }
- note{
- background-color: #80808014;
- padding: 0.5em 0.8em;
- margin-bottom: 0.4em;
- border-radius: 5px;
- display:block;
- }
- note>.tran{
- color: #5c5c5c;
- padding-left: 1em;
- }
- note>.palitext{
- font-family: Noto serif;
- line-height: 1.5em;
- color: #9f3a01;
- font-weight: 500;
- }
- note>.palitext>note{
- display:inline;
- color:blue;
- background-color: unset;
- padding: unset;
- margin-bottom: unset;
- border-radius: unset;
- }
- .term_block_bar {
- display: flex;
- justify-content: space-between;
- }
- #head_bar{
- display: flex;
- justify-content: space-between;
- /*height: 5em;*/
- background-color: var(--bookx);
- border-bottom: 1px solid var(--tool-line-color);
- margin-top: 50px;
- }
- .term_block_bar_left{
- display: flex;
- }
- .term_block_bar_left_icon{
- display: inline-block;
- width: 1.5em;
- text-align: center;
- height: 1.5em;
- background-color: gray;
- font-size: 180%;
- color: white;
- border-radius: 99px;
- }
- .term_block_bar_left_info{
- padding-left: 8px;
- display:flex;
- }
- .term_meaning{
- font-weight: 700;
- }
- .term_author{
- font-size: 80%;
- color: var(--main-color1);
- padding: 0 10px 0 5px;
- }
- .term_tag{
- font-size: 80%;
- font-weight: 500;
- margin: 0 8px;
- }
- .term_link {
- cursor: pointer;
- }
- #wiki_contents{
- padding: 0 1em;
- max-width: 960px;
- margin-left: auto;
- margin-right: auto;
- }
- #term_list_right{
- width: 25em;
- }
- #term_list{
- width: 100%;
- padding: 0.5em;
- }
- #term_list_div{
- display: flex;
- justify-content: space-between;
- }
- .fun_frame {
- border-bottom: 1px solid gray;
- margin-right: 10px;
- margin-bottom: 10px;
- }
- .fun_frame>.title{
- padding:6px;
- font-weight: 700;
- }
- .fun_frame>.content{
- padding:6px;
- max-height:6em;
- overflow-y: scroll;
- }
-
- .fixed{
- position:fixed;
- right: 0;
- top: 0;
- }
- .when_right_fixed{
- padding-right:20em;
- }
- .bg_color_1{
- background-color:#ebebeb66;
- }
- .bg_color_2{
- background:linear-gradient(to right, #6afdb033, #ebebeb66);
- }
- .bg_color_3{
- background:linear-gradient(to right, #6a95fd26, #ebebeb66);
- }
- .bg_color_4{
- background:linear-gradient(to right, #f9e7911c, #ebebeb66);
- }
- .bg_color_5{
- background:linear-gradient(to right, #fe99b91c, #ebebeb66);
- }
- pre {
- white-space: pre-line;
- font-family: auto;
- border-left: 3px solid var(--border-shadow);
- margin-left: 1em;
- padding-left: 0.5em;
- }
- #wiki_head{
- min-height:100px;
- }
- #form_term ul li{
- display:flex;
- }
- #form_term ul .field{
- flex:1;
- }
- #form_term ul .input{
- flex:8;
- }
- input[type="text"], input[type="input"], textarea{
- border:1px solid var(--border-line-color);
- }
- .wiki_search_list li{
- padding:0 1em;
- line-height:1.8em;
- }
- .wiki_search_list li:hover {
- background-color: beige;
- }
- </style>
- <style media="screen and (max-width:800px)">
- #term_list_right{
- display:none;
- }
- .when_right_fixed{
- padding-right:0;
- }
- </style>
- <script>
- term_word_link_fun("wiki_goto_word");
- </script>
- <style>
- .index_toolbar{
- position:unset;
- }
- #pali_pedia{
- margin-top: auto;
- margin-bottom: auto;
- padding-left: 0.5em;
- }
-
- </style>
- <?php
- require_once("../pcdl/head_bar.php");
- ?>
- <div id="head_bar" >
- <div id="pali_pedia" style="display:flex;width: 100%;">
- <span style="margin: auto 1em auto 0;"><?php echo $_local->gui->wiki_term; ?></span>
- <span id="wiki_search" style="width:35vw;margin: auto 0em;">
- <span style="display:block;">
- <input id="wiki_search_input" type="input" placeholder=<?php echo $_local->gui->search; ?> style="width:30vw;background-color: var(--btn-color);border: 1px solid var(--btn-border-color);border-radius: 99px;padding: 3px 15px;" onkeyup="wiki_search_keyup(event,this)"/>
- </span>
- <span id="search_result">
- </span>
- </span>
- <span style="font-size: medium; margin: auto 1em auto auto;">
- <button class="icon_btn"><a href="#"><?php echo $_local->gui->setting; ?></a></button>
- <button class="icon_btn"><a href="wiki.php?word=&active=new"><?php echo $_local->gui->new_technic_term; ?></a></button>
- <button class="icon_btn"><a href="#"><?php echo $_local->gui->help; ?></a></button>
- </span>
- </div>
- </div>
- <div id="wiki_contents" >
- <div id="wiki_head"></div>
- <div id="wiki_body" style="display:flex;">
- <div id="wiki_body_left" style="flex:7;padding: 0 1em;">
- <?php echo $_local->gui->loading; ?>...
- </div>
- <div id="wiki_body_right" style="flex:3">
- <div id='term_list_right' >
- <div class="fun_frame">
- <div class="title"><?php echo $_local->gui->language; ?></div>
- <div class="content" style="max-height:10em;">
- <div><a href=""><?php echo $_local->gui->all; ?></a></div>
- </div>
- </div>
- <div class="fun_frame">
- <div class="title"><?php echo $_local->gui->translation; ?></div>
- <div id="channal_list" class="content" style="max-height:10em;">
- <div><a href=""><?php echo $_local->gui->all; ?></a></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- window.addEventListener('scroll',winScroll);
- <?php
- if(isset($_get_id)){
- echo "window.addEventListener('load',wiki_load_id('{$_get_id}'))";
- }
- else if(isset($_get_word)){
- echo "window.addEventListener('load',wiki_load_word('{$_get_word}'))";
- }
- ?>
-
- function winScroll(e){
- if(GetPageScroll().y>220){
- }
- else{
- }
-
- }
- //滚动条位置
- 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>
- </body>
- </html>
|