hexo-theme-ayer/layout/_partial/after-footer.ejs

66 lines
1.9 KiB
Plaintext
Raw Normal View History

2019-12-03 11:37:44 +00:00
<%- js('/js/jquery-2.0.3.min') %>
2020-02-06 15:14:35 +00:00
<%- js('/js/share') %>
2020-03-06 03:20:54 +00:00
<%- js('/js/lazyload.min') %>
2020-01-30 06:14:35 +00:00
<% if (theme.subtitle.enable){ %>
<script>
2020-02-05 03:21:08 +00:00
try {
var typed = new Typed("#subtitle", {
2020-03-06 03:20:54 +00:00
strings: ['<%= theme.subtitle.text %>', '<%= theme.subtitle.text2 %>', '<%= theme.subtitle.text3 %>'],
startDelay: <%= theme.subtitle.startDelay %>,
typeSpeed: <%= theme.subtitle.typeSpeed %>,
loop: <%= theme.subtitle.loop %>,
backSpeed: <%= theme.subtitle.backSpeed %>,
showCursor: <%= theme.subtitle.showCursor %>
2020-01-30 06:14:35 +00:00
});
2020-02-05 03:21:08 +00:00
} catch (err) {
}
2020-03-06 03:20:54 +00:00
2020-01-30 06:14:35 +00:00
</script>
<% } %>
2019-12-03 11:37:44 +00:00
<% if (theme.toc && is_post()){ %>
2020-01-20 07:09:23 +00:00
<%- js('/js/tocbot.min') %>
<script>
// Tocbot_v4.7.0 http://tscanlin.github.io/tocbot/
tocbot.init({
tocSelector: '.tocbot',
contentSelector: '.article-entry',
headingSelector: 'h1, h2, h3, h4, h5, h6',
hasInnerContainers: true,
scrollSmooth: true,
2020-03-06 03:20:54 +00:00
scrollContainer: 'main',
2020-01-20 07:09:23 +00:00
positionFixedSelector: '.tocbot',
positionFixedClass: 'is-position-fixed',
fixedSidebarOffset: 'auto',
onClick: (e) => {
2020-01-29 12:36:48 +00:00
$('.toc-link').removeClass('is-active-link');
$(`a[href=${e.target.hash}]`).addClass('is-active-link');
$(e.target.hash).scrollIntoView();
2020-01-20 07:09:23 +00:00
return false;
}
});
</script>
2019-12-03 11:37:44 +00:00
<% } %>
2019-12-16 15:48:13 +00:00
<script src="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.css">
2020-03-06 03:20:54 +00:00
<script src="https://cdn.jsdelivr.net/npm/justifiedGallery@3.7.0/dist/js/jquery.justifiedGallery.min.js"></script>
<%- js('js/ayer') %>
2019-12-16 15:48:13 +00:00
2020-03-16 03:24:54 +00:00
<% if (theme.image_viewer){ %>
2020-01-20 07:09:23 +00:00
<%- partial('viewer') %>
<% } %>
2019-12-03 11:37:44 +00:00
<% if (theme.mathjax){ %>
2020-01-20 07:09:23 +00:00
<%- partial('mathjax') %>
2020-03-06 03:20:54 +00:00
<script>
var ayerConfig = {
mathjax: true
}
</script>
<% } %>
<% if (theme.busuanzi && theme.busuanzi.enable){ %>
<%- js('/js/busuanzi-2.3.pure.min') %>
2019-12-03 11:37:44 +00:00
<% } %>
2019-12-17 11:31:00 +00:00
2020-03-16 03:24:54 +00:00
<script type="text/javascript" src="https://js.users.51.la/20544303.js"></script>