forked from JMWpower/xiaojiejie
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpc.html
250 lines (239 loc) · 9.73 KB
/
pc.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title>JMW-|-小姐姐</title>
<link rel="stylesheet" type="text/css" href="./css/pc.css">
<script type="text/javascript">
if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
window.location.href = "index.html";
}else{
// window.location.href = "pc.html";
}
</script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?86194243b3d0dc98474adb8d6755d003";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<body>
<span style="position:absolute;top:15px;left:8vw;color:#fff;font-size:16px;">
<strong style="font-size:18px;">JMW-xiaojiejie</strong> | 看见美好生活
</span>
<div class="app">
<div>
<video id="player" preload autoplay webkit-playsinline='true' playsinline='true' x-webkit-airplay='true' x5-video-player-type='h5' x5-video-player-fullscreen='true' x5-video-ignore-metadata='true' controlslist="nodownload" poster="./img/bg.jpg"></video>
</div>
<div class="box">
<div style="padding-top:10px;padding-left:40px;background-color: #0E0F1A;">
<img src="./img/logo.png" style="border-radius:20px;width:32px;height:32px;background-color: #fff;">
<span style="color:#fff;padding-left:12px;font-size:16px;background-color: #0E0F1A;" id="userid">@Jmw`Power</span>
</div>
<div style="padding-top:15px;padding-left:20px;padding-right:20px;background-color: #0E0F1A;">
<span style="color:#fff;color: #999999;background-color: #0E0F1A;">本程序仅作研究学习演示,视频采集自网络;原作者拍摄创作不易,请勿下载传播!</span>
</div>
<div style="padding-top: 15px;padding-left: 40px;padding-right:40px;background-color: #0E0F1A;text-align: center;font-size:14px;">
<span style="color: #FF4040;background-color: #0E0F1A;">点击来源切换数据源</span><br>
<span style="color: #4682B4;background-color: #0E0F1A;">点击爱心按钮收藏</span>
</div>
<div style="padding-top: 15px;padding-left: 20px;padding-right:20px;background-color: #0E0F1A;text-align: center;">
<span style="color:#fff;background-color: #0E0F1A;">点击按钮选择【连续】/【循环】模式</span><br>
<span style="color:#fff;background-color: #0E0F1A;">点击【PASS】按钮刷新播放下一个</span><br>
<span style="color:#fff;background-color: #0E0F1A;">单击视频 播放/暂停</span><br>
<span style="color:#fff;background-color: #0E0F1A;">双击视频进入 全屏播放</span><br>
</div>
<div style="padding-top: 15px;padding-left: 20px;padding-right:20px;background-color: #0E0F1A;text-align: center;">
<button id="bth" class="xhms">单视频循环播放</button>
</div>
<div style="padding-top: 15px;padding-left: 20px;padding-right:20px;background-color: #0E0F1A;text-align: center;">
<button class="pass" onclick="players();">PASS</button>
</div>
<div style="padding-top: 15px;padding-left: 20px;padding-right:20px;background-color: #0E0F1A;text-align: center;">
<img src="./img/love.png" id="love" style="background-color: #0E0F1A;border-radius:10px;width:38px;height:38px;" title="点击喜欢按钮收藏">
</div>
<div style="padding-top: 15px;padding-left: 20px;padding-right:20px;background-color: #0E0F1A;text-align: center;">
<button id="yuan">当前数据源【001】</button>
</div>
<div style="padding-top: 15px;padding-left: 20px;padding-right:20px;background-color: #0E0F1A;text-align: center;">
<span style="color:#fff;">扫描下方二维码.使用手机播放</span><br>
<img src="./img/ewm.png" style="width:88px;height:88px;"><br>
<strong style="color:#fff;">http://xjj.jmwpower.top/</strong>
</div>
</div>
</div>
<div class="bom">
<div style="text-align: center;color:#fff;">
<strong>本程序仅作研究学习演示,数据采集自网络;原作者拍摄创作不易,请勿下载传播!</strong>
</div>
</div>
</body>
<div class="login" id="dlym" style="height:320px;">
<div class="login-title">ID*组·收藏登入<span><a class="close-login">关闭</a></span></div>
<div class="login-input-content">
<div class="login-input">
<label>ID*组·账号:</label>
<input type="text" placeholder="ID*组·账号(建议使用易记的纯数字)" id="username" class="list-input"/>
</div>
<strong>温馨提示:</strong>
<span>1.本收藏功能为开放性ID组账号收藏体验,ID*组·账号不设密码,如已存在同ID组账号,即会在原ID组账号上添加收藏数据,您可以公开您的ID组账号给您志同道合的好友们;添加的收藏数据暂不支持取消,不支持删除ID组账号,请您谨慎操作!</span>
<span>2.点击来源显示按钮切换到收藏源即可浏览当前ID组账号收藏的数据。</span>
</div>
<div class="login-button"><a id="login">登录账号</a></div>
</div>
<div class="login-bg"></div>
<script type="text/javascript" src="./js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="./js/jquery.cookie.min.js"></script>
<script>
$(document).ready(function(){
auto = false;
gi = 1;
url = "./get/get1.php";
vdurl = "./demo.mp4";
player = document.getElementById("player");
players();
$("#bth").on("click", function(){
auto = !auto;
this.innerText = (auto ? '自动连续播放下一个' : '单视频循环播放');
this.className = (auto ? 'zdlb' : 'xhms');
});
$("#love").on("click", function(){
user = $.cookie('user');
if (user == null) {
$('#dlym').show();
$('.login-bg').show();
} else {
$.post("post.php",{userid:user,datastr:vdurl},function(datat,status){
dataobj = JSON.parse(datat);
if (dataobj.status == "YES") {
$("#love").attr('src','./img/loves.png');
console.log(dataobj.message);
}else{
console.log(dataobj.message);
}
});
}
});
$('.close-login').click(function(){
$('#dlym').hide();
$('.login-bg').hide();
});
$("#yuan").on("click", function(){
if (gi < 1) {
gi = gi + 1;
this.innerText = "当前数据源【00" + gi + "】";
url = "./get/get" + gi + ".php";
} else if (gi = 1) {
var user = $.cookie('user');
if (user != null) {
gi = 0;
$("#userid").html('@'+user);
this.innerText = "当前数据源【收藏】";
url = ("./get/get.php?user=" + user);
} else {
$("#userid").html('@Jmw-Power');
gi = 1;
this.innerText = "当前数据源【00" + gi + "】";
url = "./get/get" + gi + ".php";
}
}
console.log(url);
});
player.addEventListener('ended', function () {
console.log("播放结束");
if (auto == false) {
player.play();
} else {
players();
}
}, false);
touchtime = new Date().getTime();
$("#player").on("click", function(){
if( new Date().getTime() - touchtime < 500 ){
console.log("dblclick");
FullScreen();
}else{
touchtime = new Date().getTime();
console.log("click");
if (player.paused) {
player.play();
} else {
player.pause();
}
}
});
});
function players() {
$.get(url,function(data,status){
if (status==status) {
console.log("成功获取数据!");
player.src = data;
vdurl = data;
console.log(data);
player.play();
if (gi==0) {
$("#love").attr('src','./img/loves.png');
} else {
$("#love").attr('src','./img/love.png');
}
$.ajax({url: data,type: 'GET',complete: function(response) {
if(response.status != 200) {
console.log(response.status);
players();
}
}});
} else {
console.log("失败,重新发起请求!");
players();
}
});
}
//进入全屏
function FullScreen() {
if (player .requestFullscreen) {
player .requestFullscreen();
player.play();
} else if (player .mozRequestFullScreen) {
player .mozRequestFullScreen();
player.play();
} else if (player .webkitRequestFullScreen) {
player .webkitRequestFullScreen();
player.play();
}
}
$(document).ready(function(){
var user = $.cookie('user');
if (user != null) {
$("#userid").html('@'+user);
} else {
$("#userid").html('@Jmw-Power');
}
});
$("#login").on("click", function(){
var usernames = document.getElementById('username').value;
if (usernames.replace(/(^\s*)|(\s*$)/g, "") == "") { //----判断是否为空或者空格---
alert("请注意,账号内容不能为空!");
username.focus();
return;//------如果为空,阻止函数继续往下执行----
} else {
$.post("login.php",{username:usernames},function(datalogin,status){
objlogin = JSON.parse(datalogin);
if (objlogin.status == "YES") {
$("#userid").html('@'+usernames);
$.cookie('user', usernames);
$('#dlym').hide();
$('.login-bg').hide();
alert(objlogin.message);
}else{
alert(objlogin.message);
}
});
}
});
</script>
</html>