mirror of
https://github.com/Mabbs/mabbs.github.io
synced 2025-12-19 23:45:35 +01:00
Update 3 files
- /_posts/2025-06-02-optimize.md - /assets/js/main.js - /index.html
This commit is contained in:
parent
c2351bc269
commit
8fd0fd107f
3 changed files with 90 additions and 1 deletions
|
|
@ -47,6 +47,10 @@ $(function () {
|
|||
});
|
||||
|
||||
function getSearchJSON(callback) {
|
||||
if (typeof Storage == 'undefined') {
|
||||
$.getJSON("/search.json", callback);
|
||||
return;
|
||||
}
|
||||
var searchData = JSON.parse(localStorage.getItem("blog_" + lastUpdated.valueOf()));
|
||||
if (!searchData) {
|
||||
for (var i = 0; i < localStorage.length; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue