blog/themes/fluid/layout/_partials/plugins/encrypt.ejs

19 lines
525 B
Plaintext
Raw Normal View History

2024-11-16 11:34:10 +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>
`)
%>