Ver código fonte

词典样式修改

Bhikkhu-Kosalla 5 anos atrás
pai
commit
e3f1297961

+ 12 - 1
app/dict/css/style_mobile.css

@@ -122,6 +122,7 @@ body {
 	margin-left: 0.1em;
 	font-size: 120%;
 	padding: 0.3em;
+	width:95%;
 }
 
 #left_menu_button{
@@ -134,9 +135,13 @@ body {
 
 #right_bar{
 	display:none;
+	position: fixed;
+	width: 100%;
 }
 .search_toolbar{
 	padding:0.5em 0;
+	position: fixed;
+	width: 100%;
 }
 
 guide{
@@ -145,4 +150,10 @@ guide{
 
 #search_info {
     display: block;
-}
+}
+#main_result{
+	margin-top: 5em;
+}
+.foot_div {
+	margin-top: 5em;
+}

+ 1 - 1
app/dict/index.php

@@ -33,7 +33,7 @@ if (!(isset($_GET["builtin"]) && $_GET["builtin"] == 'true')) {
 			<div style="flex:6;">
 				<div>
 					<div>
-						<input id="dict_ref_search_input" type="text" autocomplete="off" placeholder="<?php echo $_local->gui->search; ?> 单词里面添加 '+' 预览拆词结果" onkeyup="dict_input_keyup(event,this)" style="" onfocus="dict_input_onfocus()" />
+						<input id="dict_ref_search_input" type="text" autocomplete="off" placeholder="<?php echo $_local->gui->dict_searching_placehold; ?> " onkeyup="dict_input_keyup(event,this)" style="" onfocus="dict_input_onfocus()" />
 					</div>
 					<div id="result_msg"></div>
 					<div id="manual_split"></div>

+ 5 - 1
app/palicanon/index.php

@@ -41,7 +41,11 @@ require_once '../public/function.php';
 
 	<div id="select_bar" >
 		<div id="tag_selected"></div>
-		<div><button onclick="tag_list_slide_toggle()">展开</button></div>
+		<div>
+			<button onclick="tag_list_slide_toggle(this)">
+				⮝
+			</button>
+		</div>
 	</div>
 	<div>
 

+ 7 - 1
app/palicanon/palicanon.js

@@ -406,7 +406,13 @@ function sortNumber(a, b) {
 	return b - a;
 }
 
-function tag_list_slide_toggle() {
+function tag_list_slide_toggle(element) {
+	if($(element).html().indexOf("⮟")!= -1){
+		$(element).html("⮝")
+	}
+	else{
+		$(element).html("⮟")
+	}
 	$("#tag_list").slideToggle();
 }
 function chapter_back(parent) {

+ 2 - 0
app/public/lang/default.json

@@ -612,6 +612,8 @@
 		"lesson_intro": "Let’s take the course to see how the pāḷi experts explain conon",
 		"teaching_course": "teaching course",
 		"watching_course": "watching course",
+		"searching_instruction": "searching instruction",
+		"dict_searching_placehold": "insert “+” into a word to search them separately",
 		"": ""
 	},
 	"grammastr": [

+ 2 - 0
app/public/lang/en.json

@@ -611,6 +611,8 @@
 		"lesson_intro": "Let’s take the course to see how the pāḷi experts explain conon",
 		"teaching_course": "teaching course",
 		"watching_course": "watching course",
+		"searching_instruction": "searching instruction",
+		"dict_searching_placehold": "insert “+” into a word to search them separately",
 		"": ""
 	},
 	"grammastr": [

+ 2 - 0
app/public/lang/my.json

@@ -611,6 +611,8 @@
 		"lesson_intro": "Let’s take the course to see how the pāḷi experts explain conon",
 		"teaching_course": "teaching course",
 		"watching_course": "watching course",
+		"searching_instruction": "searching instruction",
+		"dict_searching_placehold": "insert “+” into a word to search them separately",
 		"": ""
 	},
 	"grammastr": [

+ 2 - 0
app/public/lang/si.json

@@ -616,6 +616,8 @@
 		"lesson_intro": "Let’s take the course to see how the pāḷi experts explain conon",
 		"teaching_course": "teaching course",
 		"watching_course": "watching course",
+		"searching_instruction": "searching instruction",
+		"dict_searching_placehold": "insert “+” into a word to search them separately",
 		"": ""
 	},
 	"grammastr": [

+ 2 - 0
app/public/lang/zh-cn.json

@@ -614,6 +614,8 @@
 		"lesson_intro": "看看世界各地的巴利专家都是如何解析圣典的",
 		"teaching_course": "主讲的课程",
 		"watching_course": "关注的课程",
+		"searching_instruction": "查词指南",
+		"dict_searching_placehold": "单词里面添加“+”可分别查看查询结果",
 		"": ""
 	},
 	"grammastr": [

+ 2 - 0
app/public/lang/zh-tw.json

@@ -613,6 +613,8 @@
 		"lesson_intro": "看看世界各地的巴利專家都是如何解析聖典的",
 		"teaching_course": "主講的課程",
 		"watching_course": "關注的課程",
+		"searching_instruction": "查詞指南",
+		"dict_searching_placehold": "单词里面添加“+”可分别查看查询结果",
 		"": ""
 	},
 	"grammastr": [

+ 12 - 3
app/reader/right_tool_bar.php

@@ -30,13 +30,15 @@
 	left: calc(100% - 30em);
 }
 #right_float_pannal > #tool_bar {
-	position: absolute;
+	/*position: absolute;*/
 	display: flex;
 	width: 100%;
 	justify-content: space-between;
 }
 #right_float_pannal > #tool_bar svg {
-	fill: var(--box-bg-color1);
+	fill: var(--bg-color);
+	height: 2em;
+	width: 2em;
 }
 #min_right_float {
 	display: none;
@@ -68,6 +70,9 @@
 				<svg class='icon'><use xlink:href='../studio/svg/icon.svg#right_expand'></use></svg>
 			</button>
 			</span>
+			<span id="tool_bar_title" style="font-size: 150%;">
+				<?php echo $_local->gui->searching_instruction; ?><guide gid="dict_search_input" init="1"></guide>
+			</span>
 			<span>
 			<button id="close_right_float" class="icon_btn" onclick="close_right_float()">
 			<svg class='icon'><use xlink:href='../studio/svg/icon.svg#cross_with_circle'></use></svg>
@@ -76,4 +81,8 @@
 		</div>
 		<iframe id="dict" src="../dict/index.php?builtin=true" name="dict" title="wikipali"></iframe>
 	</div>
-</div>				
+</div>
+
+<script>
+	guide_init();
+</script>

+ 115 - 0
app/statistics/index1.php

@@ -0,0 +1,115 @@
+<?PHP
+require_once "../pcdl/html_head.php";
+?>
+
+<body>
+    <script src="../palicanon/palicanon.js"></script>
+    <script src="../term/term.js"></script>
+
+    <?php
+require_once "../pcdl/head_bar.php";
+?>
+
+	<link type="text/css" rel="stylesheet" href="../palicanon/style.css" />
+	<link type="text/css" rel="stylesheet" href="../palicanon/style_mobile.css" media="screen and (max-width:800px)">
+
+
+    <script>
+        var tag_level = <?php echo file_get_contents("../public/book_tag/tag_list.json"); ?>;
+    </script>
+    <?php
+//
+
+require_once "../path.php";
+require_once "../public/_pdo.php";
+require_once '../media/function.php';
+require_once '../public/function.php';
+?>
+    <div id='course_head_bar' style='background-color:var(--tool-bg-color1);padding:1em 10px 10px 10px;'>
+    <div class='index_inner '>
+    <div style='font-size:140%'>
+    </div>
+    <div id="main_tag"  style="">
+    <span tag="sutta" title="sutta"></span>
+    <span tag="vinaya"  title="vinaya"></span>
+    <span tag="abhidhamma" title="abhidhamma"></span>
+    <span tag="mūla" title="mūla"></span>
+    <span tag="aṭṭhakathā" title="aṭṭhakathā"></span>
+    <span tag="ṭīkā" title="ṭīkā"></span>
+    <span tag="añña" title="añña"></span>
+	</div>
+
+	<div id="select_bar" >
+		<div id="tag_selected"></div>
+		<div><button onclick="tag_list_slide_toggle()">展开</button></div>
+	</div>
+	<div>
+
+		<div id="tag_list">
+			<div level="0" class="tag_others"></div>
+			<div level="1" class="tag_others"></div>
+			<div level="2" class="tag_others"></div>
+			<div level="3" class="tag_others"></div>
+			<div level="4" class="tag_others"></div>
+			<div level="5" class="tag_others"></div>
+			<div level="100" class="tag_others"></div>
+			<div level="8" class="tag_others"></div>
+		</div>
+	</div>
+    </div>
+    </div>
+
+	<div class='index_inner'>
+
+	<div id="chapter_shell" class="chapter_list" >
+	<div id="list_shell_1" class="show" level="1">
+		<ul id="list-1" class="grid" level="1" >
+		</ul>
+	</div>
+
+	<div id="list_shell_2" level="2">
+		<ul id="list-2" class="hidden" level="2"  >
+		</ul>
+	</div>
+
+	<div id="list_shell_3" level="3">
+		<ul id="list-3" class="hidden" level="3" >
+		</ul>
+	</div>
+
+	<div id="list_shell_4" level="4">
+		<ul id="list-4" class="hidden" level="4" >
+		</ul>
+	</div>
+
+	<div id="list_shell_5" level="5">
+		<ul id="list-5" class="hidden" level="5" >
+		</ul>
+	</div>
+
+	<div id="list_shell_6" level="6">
+		<ul id="list-6" class="hidden" level="6" >
+		</ul>
+	</div>
+
+	<div id="list_shell_7" level="7">
+		<ul id="list-7" class="hidden" level="7" >
+		</ul>
+	</div>
+
+	<div id="list_shell_8" level="8">
+		<ul id="list-8" class="hidden" level="8" >
+		</ul>
+	</div>
+
+    </div>
+    </div>
+
+    <script>
+        $(document).ready(function() {
+            palicanon_onload();
+        });
+    </script>
+    <?php
+include "../pcdl/html_foot.php";
+?>

+ 12 - 3
app/studio/svg/icon.svg

@@ -816,7 +816,7 @@
 	</svg>
 
 	<svg id="cross_with_circle" t="1614857863943" class="icon" viewBox="0 0 1024 1024" version="1.1"
-		xmlns="http://www.w3.org/2000/svg" p-id="5372" >
+		xmlns="http://www.w3.org/2000/svg" p-id="5372">
 		<path
 			d="M874.666667 149.333333C776.533333 51.2 648.533333 0 512 0S247.466667 51.2 149.333333 149.333333 0 375.466667 0 512s51.2 264.533333 149.333333 362.666667S375.466667 1024 512 1024s264.533333-51.2 362.666667-149.333333S1024 648.533333 1024 512s-51.2-264.533333-149.333333-362.666667z m-59.733334 665.6C733.866667 896 627.2 938.666667 512 938.666667s-221.866667-42.666667-302.933333-123.733334C128 733.866667 85.333333 627.2 85.333333 512s42.666667-221.866667 123.733334-302.933333C290.133333 128 396.8 85.333333 512 85.333333s221.866667 42.666667 302.933333 123.733334C896 290.133333 938.666667 396.8 938.666667 512s-42.666667 221.866667-123.733334 302.933333z"
 			p-id="5373"></path>
@@ -834,7 +834,7 @@
 			p-id="5199"></path>
 	</svg>
 	<svg id="left_expand" t="1614857929523" class="icon" viewBox="0 0 1024 1024" version="1.1"
-		xmlns="http://www.w3.org/2000/svg" p-id="5507" >
+		xmlns="http://www.w3.org/2000/svg" p-id="5507">
 		<path
 			d="M576 298.666667c12.8 0 21.333333 4.266667 29.866667 12.8 17.066667 17.066667 17.066667 42.666667 0 59.733333L465.066667 512l140.8 140.8c17.066667 17.066667 17.066667 42.666667 0 59.733333s-42.666667 17.066667-59.733334 0l-170.666666-170.666666c-17.066667-17.066667-17.066667-42.666667 0-59.733334l170.666666-170.666666c8.533333-8.533333 17.066667-12.8 29.866667-12.8z"
 			p-id="5508"></path>
@@ -843,7 +843,7 @@
 			p-id="5509"></path>
 	</svg>
 	<svg id="right_expand" t="1614858085952" class="icon" viewBox="0 0 1024 1024" version="1.1"
-		xmlns="http://www.w3.org/2000/svg" p-id="5646" >
+		xmlns="http://www.w3.org/2000/svg" p-id="5646">
 		<path
 			d="M448 725.333333c-12.8 0-21.333333-4.266667-29.866667-12.8-17.066667-17.066667-17.066667-42.666667 0-59.733333l140.8-140.8-140.8-140.8c-17.066667-17.066667-17.066667-42.666667 0-59.733333s42.666667-17.066667 59.733334 0l170.666666 170.666666c17.066667 17.066667 17.066667 42.666667 0 59.733334l-170.666666 170.666666c-8.533333 8.533333-17.066667 12.8-29.866667 12.8z"
 			p-id="5647"></path>
@@ -851,4 +851,13 @@
 			d="M512 1024c-136.533333 0-264.533333-51.2-362.666667-149.333333S0 648.533333 0 512s51.2-264.533333 149.333333-362.666667S375.466667 0 512 0s264.533333 51.2 362.666667 149.333333S1024 375.466667 1024 512s-51.2 264.533333-149.333333 362.666667S648.533333 1024 512 1024z m0-938.666667C396.8 85.333333 290.133333 128 209.066667 209.066667 128 290.133333 85.333333 396.8 85.333333 512s42.666667 221.866667 123.733334 302.933333S396.8 938.666667 512 938.666667s221.866667-42.666667 302.933333-123.733334S938.666667 627.2 938.666667 512s-42.666667-221.866667-123.733334-302.933333C733.866667 128 627.2 85.333333 512 85.333333z"
 			p-id="5648"></path>
 	</svg>
+	<svg t="1615627505919" id="unfold" class="icon" viewBox="0 0 1024 1024" version="1.1"
+		xmlns="http://www.w3.org/2000/svg" p-id="3180">
+		<path
+			d="M467.05836289 497.11504151a63.64133262 63.64133262 0 0 0 65.13877529 8.98465869 32.94374854 32.94374854 0 0 0 11.23082315-5.98977247l393.82753974-350.40168984A45.67201523 45.67201523 0 0 0 960.46586914 111.52343867a45.67201523 45.67201523 0 0 0-17.2205956-34.44119121 62.14388906 62.14388906 0 0 0-79.36448468 0L511.23293457 394.54018789 158.58508115 77.08224746A62.14388906 62.14388906 0 0 0 79.2205956 75.58480391a42.67712901 42.67712901 0 0 0 0 67.38494062z"
+			p-id="3181"></path>
+		<path
+			d="M863.88078887 527.81262471L511.23293457 843.77312246 158.58508115 526.31518203a62.14388906 62.14388906 0 0 0-79.36448555 0 42.67712901 42.67712901 0 0 0 0 67.38493975l390.08393174 354.14529697a63.64133262 63.64133262 0 0 0 65.13877529 8.98465869 32.94374854 32.94374854 0 0 0 11.23082403-5.98977246l393.82753886-350.40168896a45.67201523 45.67201523 0 0 0 20.96420362-39.68224277 45.67201523 45.67201523 0 0 0-17.2205956-34.44119122 62.14388906 62.14388906 0 0 0-79.36448468 1.49744268z"
+			p-id="3182"></path>
+	</svg>
 </svg>