header.html
2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!--
<base href="${BASE_PATH }">
-->
<title>${HEAD_TITLE! }</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="icon" href="${BASE_PATH }favicon.ico" />
<link rel="shortcut icon" href="${BASE_PATH }favicon.ico" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta name="keywords" content="${HEAD_TITLE! }">
<meta name="description" content="${HEAD_TITLE! }">
<script>
var jflyfox = {
BASE_PATH:'${BASE_PATH }'
}
</script>
<!-- IE兼容处理 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<% include("/template/includes/jquery.html"){} %>
<script type="text/javascript" src="${ctx}template/bbs/includes/common_pack.js"></script>
<% include("/template/includes/bootstrap-no-theme.html"){} %>
<link rel="stylesheet" href="${ctx}static/component/font-awesome-4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="${ctx}static/template/bbs/home.css">
<link rel="stylesheet" href="${ctx}static/front/home.min.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="${ctx}static/template/bbs/main.css">
<script src="${ctx}static/template/bbs/main.js"></script>
<style>
</style>
<script>
$(function() {
// 回顶部
$(window).scroll( function() {
if($(this).scrollTop() >= 100 ){
$("#scrollTop").show();
} else {
$("#scrollTop").hide();
}
} );
if($(window).scrollTop() >= 100 ){
$("#scrollTop").show();
} else {
$("#scrollTop").hide();
}
$("#scrollTop").click(function(){$(window).scrollTop(0);return false;});
// 回车绑定查询按钮
$('[name="search_header"]').on('keydown', function (e) {
var key = e.which;
if (key == 13 ) {
e.preventDefault();
search_form.action = jflyfox.BASE_PATH + "front/tags/"+ $('[name="search_header"]').val();
search_form.submit();
}
});
$('#search_btn').on('click', function (e) {
search_form.action = jflyfox.BASE_PATH + "front/tags/"+ $('[name="search_header"]').val();
search_form.submit();
});
});
</script>
<!-- 百度统计 -->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?1040d081eea13b44d84a4af639640d51";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>