| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430 |
- <?php
- require_once "../public/load_lang.php";
- require_once "../path.php";
- require_once "../pcdl/html_head.php";
- ?>
- <body style="margin: 0;padding: 0;" class="reader_body" >
- <script src="../term/term.js"></script>
- <script src="../term/note.js"></script>
- <script src="./article.js"></script>
- <script>
- <?php
- $_id = "";
- $_display = "";
- $_channal = "";
- if(isset($_GET["id"])){
- echo "_articel_id='".$_GET["id"]."';";
- }
- if(isset($_GET["display"])){
- echo "_display='".$_GET["display"]."';";
- }
- if(isset($_GET["channal"])){
- echo "_channal='".$_GET["channal"]."';";
- }
- if(isset($_GET["lang"])){
- echo "_lang='".$_GET["lang"]."';";
- }
- if(isset($_GET["author"])){
- echo "_author='".$_GET["author"]."';";
- }
- ?>
- </script>
- <style>
- body{
- font-size:12pt;
- }
- .term_link,.term_link_new{
- color: blue;
- padding-left: 2px;
- padding-right: 2px;
- }
- .term_link_new{
- color:red;
- }
- #search_result{
- position: absolute;
- background: wheat;
- max-width: 95%;
- width: 24em;
- }
- 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{
- padding: 0.5em 0.8em;
- margin-bottom: 0.4em;
- border-radius: 5px;
- line-height:1.3em;
- <?php
- if(isset($_GET["display"]) && $_GET["display"]=="para"){
- echo "display:inline;";
- }
- else{
- echo "display:block;";
- echo "background-color: #80808014;";
- }
- ?>
- }
- note>.tran{
- color: #5c5c5c;
- padding-left: 1em;
- }
- note>.palitext , .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);
- }
- .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;
- }
- .term_meaning{
- font-weight: 700;
- }
- .term_author{
- font-size: 80%;
- color: gray;
- }
- .term_tag{
- font-size: 80%;
- font-weight: 500;
- margin: 0 8px;
- }
- .term_link {
- cursor: pointer;
- position: relative;
- }
- .main_view{
- padding: 0 1em;
- max-width: 1280px;
- 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;
- }
- <?php
- if(isset($_GET["display"]) && $_GET["display"]=="para"){
- }
- else{
- ?>
- .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);
- }
- <?php
- }
- ?>
- pre {
- white-space: pre-line;
- font-family: auto;
- border-left: 3px solid var(--border-shadow);
- margin-left: 1em;
- padding-left: 0.5em;
- }
- #contents_view{
- display:flex;
- }
- #contents_div{
- flex:7;
- }
- #contents{
- min-height: 400px;
- }
-
- #right_pannal{
- flex:3;
- max-width:20em;
- }
- #head_bar{
- height:unset;
- }
- .term_link:hover .guide_contence {
- display: inline-block;
- }
- <?php
- if(isset($_GET["display"]) && $_GET["display"]=="para"){
- ?>
- .tran>p{
- display:inline;
- }
- note{
- padding: 2px;
- margin-bottom: unset;
- }
- <?php
- }
- ?>
- #toc_content .level_2{
- padding-left:0.5em;
- }
- #toc_content .level_3{
- padding-left:1em;
- }
- #toc_content .level_4{
- padding-left:1.5em;
- }
- #toc_content .level_5{
- padding-left:2em;
- }
- </style>
- <style media="screen and (max-width:767px)">
- #right_pannal{
- display:none;
- }
- .when_right_fixed{
- padding-right:0;
- }
- .index_toolbar{
- position:unset;
- }
- #pali_pedia{
- font-size: 200%;
- margin-top: auto;
- margin-bottom: auto;
- padding-left: 0.5em;
- }
- </style>
- <script>
- term_word_link_fun("wiki_goto_word");
- </script>
- <?php
- require_once("../pcdl/head_bar.php");
- ?>
- <div id="head_bar" >
- <div id="pali_pedia" style="display:flex;">
- <span>文集</span>
- </div>
- <div>
- <span>
- <?php
- echo "<a href='../article/?id=".$_GET["id"];
- echo "&display=para";
- echo "'>[逐段]</a>";
- echo "<a href='../article/?id=".$_GET["id"];
- echo "&display=sent";
- echo "'>[逐句]</a>";
- ?>
- <a href="#">[帮助]</a>
- </span>
- </div>
- </div>
- <div id="main_view" class="main_view">
- <div id="article_head" style="border-bottom: 1px solid gray;">
- <div id="article_title" class="term_word_head_pali">Title</div>
- <div id="article_subtitle">Subtitle</div>
- <div id="article_author">author</div>
- </div>
- <div id="contents_view">
- <div id="contents_div" style="padding: 0 1em;">
- <div id="contents">
- loading...
- </div>
- <div id="contents_foot">
- <div id="contents_nav" style="display:flex;justify-content: space-between;">
- <div id="contents_nav_left"></div>
- <div id="contents_nav_right"></div>
- </div>
- <div id="contents_dicuse">
-
- </div>
- </div>
- </div>
- <div id="right_pannal">
- <div class="fun_frame">
- <div id = "collect_title" class="title">Table of Content</div>
- <div id = "toc_content" class="content" style="max-height:10em;">
- </div>
- </div>
- <div class="fun_frame">
- <div class="title">Translations</div>
- <div class="content" style="max-height:10em;">
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- articel_load(_articel_id);
- articel_load_collect(_articel_id);
-
- window.addEventListener('scroll',winScroll);
- 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>
|