|
|
@@ -61,6 +61,9 @@ require_once "../pcdl/html_head.php";
|
|
|
if(isset($_GET["start"])){
|
|
|
echo "_start=".$_GET["start"].";";
|
|
|
}
|
|
|
+ if(isset($_GET["begin"])){
|
|
|
+ echo "_start=".$_GET["begin"].";";
|
|
|
+ }
|
|
|
if(isset($_GET["end"])){
|
|
|
echo "_end=".$_GET["end"].";";
|
|
|
}
|
|
|
@@ -145,6 +148,7 @@ require_once "../pcdl/html_head.php";
|
|
|
<style>
|
|
|
ul.fancytree-container{
|
|
|
border:unset;
|
|
|
+ width: max-content;
|
|
|
}
|
|
|
.fancytree-container .active {
|
|
|
font-weight: 700;
|
|
|
@@ -284,7 +288,7 @@ function set_toc_visible(isVisible){
|
|
|
echo "&start=".$_GET["start"];
|
|
|
}
|
|
|
if(isset($_GET["end"])){
|
|
|
- echo "$end=".$_GET["end"];
|
|
|
+ echo "&end=".$_GET["end"];
|
|
|
}
|
|
|
echo "'>{$_local->gui->add}{$_local->gui->subfield}</a></button>";
|
|
|
|
|
|
@@ -369,11 +373,16 @@ function set_toc_visible(isVisible){
|
|
|
|
|
|
<script>
|
|
|
$(document).ready(function(){
|
|
|
- if(localStorage.getItem('article_show_toc_'+_mode)=="hide"){
|
|
|
- set_toc_visible(false);
|
|
|
+ if(window.innerWidth>800){
|
|
|
+ if(localStorage.getItem('article_show_toc_'+_mode)=="hide"){
|
|
|
+ set_toc_visible(false);
|
|
|
+ }else{
|
|
|
+ set_toc_visible(true);
|
|
|
+ }
|
|
|
}else{
|
|
|
- set_toc_visible(true);
|
|
|
+ set_toc_visible(false);
|
|
|
}
|
|
|
+
|
|
|
|
|
|
article_add_dlg_init("article_add_div");
|
|
|
ntf_init();
|