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

19 lines
525 B
Plaintext

<%
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>
`)
%>