-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (47 loc) · 1.48 KB
/
index.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
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<title>新闻地图服务系统</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="static/favicon.png" type="image/x-icon">
<link rel="stylesheet" href="static/lib/mapbox-gl.css">
<link rel="stylesheet" href="static/style.css">
</head>
<body>
<div id="outdated"></div>
<div id="app"></div>
<script src="static/api.js"></script>
<script src="static/lib/jquery.min.js"></script>
<script src="static/lib/mapbox-gl.js"></script>
<script src="static/lib/webuploader.js"></script>
<script src="build/bundle.js"></script>
</body>
<script>
//event listener form DOM ready
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
$(document).mouseup(function(e){
var _con = $(".key-tips,.panel,#location-select,.location-tips,.field-tips"); // 隐藏目标
var colpick = $(".colpick");
if(!_con.is(e.target) && _con.has(e.target).length === 0 && !colpick.is(e.target) && colpick.has(e.target).length === 0){
_con.hide();
if($("#stops-panel").is(":visible")===false){
$(".open-stops").removeClass("open");
}
}
});
</script>
</html>