This repository has been archived by the owner on Apr 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathrumors.html
128 lines (109 loc) · 5.2 KB
/
rumors.html
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>2020年武汉新型冠状病毒</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="2020 wuhan Novel coronavirus">
<meta name="keywords" content="2020 wuhan Novel coronavirus 武汉肺炎 2019-nCov">
<meta name="author" content="cuihuan">
<meta name="robots" content="index,follow">
<link rel="stylesheet" type="text/css" href="./static/css/common.css"/>
<link rel="stylesheet" type="text/css" href="./static/js/zui/css/zui-theme.css"/>
<link rel="stylesheet" type="text/css" href="./static/js/zui/css/zui.css"/>
<link rel="stylesheet" type="text/css" href="./static/js/zui/lib/chosen/chosen.min.css"/>
<script type="text/javascript" src="./static/js/jquery/jquery2.0.min.js"></script>
<script type="text/javascript" src="./static/js/common.js"></script>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">武汉加油</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">
<span class="muted">武汉加油</span>
</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li ><a href="./nCoV.html" target="_self"><i class="icon icon-line-chart"></i> 全国数据</a></li>
<li ><a href="./news.html" target="_self"><i class="icon icon-th"></i> 分省数据</a></li>
<li><a href="./sars.html" target="_self"><i class="icon icon-globe"></i> sars对比</a></li>
<li class="active"><a href="./rumors.html" target="_self"><i class="icon icon-thumbs-o-down"></i> 辟谣中心</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="./statement.html" target="_blank"><i class="icon icon-chat"></i> 声明</a></li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="alert alert-primary" style="height: 100%">
有人的地方就一定会有谣言,任何国家都一样,<span style="font-weight: bolder;color: #fe511c">所以谣言并不可怕。</span>独立思考,谣言止于智者,不传谣,不信谣!
<span style="font-weight: bolder;color: #fe511c;">任何声称此时有"特效药"的新闻都是谎言!</span>
</div>
<hr/>
<div class="items" >
</div>
</div>
<div class="page-footer clear">
<div class="copyright" style="color:#999999">
<div >
请勿用于任何商业用途
</div>
<div id="cr_1">
交流网站:<a href="http://cuihuan.net">cuihuan.net</a>
</div>
<div id="cr_2">Copyright © <span class=""> cuihuan </span>
</div>
</div>
</div>
</body>
</html>
<script type="text/javascript" src="./static/js/zui/js/zui.js"></script>
<script type="text/javascript" src="./static/js/zui/lib/chosen/chosen.min.js"></script>
<script type="text/javascript" src="./static/js/echart/echarts4.min.js"></script>
<script type="text/javascript">
var dataUrl = "https://lab.ahusmart.com/nCoV/";
var dataUrlBackup = "https://lab.ahusmart.com/nCoV/";
$(document).ready(function () {
initRumors('湖北省');
});
var initRumors = function(province) {
$.ajax({
url: dataUrl + 'api/rumors?num=all',
type: 'get',
success: function (res) {
if (res.success===true ){
var rumors = res.results;
var html = "";
for (var i in rumors) {
html +='<div class="item">\n' +
' <div class="item-heading">\n' +
' <div class="pull-right label label-info news-province">谣言</div>\n' +
' <h4><a href="'+rumors[i].sourceUrl+'" class="news-title" target="_blank">'+ rumors[i].title+'</a></h4>\n' +
' </div>\n' +
' <div class="item-content news-detail" ><div style="color:#ff9a1f;font-weight: bolder">' + rumors[i].mainSummary+'</div><div style="color: #2a3c4a;">详情:' +rumors[i].body+'</div>'+
' </div>\n' +
' </div>';
}
$(".items").html(html);
return ;
}
alert("获取数据失败");
},
error:function (res) {
if (res.state() === "rejected" && !this.url.includes(dataUrlBackup)) {
this.url = this.url.replace(dataUrl, dataUrlBackup);
$.ajax(this);
}
}
})
};
</script>