-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
56 lines (56 loc) · 2.13 KB
/
demo.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
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="timeline/source/timeline.css">
</head>
<body>
<div id="replay-source"></div>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="timeline/jquery.mousewheel.min.js"></script>
<script type="text/javascript" src="timeline/timeline.js"></script>
<script type="text/javascript">
$('#replay-source').timeline({
// 最小缩放指数
minZoom: 0,
// 最大缩放指数
maxZoom: 360,
// 高亮部分点击事件
HLclick: function(time, win, data)
{
/*
* if(bool){Utils.replayOCX.recPlay(data.devcode,time);bool=false}
* else{ Utils.replayOCX.seek(win,time); }
*/
/*if($('.win').eq(win).data('isPlay')){
Utils.replayOCX.seek(Number(win)+1,data.rec[0].starttime.slice(0,11)+time);
}
else{
var day = data.rec[0].endtime.slice(0,11);
var startTime = day+time;
var endTime = day+'23:59:59';
Utils.replayOCX.recPlay(Number(win)+1,data.devname,data.devid,data.devcode, data.rec[0].starttime,endTime);
$('.win').eq(win).data('isPlay',true);
Utils.replayOCX.seek(Number(win)+1,data.rec[0].starttime.slice(0,11)+time);
}*/
},
HLdbclick: function(time, win, data)
{
/*
* if(bool){Utils.replayOCX.recPlay(data.devcode,time);bool=false}
* else{ Utils.replayOCX.seek(win,time); }
*/
/*var day = data.rec[0].endtime.slice(0,11);
var startTime = day+time;
var endTime = day+'23:59:59';
Utils.replayOCX.recPlay(Number(win)+1,data.devname,data.devid,data.devcode, data.rec[0].starttime,endTime);
$('.win').eq(win).data('isPlay',true);
Utils.replayOCX.seek(Number(win)+1,startTime);*/
},
winClick: function(index, hasData){
/*Utils.replayOCX.selectWin(index+1,hasData);*/
}
});
</script>
</body>
</html>