forked from yhf7952/VipVideo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
119 lines (116 loc) · 3.97 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
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>全网VIP视频解析</title>
<!-- Bootstrap -->
<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询(media queries)功能 -->
<!-- 警告:通过 file:// 协议(就是直接将 html 页面拖拽到浏览器中)访问页面时 Respond.js 不起作用 -->
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
.header{
margin-top:10%;
}
.main{
padding:10px 15%;
}
.footer{
padding:10px 15%;
}
</style>
<body>
<div class="container">
<div class="header h1 text-center">
<h1>全网VIP视频解析</h1>
<small>选取解析API并输入视频地址即可免VIP播放</small>
</div>
<hr />
<div class="main">
<form class="form-horizontal" method="post">
<div class="form-group">
<label for="api" class="col-sm-2 control-label">API地址</label>
<div class="col-sm-10">
<select id="api" name="api" class="form-control"></select>
</div>
</div>
<div class="form-group">
<label for="url" class="col-sm-2 control-label">视频地址</label>
<div class="col-sm-10">
<input type="url" class="form-control" id="url" name="url" placeholder="视频地址">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="button" id="play" class="btn btn-primary">解 析</button>
</div>
</div>
</form>
</div>
<hr />
<div class="main">
<h4>如播放地址失效,可重新设置API列表。<a href="javascript:setDefault();">恢复默认</a></h4>
<div class="form-horizontal">
<div class="form-group">
<label for="url" class="col-sm-2 control-label">API列表</label>
<div class="col-sm-10">
<textarea rows="10" id="apiList" class="form-control">https://jx.m3u8.tv/jiexi/?url=
https://www.1717yun.com/jx/ty.php?url=
https://www.kpezp.cn/jlexi.php?url=</textarea>
</div>
</div>
</div>
</div>
<div class="footer text-center">
<p>Copyright <span style="font-family:Arial;">©</span> 2021 BJAny All Rights Reserved</p></p>
</div>
</div>
<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery,所以必须放在前边) -->
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<script>
function setApi(){
$("#api").children().remove();
var apilist = $("#apiList").val().split(/\r?\n/);
for(var i=0;i<apilist.length;i++){
$("#api").append("<option>"+apilist[i]+"</option>");
}
}
$("#apiList").blur(function(){
setApi();
$.cookie("apiList",$("#apiList").val());
});
$("#play").click(function(){
$api = $("#api").val();
$url = $("#url").val();
if($url == "" || $url == null || !/^http.*$/.test($url)){
alert('视频地址不正确!');
return;
}
if($url == "" || $url == null || !/^http.*=$/.test($api)){
alert('无效API!');
return;
}
window.open($api+$url);
});
function init(){
var ckapi = $.cookie("apiList");
if(ckapi && ckapi != ""){
$("#apiList").val(ckapi);
}
setApi();
}
init();
function setDefault(){
$.cookie("apiList","");
window.location.reload();
}
</script>
</body>
</html>