hexo/node_modules/hexo-theme-fluid/layout/_partials/plugins/encrypt.ejs

19 lines
543 B
Plaintext
Raw Normal View History

2023-10-03 11:14:36 +08:00
<%
import_script(`
<script defer>
if (document.getElementById('hbePass') || document.querySelector('hbe-prefix')) {
Fluid.utils.waitElementLoaded('hbe-prefix', function() {
var hbePrefix = document.querySelector('hbe-prefix');
hbePrefix.parentElement.classList.add('markdown-body');
Fluid.utils.retry(function() {
if (Fluid.boot && Fluid.boot.refresh) {
Fluid.boot.refresh();
return true;
}
}, 100, 10);
})
}
</script>
`)
%>