mirror of
https://github.com/mashirozx/sakura.git
synced 2024-11-27 09:18:12 +08:00
perf: update jQuery
update jQuery to the lastest, fix some little bugs issue #237
This commit is contained in:
parent
69b68c00c0
commit
a063060ad9
File diff suppressed because one or more lines are too long
4
cdn/js/src/01.jquery.min.js
vendored
Normal file → Executable file
4
cdn/js/src/01.jquery.min.js
vendored
Normal file → Executable file
File diff suppressed because one or more lines are too long
@ -8,7 +8,7 @@ body {
|
|||||||
|
|
||||||
.nav-tab-wrapper {
|
.nav-tab-wrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
max-width: 930px;
|
max-width: 900px;
|
||||||
margin: auto !important;
|
margin: auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1051,12 +1051,14 @@ function load_bangumi() {
|
|||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open('POST', this.href + "&_wpnonce=" + Poi.nonce, true);
|
xhr.open('POST', this.href + "&_wpnonce=" + Poi.nonce, true);
|
||||||
xhr.onreadystatechange = function() {
|
xhr.onreadystatechange = function() {
|
||||||
if (xhr.readyState == 4 && xhr.status == 200) {
|
if (xhr.readyState == 4 ) {
|
||||||
var html = JSON.parse(xhr.responseText);
|
if(xhr.status == 200){
|
||||||
$("#bangumi-pagination").remove();
|
var html = JSON.parse(xhr.responseText);
|
||||||
$(".row").append(html);
|
$("#bangumi-pagination").remove();
|
||||||
}else{
|
$(".row").append(html);
|
||||||
$("#bangumi-pagination a").removeClass("loading").html('<i class="fa fa-exclamation-triangle" aria-hidden="true"></i> ERROR ');
|
}else{
|
||||||
|
$("#bangumi-pagination a").removeClass("loading").html('<i class="fa fa-exclamation-triangle" aria-hidden="true"></i> ERROR ');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
xhr.send();
|
xhr.send();
|
||||||
|
Loading…
Reference in New Issue
Block a user