mirror of https://github.com/mashirozx/sakura.git
parent
f265fe83c6
commit
f1b22d0fb5
|
@ -65,7 +65,7 @@
|
||||||
<?php wp_nav_menu( array( 'depth' => 2, 'theme_location' => 'primary', 'container' => false ) ); ?>
|
<?php wp_nav_menu( array( 'depth' => 2, 'theme_location' => 'primary', 'container' => false ) ); ?>
|
||||||
</div><!-- m-nav-center end -->
|
</div><!-- m-nav-center end -->
|
||||||
<a class="cd-top faa-float animated "></a>
|
<a class="cd-top faa-float animated "></a>
|
||||||
<button onclick="topFunction()" id="moblieGoTop" title="Go to top"><i class="fa fa-chevron-up" aria-hidden="true"></i></button>
|
<button id="moblieGoTop" title="Go to top"><i class="fa fa-chevron-up" aria-hidden="true"></i></button>
|
||||||
<!-- search start -->
|
<!-- search start -->
|
||||||
<form class="js-search search-form search-form--modal" method="get" action="<?php echo home_url(); ?>" role="search">
|
<form class="js-search search-form search-form--modal" method="get" action="<?php echo home_url(); ?>" role="search">
|
||||||
<div class="search-form__inner">
|
<div class="search-form__inner">
|
||||||
|
|
|
@ -456,8 +456,8 @@ function get_bgm_items($page = 1){
|
||||||
if(preg_match('/已看完/m',$list["new_ep"]['index_show'], $matches_finish)){
|
if(preg_match('/已看完/m',$list["new_ep"]['index_show'], $matches_finish)){
|
||||||
$percent = 100;
|
$percent = 100;
|
||||||
}else{
|
}else{
|
||||||
preg_match('/第(\d+)话/m',$list['progress'], $matches_progress);
|
preg_match('/第(\d+)./m',$list['progress'], $matches_progress);
|
||||||
preg_match('/第(\d+)话/m',$list["new_ep"]['index_show'], $matches_new);
|
preg_match('/第(\d+)./m',$list["new_ep"]['index_show'], $matches_new);
|
||||||
$progress = is_numeric($matches_progress[1]) ? $matches_progress[1] : 0;
|
$progress = is_numeric($matches_progress[1]) ? $matches_progress[1] : 0;
|
||||||
$total = is_numeric($matches_new[1]) ? $matches_new[1] : $list['total_count'];
|
$total = is_numeric($matches_new[1]) ? $matches_new[1] : $list['total_count'];
|
||||||
$percent = $progress / $total * 100;
|
$percent = $progress / $total * 100;
|
||||||
|
|
|
@ -1014,20 +1014,22 @@ setTimeout(function () {
|
||||||
}, 100);
|
}, 100);
|
||||||
|
|
||||||
function load_bangumi() {
|
function load_bangumi() {
|
||||||
$('body').on('click', '#bangumi-pagination a', function () {
|
if ($("section").hasClass("bangumi")) {
|
||||||
$("#bangumi-pagination a").addClass("loading").text("");
|
$('body').on('click', '#bangumi-pagination a', function () {
|
||||||
var xhr = new XMLHttpRequest();
|
$("#bangumi-pagination a").addClass("loading").text("");
|
||||||
xhr.open('POST', this.href, true);
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.onreadystatechange = function() {
|
xhr.open('POST', this.href, true);
|
||||||
if (xhr.readyState == 4 && xhr.status == 200) {
|
xhr.onreadystatechange = function() {
|
||||||
var html = JSON.parse(xhr.responseText);
|
if (xhr.readyState == 4 && xhr.status == 200) {
|
||||||
$("#bangumi-pagination").remove();
|
var html = JSON.parse(xhr.responseText);
|
||||||
$(".row").append(html);
|
$("#bangumi-pagination").remove();
|
||||||
}
|
$(".row").append(html);
|
||||||
};
|
}
|
||||||
xhr.send();
|
};
|
||||||
return false;
|
xhr.send();
|
||||||
});
|
return false;
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mashiro_global.ini.normalize();
|
mashiro_global.ini.normalize();
|
||||||
|
|
|
@ -8629,7 +8629,9 @@ h1[id*=toc-head]::before,h2[id*=toc-head]::before,h3[id*=toc-head]::before,h4[id
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
.bangumi {
|
||||||
|
margin-top: 40px;
|
||||||
|
}
|
||||||
.bangumi .row {
|
.bangumi .row {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin: 0 -10px -20px;
|
margin: 0 -10px -20px;
|
||||||
|
|
Loading…
Reference in New Issue