Skip to content

Commit

Permalink
🐛 fixed #437
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Sep 16, 2018
1 parent ca14634 commit 38ed9cd
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
Expand Up @@ -138,9 +138,10 @@ <h3 class="meta-title">最新评论</h3>
</script>
#end
<script src="${theme_url('/static/js/headroom.min.js')}"></script>
<script src="//cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js"></script>
<script src="${theme_url('/static/js/instantclick.min.js')}"></script>
<script >
<script>
hljs.initHighlightingOnLoad();

#if(is_post)
var postDirectory = new Headroom(document.getElementById("directory-content"), {
tolerance: 0,
Expand All @@ -164,9 +165,9 @@ <h3 class="meta-title">最新评论</h3>
header.init();
$('#search-inp').keypress(function (e) {
var key = e.which; //e.which是按键的值
if (key == 13) {
if (key === 13) {
var q = $(this).val();
if (q && q != '') {
if (q && q !== '') {
window.location.href = '/search/' + q;
}
}
Expand Down
Expand Up @@ -13,14 +13,16 @@
<link rel="shortcut icon" href="${theme_url('/static/img/favicon.png')}"/>
<link rel="apple-touch-icon" href="${theme_url('/static/img/apple-touch-icon.png')}"/>
<title>${head_title()}</title>
<link href="${theme_url('/static/css/xcode.min.css')}" rel="stylesheet">
<link href="${theme_url('/static/css/default.min.css')}" rel="stylesheet">
<link href="${theme_url('/static/css/style.min.css')}" rel="stylesheet">
#if(allow_cloud_CDN() == "true")
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
#else
<script src="/static/admin/plugins/jquery/3.2.1/jquery.min.js"></script>
#end

<script src="${theme_url('/static/js/highlight.min.js')}"></script>
<script src="${theme_url('/static/js/instantclick.min.js')}"></script>
<!--[if lt IE 9]>
<script src="//cdn.bootcss.com/html5shiv/r29/html5.min.js"></script>
<script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Large diffs are not rendered by default.

0 comments on commit 38ed9cd

Please sign in to comment.