yufan.me/themes/spectre/layout/_source/footer.ejs
2024-06-14 02:15:18 +08:00

34 lines
1.0 KiB
Plaintext

<!-- Import JS -->
<script>lsloader.js("lazy_js_vender","<%= theme.static_resource_prefix %>/scripts/lazyload.min.js")</script>
<!-- Comment -->
<% if(theme.comment.use){ %>
<%- partial('_plugin/comment/' + theme.comment.use + '/common') %>
<% } %>
<script type="text/javascript">
var myLazyLoad = new LazyLoad({
elements_selector: ".lazy"
});
// Start Queue
window.onload = function() {
setInterval(function(){
queue.execNext();
},200);
};
</script>
<script type="text/javascript">
var copyrightNow = new Date().getFullYear();
var textContent = document.querySelector('span[year]')
<% if (theme.footer.copyright_since) { %>
copyrightSince = <%= theme.footer.copyright_since %>;
if (copyrightSince === copyrightNow) {
textContent.textContent = copyrightNow
} else {
textContent.textContent = copyrightSince + ' - ' + copyrightNow
}
<% } else { %>
textContent.textContent = copyrightNow
<% } %>
</script>