Skip to content
1 change: 1 addition & 0 deletions localization.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"页面加载出错了 HTTP {0}": "Page Load failed. HTTP {0}",
"很高兴你翻到这里,但是真的没有了...": "Glad you come, but we've got nothing left.",
"文章":"Post",
"说说":"Shuoshuo",
"标签":"Tag",
"目录":"Category",
"页面":"Page",
Expand Down
35 changes: 1 addition & 34 deletions src/app/func.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function PE() {
}
}
}
import { jsSearchCallback } from './search'

import { turnOnDarkMode, turnOffDarkMode } from './darkmode';
/**
* @has-dom-modify
Expand Down Expand Up @@ -119,40 +119,7 @@ export function CE() {
h3[i].addEventListener("click", handler)
}
}
// $('.comments-hidden').show();
// $('.comments-main').hide();
// $('.comments-hidden').click(function () {
// $('.comments-main').slideDown(500);
// $('.comments-hidden').hide();
// });
// $('.archives').hide();
// $('.archives:first').show();
// $('#archives-temp h3').click(function () {
// $(this).next().slideToggle('fast');
// return false;
// });
/*if (_iro.baguetteBoxON) {
baguetteBox.run('.entry-content', {
captions: function (element) {
return element.getElementsByTagName('img')[0].alt;
},
ignoreClass: 'fancybox',
});
}*/

for (const ele of document.getElementsByClassName('js-toggle-search')) {
ele.addEventListener('click', jsSearchCallback);
}

const sc = document.querySelector(".search_close");
sc && sc.addEventListener("click", () => {
let js_search = document.getElementsByClassName("js-search")[0];
if (js_search.classList.contains("is-visible")) {
document.getElementsByClassName("js-toggle-search")[0].classList.toggle("is-active");
js_search.classList.toggle("is-visible");
document.documentElement.style.overflowY = "unset";
}
});
try {
const loading = document.getElementById("loading");
loading.addEventListener("click", () => {
Expand Down
3 changes: 3 additions & 0 deletions src/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ import initTypedJs from './typed'
import add_copyright from './copyright'
import initFooter from './footer'
import init_medal_effects from './animations/medal_effects';
import { SearchDialog } from './search'


initIsMobileCache()
/**
Expand Down Expand Up @@ -167,4 +169,5 @@ ready(function () {
about_us()
initFooter();
init_medal_effects();
SearchDialog();
});
Loading