| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399 |
- <?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="../channal/channal.js"></script>
- <script src="./reader.js"></script>
- <script>
- <?php
- $_view = "";
- $_display = "";
- $_channal = "";
- $_collect = "";
- if(isset($_GET["view"])){
- echo "_reader_view='".$_GET["view"]."';";
- }
- if(isset($_GET["book"])){
- echo "_reader_book='".$_GET["book"]."';";
- }
- if(isset($_GET["para"])){
- echo "_reader_para='".$_GET["para"]."';";
- }
- if(isset($_GET["begin"])){
- echo "_reader_begin='".$_GET["begin"]."';";
- }
- if(isset($_GET["end"])){
- echo "_reader_end='".$_GET["end"]."';";
- }
- 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>
- #search_result{
- position: absolute;
- background: wheat;
- max-width: 95%;
- width: 24em;
- }
- .icon{
- width: 15px;
- height: 15px;
- }
- .submenu_title{
- font-size: 120%;
- font-weight: 700;
- }
- #head_bar{
- display: flex;
- justify-content: space-between;
- /*height: 5em;*/
- background-color: var(--tool-bg-color1);
- border-bottom: 1px solid var(--tool-line-color);
- padding:10px;
- margin-top: 50px;
- }
- .main_view{
- padding: 0 1em;
- max-width: 1280px;
- margin-left: auto;
- margin-right: auto;
- }
- .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;
- }
- #contents_view{
- display:flex;
- }
- #contents_div{
- flex:7;
- }
- #contents{
- }
- #contents li{
- white-space: normal;
- }
- #right_pannal{
- flex:3;
- max-width:20em;
- }
- #head_bar{
- height:unset;
- }
- #contents_foot{
- margin-bottom: 70vh;
- }
- #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;
- }
- .ui-dialog-titlebar{
- display: flex;
- justify-content: space-between;
- background-color: var(--btn-bg-color);
- padding: 5px;
- }
- .ui-widget-content{
- background-color: var(--bg-color);
- }
- .ui-dialog{
- box-shadow: 8px 8px 20px var(--border-shadow);
- }
- .active{
- background-color: var(--btn-hover-bg-color);
- }
- .icon_btn a {
- color: var(--main-color);
- }
- .icon_btn:hover a {
- color: var(--btn-hover-color);
- }
- chapter{
- display:inline-block;
- }
- .language-para {
- padding: 2px 2px;
- position: absolute;
- margin-top: 7px;
- border-bottom: 3px solid var(--link-color);
- margin-left: -60px;
- font-family: 'Noto Sans', 'Noto Sans SC', 'Noto Sans TC','Padauk', Arial, Verdana;
- }
- .level_0{
- margin-left:0;
- }
- .level_1{
- margin-left:1em;
- }
- .level_2{
- margin-left:2em;
- }
- .level_3{
- margin-left:3em;
- }
- .level_4{
- margin-left:4em;
- }
- .level_5{
- margin-left:5em;
- }
- .level_6{
- margin-left:6em;
- }
- .channal_list{
- white-space: nowrap;
- overflow-x: hidden;
- }
- .userinfo_channal{
- display:none;
- }
- .userinfo_channal:hover{
- display:block;
- }
-
- #para_path chapter{
- color: var(--link-color);
- font-size: 120%;
- }
- </style>
- <style media="screen and (max-width:800px)">
- #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>
- <?php
- require_once("../pcdl/head_bar.php");
- ?>
- <div id="head_bar" >
- <div id="pali_pedia" style="display:flex;">
- <span><?php echo $_local->gui->anthology; ?></span>
- </div>
- <div>
- <span>
- <?php
- echo "<button class='icon_btn' title='{$_local->gui->modify} {$_local->gui->composition_structure}'>";
- echo "<a href='";
- echo "'>{$_local->gui->edit}</a></button>";
-
- if(isset($_GET["display"]) && $_GET["display"]=="para"){
- echo "<button class='icon_btn active' title='{$_local->gui->show} {$_local->gui->each_paragraph}'>";
- echo $_local->gui->each_paragraph;
- echo "</button>";
- }
- else{
- echo "<button class='icon_btn'>";
- echo "<a href='../reader/?view=".$_GET["view"];
- if(isset($_GET["book"])){
- echo "&book=".$_GET["book"];
- }
- if(isset($_GET["para"])){
- echo "¶=".$_GET["para"];
- }
- if(isset($_GET["begin"])){
- echo "&begin=".$_GET["begin"];
- }
- if(isset($_GET["end"])){
- echo "&end=".$_GET["end"];
- }
- if(isset($_GET["channal"])){
- echo "&channal=".$_GET["channal"];
- }
- if(isset($_GET["lang"])){
- echo "&lang=".$_GET["lang"];
- }
- echo "&display=para' title='{$_local->gui->show} {$_local->gui->each_paragraph}'>";
- echo $_local->gui->each_paragraph;
- echo "</a>";
- echo "</button>";
- }
- if(isset($_GET["display"]) && $_GET["display"]=="sent"){
- echo "<button class='icon_btn active' title='{$_local->gui->show} {$_local->gui->each_sentence}'>";
- echo $_local->gui->each_sentence;
- echo "</button>";
- }
- else{
- echo "<button class='icon_btn'>";
- echo "<a href='../reader/?view=".$_GET["view"];
- if(isset($_GET["book"])){
- echo "&book=".$_GET["book"];
- }
- if(isset($_GET["para"])){
- echo "¶=".$_GET["para"];
- }
- if(isset($_GET["begin"])){
- echo "&begin=".$_GET["begin"];
- }
- if(isset($_GET["end"])){
- echo "&end=".$_GET["end"];
- }
- if(isset($_GET["channal"])){
- echo "&channal=".$_GET["channal"];
- }
- if(isset($_GET["lang"])){
- echo "&lang=".$_GET["lang"];
- }
- echo "&display=sent";
- echo "' title='{$_local->gui->show} {$_local->gui->each_sentence}'>{$_local->gui->each_sentence}</a></button>";
- }
- ?>
- <button class='icon_btn'><a href="#"><?php echo $_local->gui->help; ?></a></button>
- </span>
- </div>
- </div>
- <div id="main_view" class="main_view">
- <div id="contents_view">
- <div id="contents_div" style="padding: 0 1em 0 30px;">
- <div id="contents">
- <?php echo $_local->gui->loading; ?>...
- </div>
- <div id="contents_foot">
- <div id="contents_nav" style="">
- </div>
- </div>
- </div>
- <div id="right_pannal">
- <div class="fun_frame">
- <div id = "collect_title" class="title">Declation</div>
- <div id = "case_content" class="content" style="max-height:20em;">
- </div>
- </div>
- <div class="fun_frame">
- <div style="display:flex;justify-content: space-between;">
- <div class="title"><?php echo "Books"; ?></div>
- <div class="channel_select_button" onclick="onChannelMultiSelectStart()"><?php echo "Multi-Select"; ?></div>
- </div>
- <div id="channal_list" class="content" style="max-height:20em;">
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- $(document).ready(function(){
- ntf_init();
- click_dropdown_init();
- note_create();
- reader_load();
- });
- 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>
|