head.html 6.6 KB
<html xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>审核云平台内容管理系统</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

    <meta name="csrf-token" content="1S0PDRJgENm1wNWmFo4hb3CLm5PjPLFWxQM88P4G">

    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

    <!--JQuery-->
    <script src="../../static/js/jquery.min.js"></script>
<!-- 	<link rel="icon" href="http://app.shineup.com.cn/goldenline/play_sel.png" type="image/x-icon"> -->
	<link rel="icon" href="/static/favicon.ico" type="image/x-icon">
    <!--Bootstrap-->
    <link href="../../static/css/bootstrap.min.css" rel="stylesheet">
    <script src="../../static/js/bootstrap.min.js"></script>

    <!-- Font Awesome -->
    <link href="../../static/css/font-awesome.min.css" rel="stylesheet">

    <!-- Theme style -->
    <link rel="stylesheet" href="../../static/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="../../static/css/_all-skins.min.css">


    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
  <!--  <script src="//cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>-->
    <![endif]-->

    <!--Bootstrap-Table-->
    <link href="../../static/css/bootstrap-table.min.css" rel="stylesheet">
<!--    <script src="../../static/js/bootstrap-table.min.js"></script>
    <script src="../../static/js/bootstrap-table-editable.min.js"></script>
    <script src="../../static/js/bootstrap-table-zh-CN.min.js"></script>-->

    <!--Moment.js-->
    <script src="../../static/js/moment.min.js"></script>
    <script src="../../static/js/moment-with-locales.min.js"></script>
    <script src="../../static/js/locales.js"></script>

    <!--CKEditor-->
    <script src="../../static/js/ckeditor.js"></script><style>.cke{visibility:hidden;}</style>

    <!--Bootstrap-DatetimePicker-->
    <link href="../../static/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
    <script src="../../static/js/bootstrap-datetimepicker.min.js"></script>

    <!--X-editable-->
    <link href="../../static/css/bootstrap-editable.css" rel="stylesheet">
   <!-- <script src="../../static/js/bootstrap-editable.min.js"></script>-->

    <!--Bootstrap-TreeView-->
    <link href="../../static/css/bootstrap-treeview.min.css" rel="stylesheet">
   <!-- <script src="../../static/js/bootstrap-treeview.min.js"></script>-->

    <!--Bootstrap-fileinput-->
    <link href="../../static/css/fileinput.min.css" rel="stylesheet">
    <script src="../../static/js/canvas-to-blob.min.js"></script>
    <script src="../../static/js/sortable.min.js"></script>
    <script src="../../static/js/purify.min.js"></script>
    <script src="../../static/js/fileinput.min.js"></script>
    <script src="../../static/js/zh.js"></script>

    <!--Toastr.js-->
    <script src="../../static/js/toastr.min.js"></script>
    <link href="../../static/css/toastr.min.css" rel="stylesheet">

    <!--JqueryUI custom-->
    <script src="../../static/js/jquery-ui.min.js"></script>

    <link href="../../static/css/app.css" rel="stylesheet">
    <script src="../../static/js/app.js"></script>
    
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<!--     <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"  -->
<!--     integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"  -->
<!--     crossorigin="anonymous"></script> -->
    
    <!--添加Dialog 的js-->
<!--     <script type="text/javascript" src="http://resweb.cnliveimg.com/system/dialog/zDrag.js"></script> -->
<!--     <script type="text/javascript" src="http://resweb.cnliveimg.com/system/dialog/zDialog.js"></script> -->
<!--     <link href="../../static/css/dialog.css" rel="stylesheet"> -->

<!-- 	右下角弹窗js -->
    <script src="../../static/js/notice.js"></script>
    
    <script language='JScript'>
    
    var isShow_chinnal=false;//是否显示频道消息框  
    var isShow_liveApply=false;//是否显示直播申请消息框
    var isShow_topic=false;//是否显示话题审核消息框
    	
    function initialize(){
    	$.ajax({
			type:'post',
			dataType:'json',
			data:'',
			url: "/users/getNoticeShow",
			success:function(data){	
				if(data.isShow_chinnal){
					isShow_chinnal=true;
					notice_channel();//第一次进来就弹窗
				}
				if(data.isShow_liveApply){
					isShow_liveApply=true;
					notice_liveApply();//第一次进来就弹窗
				}
                if(data.isShow_topic){
                    isShow_topic=true;
                    notice_topic();//第一次进来就弹窗
                }
			}
		});
    }
   
    var t1;
	$(function(){
		 initialize();
  		 t1 = window.setInterval(
  				 function(){
  			 		if(((parseInt(new Date().getTime()/1000))%(5*60)==0)){//弹窗设置每5分钟启用
  			 			if(isShow_chinnal){
  			 				notice_channel();
  			 			}
  			 		    if(isShow_liveApply){
  			 		    	notice_liveApply();
  			 		    }
                        if(isShow_topic){
                            notice_topic();
                        }
  			 		}
  			 	},1000); 
	});
	
	function notice_channel(){ 
		$.ajax({
			type:'get',
			dataType:'json',
			data:'',
			url: "/channel/channelNotice",
			success:function(data){	
				if(data!=null && data!="" ){
					new xWin(data.id,data.title,data.content,data.url);
				}
			}
		});
	} 
	function notice_liveApply(){ 
		$.ajax({
			type:'get',
			dataType:'json',
			data:'',
			url: "/liveApply/liveApplyNotice",
			success:function(data){	
				if(data!=null && data!="" ){
					new xWin(data.id,data.title,data.content,data.url);
				}
			}
		});
	}

    function notice_topic(){
        $.ajax({
            type:'get',
            dataType:'json',
            data:'',
            url: "/topic/topicNotice",
            success:function(data){
                if(data!=null && data!="" ){
                    new xWin(data.id,data.title,data.content,data.url);
                }
            }
        });
    }

//去掉定时器的方法 
//window.clearInterval(t1); 

</script>
</head>
</html>