Update 3 files

- /_layouts/default.html
- /assets/js/pjax.js
- /assets/css/style.scss
This commit is contained in:
mayx
2026-05-22 12:52:39 +00:00
parent c5ad917d9e
commit b25a864ee3
3 changed files with 16 additions and 4 deletions

View File

@@ -76,8 +76,8 @@ layout: xslt_container
<p class="p-note">{{ site.description | default: site.github.project_tagline }}</p> <p class="p-note">{{ site.description | default: site.github.project_tagline }}</p>
<form action="/search.html"> <form id="search-input-all" action="/search.html">
<input type="text" name="keyword" id="search-input-all" placeholder="Search blog posts.." />&#160;<input type="submit" value="搜索" /> <input type="text" name="keyword" placeholder="Search blog posts.." />&#160;<input type="submit" value="搜索" />
</form> </form>
<br /> <br />

View File

@@ -191,3 +191,15 @@ td.h-entry {
td.h-entry:hover { td.h-entry:hover {
background: #f9f9f9; background: #f9f9f9;
} }
body.pjax-loading::after {
content: '';
position: fixed;
top: 16px;
right: 16px;
width: 20px;
height: 20px;
background: url('/images/loading.svg') center / contain no-repeat;
z-index: 9999;
pointer-events: none;
}

View File

@@ -174,7 +174,7 @@
':not([href$=".xml"]):not([href$=".json"]):not([href$=".tgz"]):not([href$=".zip"])' + ':not([href$=".xml"]):not([href$=".json"]):not([href$=".tgz"]):not([href$=".zip"])' +
':not([href^="/Live2dHistoire"])'; ':not([href^="/Live2dHistoire"])';
$(document).pjax('a' + exclude, PJAX_OPTS.container, PJAX_OPTS); $(document).pjax('a' + exclude, PJAX_OPTS.container, PJAX_OPTS);
$(document).on('submit', 'form', function (e) { $(document).on('submit', 'form#search-input-all', function (e) {
$.pjax.submit(e, PJAX_OPTS.container, PJAX_OPTS); $.pjax.submit(e, PJAX_OPTS.container, PJAX_OPTS);
}); });
$(document).on('pjax:send', function () { $(document).on('pjax:send', function () {