-
Notifications
You must be signed in to change notification settings - Fork 11
/
play.html
29 lines (29 loc) · 883 Bytes
/
play.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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="viewport" content="width=device-width,minimum-scale=1.0"/>
<title></title>
</head>
<body>
<style type="text/css">
video {
max-width: 100%;
}
</style>
<script type="text/javascript">
var html = '' +
'<video controls width="600" height="320">' +
'<source src="{video}" type=\'{type}\' />' +
'<div>对不起你的浏览器不支持播放此视频</div>' +
'</video>';
var m = location.search.match(/[a-zA-Z0-9]+=[^&]+/g);
var split;
for (var i = 0,l = m.length; i < l; i++) {
split = m[i].split('=');
html = html.replace('{' + split[0] + '}', decodeURIComponent(split[1]));
}
document.write(html);
</script>
</body>
</html>