header.html 2.52 KB
	<!-- 
	<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>