perf: update jQuery

update jQuery to the lastest, fix some little bugs
issue #237
This commit is contained in:
Spirit 2020-08-08 00:02:36 +08:00
parent 69b68c00c0
commit a063060ad9
6 changed files with 17 additions and 15 deletions

File diff suppressed because one or more lines are too long

4
cdn/js/src/01.jquery.min.js vendored Normal file → Executable file

File diff suppressed because one or more lines are too long

View File

@ -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

View File

@ -1051,13 +1051,15 @@ 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 ) {
if(xhr.status == 200){
var html = JSON.parse(xhr.responseText); var html = JSON.parse(xhr.responseText);
$("#bangumi-pagination").remove(); $("#bangumi-pagination").remove();
$(".row").append(html); $(".row").append(html);
}else{ }else{
$("#bangumi-pagination a").removeClass("loading").html('<i class="fa fa-exclamation-triangle" aria-hidden="true"></i> ERROR '); $("#bangumi-pagination a").removeClass("loading").html('<i class="fa fa-exclamation-triangle" aria-hidden="true"></i> ERROR ');
} }
}
}; };
xhr.send(); xhr.send();
return false; return false;

View File

@ -3639,7 +3639,7 @@ a.page-numbers {
font-size: 14px font-size: 14px
} }
.siren-checkbox-label input { .siren-checkbox-label input,#wp-comment-cookies-consent {
padding: 0; padding: 0;
margin: 0; margin: 0;
float: none; float: none;