-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.html
80 lines (76 loc) · 1.8 KB
/
test.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>TDPLAYER</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<script src="dist/tdplayer.js" type="text/javascript" charset="utf-8"></script>
<style type="text/css">
.header{
text-align: center;
}
.header>.titile{
color: #fff;
}
#v-dom{
position: relative;
height: 517px;
width: 922px;
margin: 0 auto;
z-index: 5;
box-shadow: rgba(221, 221, 221, 0.32) 0 0 2px;
}
.introduction{
width: 922px;
color: #fff;
margin: 20px auto 20px auto;
}
.introduction>a{
color: #fff;
text-decoration:none;
}
.tp-video{
margin-bottom: -4px;
}
body {
background-color:#d67e7e;
}
@media screen and (max-width: 910px) {
body{
background-color:lightblue;
}
#v-dom{
position: absolute;
width: 100%;
}
.introduction{
width: auto;
}
}
</style>
</head>
<body>
<header class="header"><img src="tdlogo.png"/>
<h1 class="titile">A HTML5 VIDEO PLAYER WITH BARRAGE</h1>
</header>
<script type="text/javascript">
document.querySelector('.titile').addEventListener('mouseenter',function(){
console.log('mouseenter')
})
</script>
<div id="v-dom"></div>
<div class="introduction">
<a href='http://www.acfun.cn/v/ac3662355'>ac3662355</a> 【武林文工团】白金窝窝头-白糖小约
</div>
<script type="text/javascript">
tdvidplay({
ele:document.querySelector('#v-dom'),
vid:5114364,
pic:'http://imgs.aixifan.com/content/2017_04_29/1493452620.jpg',
ab:false
})
</script>
</body>
</html>