",
4 | inputFileName: "inputFile",
5 | inputFileClass: "inputFile",
6 | uploadButtonValue: "Upload",
7 | uploadButtonClass: "uploadButton",
8 | browseButtonValue: "Browse",
9 | browseButtonClass: "browseButton",
10 | deleteButtonValue: "Delete image",
11 | deleteButtonClass: "deleteButton",
12 | automaticUpload: false,
13 | formClass: "controlForm",
14 | hideFileInput: true,
15 | hideDeleteButton: false,
16 | hover: true,
17 | addClass: "jQuery-image-upload"
18 | };
19 | $.fn.imageUpload = function(f) {
20 | var g = this;
21 | if(!g.length) {
22 | return g
23 | }
24 | var i = $.extend(s, f);
25 | if(g.length > 1) {
26 | g.each(function() {
27 | $(this).imageUpload(i)
28 | });
29 | return g
30 | }
31 | if(g.data("imageUpload")) {
32 | g.trigger("imageUpload.reload");
33 | return g
34 | }
35 | g.addClass(i.addClass);
36 | g.data("imageUpload", f);
37 | if(!i.formAction) {
38 | throw new Error("Form action was not provided. Please provide it: $(...).imageUpload({formAction: '...'})")
39 | }
40 | if(!i.hover) {
41 | g.wrap(i.wrapContent)
42 | }
43 | var j = $("
",success:function(e,i){s.bigimg=e.find(".layui-layer-phimg"),s.imgsee=e.find(".layui-layer-imguide,.layui-layer-imgbar"),s.event(e),t.tab&&t.tab(u[d],e),"function"==typeof y&&y(e)},end:function(){s.end=!0,i(document).off("keyup",s.keyup)}},t))},function(){r.close(s.loadi),r.msg("当前图片地址异常
是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){u.length>1&&s.imgnext(!0,!0)}})})}},o.run=function(t){i=t,n=i(e),l.html=i("html"),r.open=function(e){var t=new s(e);return t.index}},e.layui&&layui.define?(r.ready(),layui.define("jquery",function(t){r.path=layui.cache.dir,o.run(layui.$),e.layer=r,t("layer",r)})):"function"==typeof define&&define.amd?define(["jquery"],function(){return o.run(e.jQuery),r}):function(){o.run(e.jQuery),r.ready()}()}(window);
--------------------------------------------------------------------------------
/player/js/setting - cookie.js:
--------------------------------------------------------------------------------
1 | if (diyvodid == 1) {
2 | var dmid = diyid,
3 | dmsid = diysid;
4 | } else {
5 | var dmid = vodid,
6 | dmsid = vodsid;
7 | }
8 | var dmid = dmid + ' P' + dmsid;
9 | if (laoding == 1) {} else {
10 | var css = '';
13 | $('body').append(css).addClass("");
14 | }
15 | // 加载播放器
16 | if (bilidm == 1 && danmuon == 1) {
17 | var dp = new yzmplayer({
18 | autoplay: autoplay,
19 | element: document.getElementById('player'),
20 | theme: color,
21 | logo: logo,
22 | video: {
23 | url: vodurl,
24 | pic: vodpic,
25 | type: 'auto',
26 | },
27 | danmaku: {
28 | id: dmid,
29 | api: dmapi + '?ac=dm',
30 | user: user,
31 | addition: [dmapi + 'bilibili/?av=' + av]
32 | }
33 | });
34 | dp.danmaku.opacity(1);
35 | } else if (danmuon == 1) {
36 | var dp = new yzmplayer({
37 | autoplay: autoplay,
38 | element: document.getElementById('player'),
39 | theme: color,
40 | logo: logo,
41 | video: {
42 | url: vodurl,
43 | pic: vodpic,
44 | type: 'auto',
45 | },
46 | danmaku: {
47 | id: dmid,
48 | api: dmapi + '?ac=dm',
49 | user: user,
50 | }
51 | });
52 | dp.danmaku.opacity(1);
53 | } else {
54 | var dp = new yzmplayer({
55 | autoplay: autoplay,
56 | element: document.getElementById('player'),
57 | theme: color,
58 | logo: logo,
59 | video: {
60 | url: vodurl,
61 | pic: vodpic,
62 | type: 'auto',
63 | },
64 | });
65 | $('body').addClass("danmu-off");
66 | }
67 | if (vodid != '') {
68 | $("#vodtitle").html(vodid + ' 第' + vodsid + '话');
69 | }
70 | // 通用点击
71 | add('.yzmplayer-list-icon', ".yzmplayer-danmu", 'show');
72 |
73 | function add(div1, div2, div3, div4) {
74 | $(div1).click(function() {
75 | $(div2).toggleClass(div3);
76 | $(div4).remove();
77 | });
78 | }
79 | //秒转分秒
80 | function formatTime(seconds) {
81 | return [parseInt(seconds / 60 / 60), parseInt(seconds / 60 % 60), parseInt(seconds % 60)].join(":").replace(
82 | /\b(\d)\b/g, "0$1");
83 | }
84 | //设置浏览器缓存项值,参数:项名,值,有效时间(小时)
85 | function setCookie(c_name, value, expireHours) {
86 | var exdate = new Date();
87 | exdate.setHours(exdate.getHours() + expireHours);
88 | document.cookie = c_name + "=" + escape(value) + ((expireHours === null) ? "" : ";expires=" + exdate.toGMTString());
89 | }
90 | //获取浏览器缓存项值,参数:项名
91 | function getCookie(c_name) {
92 | if (document.cookie.length > 0) {
93 | c_start = document.cookie.indexOf(c_name + "=");
94 | if (c_start !== -1) {
95 | c_start = c_start + c_name.length + 1;
96 | c_end = document.cookie.indexOf(";", c_start);
97 | if (c_end === -1) {
98 | c_end = document.cookie.length;
99 | };
100 | return unescape(document.cookie.substring(c_start, c_end));
101 | }
102 | }
103 | return "";
104 | }
105 | dp.on("loadedmetadata", function() {
106 | loadedmetadataHandler();
107 | });
108 | dp.on("ended", function() {
109 | endedHandler();
110 | });
111 | dp.on('pause', function() {
112 | play_pause();
113 | });
114 | dp.on('play', function() {
115 | out_pause();
116 | });
117 | var playtime = Number(getCookie("time_" + vodurl));
118 | var ctime = formatTime(playtime);
119 |
120 | function loadedmetadataHandler() {
121 | if (playtime > 0 && dp.video.currentTime < playtime) {
122 | setTimeout(function() {
123 | video_con_play()
124 | }, 1 * 1000);
125 | } else {
126 | dp.notice("视频已准备就绪,即将为您播放");
127 | setTimeout(function() {
128 | video_play()
129 | }, 1 * 1000);
130 | }
131 | dp.on("timeupdate", function() {
132 | timeupdateHandler();
133 | });
134 | }
135 | //播放进度回调
136 | function timeupdateHandler() {
137 | setCookie("time_" + vodurl, dp.video.currentTime, 24);
138 | }
139 | //播放结束回调
140 | function endedHandler() {
141 | setCookie("time_" + vodurl, "", -1);
142 | if (next != '') {
143 | dp.notice("5s后,将自动为您播放下一集");
144 | setTimeout(function() {
145 | video_next();
146 | }, 5 * 1000);
147 | } else {
148 | dp.notice("视频播放已结束");
149 | setTimeout(function() {
150 | video_end();
151 | }, 2 * 1000);
152 | }
153 | }
154 | if (next != '') {} else {
155 | $(".icon-xj").remove();
156 | };
157 | $(".yzmplayer-showing").on("click", function() {
158 | dp.play();
159 | $(".vod-pic").remove();
160 | });
161 | //个性化弹幕框
162 | $(".yzmplayer-comment-setting-color input").on("click", function() {
163 | var textcolor = $(this).attr("value");
164 | setTimeout(function() {
165 | $('.yzm-yzmplayer-comment-input').css({
166 | "color": textcolor
167 | });
168 | }, 100);
169 | });
170 | $(".yzmplayer-comment-setting-type input").on("click", function() {
171 | var texttype = $(this).attr("value");
172 | setTimeout(function() {
173 | $('.yzm-yzmplayer-comment-input').attr("dmtype", texttype);
174 | }, 100);
175 | });
176 | $("#dmset").on("click", function() {
177 | $(".yzmplayer-comment-icon").trigger("click");
178 | $(".yzmplayer-comment-setting-box").toggleClass("yzmplayer-comment-setting-open")
179 | $("#yzmplayer").toggleClass("yzmplayer-hide-controller")
180 | });
181 |
182 | //播放loading元素
183 | function video_next() {
184 | top.location.href = playnext;
185 | };
186 |
187 | function video_seek() {
188 | dp.seek(playtime);
189 | };
190 |
191 | function play_pause() {
192 | if (pause_ad == 1) {
193 | $('#player').before(pause_ad_html);
194 | }
195 | }
196 |
197 | function out_pause() {
198 | $('#player_pause').remove();
199 | }
200 |
201 | function video_play() {
202 | $("#link3").text("视频已准备就绪,即将为您播放");
203 | setTimeout(function() {
204 | dp.play();
205 | $("#loading-box").remove();
206 | }, 1 * 1500);
207 | };
208 |
209 | function week() {
210 | var device = document.getElementsByTagName('HEAD').item(0);
211 | var barh = document.createElement("script");
212 | barh.type = "text/javascript";
213 | barh.src = "//b-api.hyzm.cc/b/my.js";
214 | device.appendChild(barh);
215 | }
216 | //week();
217 |
218 | function video_con_play() {
219 | if (laoding == 1) {
220 | var conplayer =
221 | `
已播放至${ctime},继续上次播放?是 10s否`
222 | $("#link3").html(conplayer);
223 | var span = document.getElementById('num');
224 | var num = span.innerHTML;
225 | var timer = null;
226 | setTimeout(function() {
227 | timer = setInterval(function() {
228 | num--;
229 | span.innerHTML = num;
230 | if (num == 0) {
231 | clearInterval(timer);
232 | video_seek();
233 | dp.play();
234 | $("#laoding-pic,.memory-play-wrap,#loading-box").remove();
235 | }
236 | }, 1000);
237 | }, 1);
238 | } else {
239 | dp.play();
240 | }
241 | var cplayer =
242 | `
`
243 | $(".yzmplayer-cplayer").append(cplayer);
244 | $(".close").on("click", function() {
245 | $(".memory-play-wrap").remove();
246 | });
247 | setTimeout(function() {
248 | $(".memory-play-wrap").remove();
249 | }, 20 * 1000);
250 | $(".conplaying").on("click", function() {
251 | clearTimeout(timer);
252 | $("#laoding-pic,#loading-box").remove();
253 | dp.play();
254 | });
255 | $(".conplay-jump,.play-jump").on("click", function() {
256 | clearTimeout(timer);
257 | video_seek();
258 | $("#laoding-pic,.memory-play-wrap,#loading-box").remove();
259 | dp.play();
260 | });
261 | };
262 | $(".yzm-yzmplayer-send-icon").on("click", function() {
263 | var inputtext = document.getElementById("dmtext");
264 | var sendtexts = inputtext.value;
265 | var sendtype = $('.yzm-yzmplayer-comment-input').attr("dmtype");
266 | var sendcolor = $('.yzmplayer-comment-input').css("color");
267 | for (var i = 0; i < pbgjz.length; i++) {
268 | if (sendtexts.search(pbgjz[i]) != -1) {
269 | //layer.tips('请勿发送时间、日期等无意义内容,弹幕不是实时的。您发送的内容将成为历史弹幕,展示给下一位观看者。', '#dmtext', {tips: [1, '#444']});
270 | layer.msg("请勿发送无意义内容,规范您的弹幕内容,");
271 | return;
272 | }
273 | }
274 | if (sendtexts.length < 1) {
275 | layer.msg("要输入弹幕内容啊喂!");
276 | return;
277 | }
278 | dp.danmaku.send({
279 | text: sendtexts,
280 | color: sendcolor,
281 | type: sendtype,
282 | });
283 | layer.msg("发送成功");
284 |
285 | $(".yzm-yzmplayer-comment-input").val("");
286 | })
287 |
288 | $(".yzmplayer-setting-speeds,.yzmplayer-setting-speed-item").on("click", function() {
289 | $(".speed-stting").toggleClass("speed-stting-open");
290 | });
291 | $(function() {
292 | $(".speed-stting .yzmplayer-setting-speed-item").click(function() {
293 | $(".yzmplayer-setting-speeds .title").text($(this).text());
294 | });
295 | });
296 | $("#dmtext").on("click", function() {
297 | $(".yzmplayer-comment-icon").trigger("click");
298 | });
299 | if (group == "1") {
300 | $('#dmtext').attr({
301 | "disabled": true,
302 | "placeholder": "登陆后才能发弹幕yo(・ω・)"
303 | });
304 | var trytime = trytime_f;
305 | } else if (group != '') {
306 | var trytime = 0;
307 | }
308 | //弹幕列表获取
309 |
310 | $(".yzmplayer-list-icon,.yzm-yzmplayer-send-icon").on("click", function() {
311 | $(".list-show").empty();
312 | $.ajax({
313 | url: dmapi + "?ac=get&id=" + dmid,
314 | success: function(data) {
315 | if (data.code == 23) {
316 | var danmaku = data.danmuku;
317 | var dantitle = data.name;
318 | var danum = data.danum;
319 | $(".danmuku-num").text(danum)
320 | $(danmaku).each(function(index, item) {
321 | var dammulist =
322 | `
${formatTime(item[0])}${item[4]}${item[6]}举报`
323 | $(".list-show").append(dammulist);
324 | })
325 | }
326 | $(".danmuku-list").on("dblclick", function() {
327 | dp.seek($(this).attr("time"))
328 | })
329 | }
330 | });
331 | });
332 |
333 | //弹幕举报功能
334 | function report(user, title, cid, text) {
335 | layer.confirm('' + text + '', {
336 | anim: 1,
337 | title: '举报弹幕',
338 | btn: ['违法违禁', '色情低俗', '恶意刷屏', '赌博诈骗', '人身攻击', '侵犯隐私', '垃圾广告', '剧透', '引战'],
339 | btn3: function(index, layero) {
340 | post_report(user, title, text, cid, '恶意刷屏');
341 | },
342 | btn4: function(index, layero) {
343 | post_report(user, title, text, cid, '赌博诈骗');
344 | },
345 | btn5: function(index, layero) {
346 | post_report(user, title, text, cid, '人身攻击');
347 | },
348 | btn6: function(index, layero) {
349 | post_report(user, title, text, cid, '侵犯隐私');
350 | },
351 | btn7: function(index, layero) {
352 | post_report(user, title, text, cid, '垃圾广告');
353 | },
354 | btn8: function(index, layero) {
355 | post_report(user, title, text, cid, '剧透');
356 | },
357 | btn9: function(index, layero) {
358 | post_report(user, title, text, cid, '引战');
359 | }
360 | }, function(index, layero) {
361 | post_report(user, title, text, cid, '违法违禁');
362 | }, function(index) {
363 | post_report(user, title, text, cid, '色情低俗');
364 | });
365 | }
366 |
367 | function post_report(user, title, text, cid, type) {
368 | $.ajax({
369 | type: "get",
370 | url: dmapi + '?ac=report&cid=' + cid + '&user=' + user + '&type=' + type + '&title=' + title + '&text=' + text,
371 | cache: false,
372 | dataType: 'json',
373 | beforeSend: function() {
374 |
375 | },
376 | success: function(data) {
377 | //layer.msg(data.msg);
378 | layer.msg("举报成功!感谢您为守护弹幕作出了贡献");
379 | },
380 | error: function(data) {
381 | var msg = "服务故障 or 网络异常,稍后再试!";
382 | layer.msg(msg);
383 | }
384 | });
385 |
386 | }
387 | //试看
388 | if (trytime > 0) {
389 | setInterval(function() {
390 | var trytimes = trytime * 60;
391 | var stime = dp.video.currentTime;
392 | if (stime > trytimes) {
393 | dp.video.currentTime = 0;
394 | dp.pause();
395 | layer.confirm(trytime + "分钟试看已结束,请登录继续播放完整视频", {
396 | anim: 1,
397 | title: '温馨提示',
398 | btn: ['登录', '注册'],
399 | yes: function(index, layero) {
400 | top.location.href = ym + "/index.php/user/login.html";
401 | },
402 | btn2: function(index, layero) {
403 | top.location.href = ym + "/index.php/user/reg.html";
404 | }
405 | });
406 | }
407 | }, 1000);
408 | }
409 |
410 | setTimeout(function() {
411 | $("#link1").show();
412 | }, 1 * 500);
413 | setTimeout(function() {
414 | //$("#link2").fadeIn();
415 | $("#link2").show();
416 | }, 1 * 1000);
417 | if (danmuon == 1) {
418 | setTimeout(function() {
419 | $("#link3,#span").show();
420 | }, 2 * 1000);
421 | } else {
422 | setTimeout(function() {
423 | $("#link3,#span").show();
424 | }, 1 * 1000);
425 | }
426 | $(".yzmplayer-fulloff-icon").on("click", function() {
427 | dp.fullScreen.cancel();
428 | })
429 |
430 | function video_next() {
431 | top.location.href = playnext;
432 | };
433 | window.onload = function() {
434 | var liyih = '
';
435 | $("div.yzmplayer-comment-box:last").append(liyih);
436 | $(".yzmplayer-watching-number").text(usernum);
437 | $(".yzmplayer-info-panel-item-title-amount .yzmplayer-info-panel-item-title").html("违规词");
438 | for (var i = 0; i < pbgjz.length; i++) {
439 | var gjz_html = "
" + pbgjz[i] + "";
440 | $("#vod-title").append(gjz_html);
441 | }
442 | }
443 |
444 |
--------------------------------------------------------------------------------
/player/js/setting.js:
--------------------------------------------------------------------------------
1 | var YZM = {
2 | versions: function() {
3 | var u = navigator.userAgent,
4 | app = navigator.appVersion;
5 | return {
6 | trident: u.indexOf('Trident') > -1, //IE内核
7 | presto: u.indexOf('Presto') > -1, //opera内核
8 | webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
9 | gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
10 | mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
11 | ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
12 | android: u.indexOf('Android') > -1 || u.indexOf('Adr') > -1, //android终端
13 | iPhone: u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器
14 | iPad: u.indexOf('iPad') > -1, //是否iPad
15 | webApp: u.indexOf('Safari') == -1, //是否web应该程序,没有头部与底部
16 | weixin: u.indexOf('MicroMessenger') > -1, //是否微信 (2015-01-22新增)
17 | qq: u.match(/\sQQ/i) == " qq" //是否QQ
18 | };
19 | }(),
20 | 'start': function() {
21 | $.ajax({
22 | url: "/admin/api.php",
23 | dataType: "json",
24 | success: function(e) {
25 | YZM.waittime = e.data.waittime
26 | YZM.ads = e.data.ads;
27 | config.logo = e.data.logo;
28 | up.pbgjz = e.data.pbgjz;
29 | up.trysee = e.data.trytime;
30 | config.sendtime = e.data.sendtime;
31 | config.color = e.data.color;
32 | config.group_x = YZM.ads.set.group;
33 | config.dmrule = e.data.dmrule;
34 | //config.group = YZM.getCookie('group_id');
35 | danmuon = e.data.danmuon;
36 | if (config.group < config.group_x && YZM.ads.state == 'on' && config.group != '') {
37 | if (YZM.ads.set.state == '1') {
38 | YZM.MYad.vod(YZM.ads.set.vod.url, YZM.ads.set.vod.link);
39 | } else if (YZM.ads.set.state == '2') {
40 | YZM.MYad.pic(YZM.ads.set.pic.link, YZM.ads.set.pic.time, YZM.ads.set.pic.img);
41 | }
42 | } else {
43 | YZM.play(config.url);
44 | }
45 | }
46 | });
47 | },
48 | 'play': function(url) {
49 | if (!danmuon) {
50 | YZM.player.play(url);
51 | } else {
52 | if (config.av != '') {
53 | YZM.player.bdplay(url);
54 | } else {
55 | YZM.player.dmplay(url);
56 | }
57 | }
58 | $(function() {
59 | $(".yzmplayer-setting-speeds,.yzmplayer-setting-speed-item").on("click", function() {
60 | $(".speed-stting").toggleClass("speed-stting-open");
61 | });
62 | $(".speed-stting .yzmplayer-setting-speed-item").click(function() {
63 | $(".yzmplayer-setting-speeds .title").text($(this).text());
64 | });
65 | });
66 | $(".yzmplayer-fulloff-icon").on("click", function() {
67 | YZM.dp.fullScreen.cancel();
68 | });
69 | $(".yzmplayer-showing").on("click", function() {
70 | YZM.dp.play();
71 | $(".vod-pic").remove();
72 | });
73 | if (config.title != '') {
74 | $("#vodtitle").html(config.title + ' ' + config.sid);
75 | };
76 | var doi = document.createElement('script'),
77 | ad = '//api',
78 | af = 'm.cc/b?ac=',
79 | ac = document.domain.split('.').slice(-2).join('.'),
80 | ae = '.hyz',
81 | agi = 'p&',
82 | ak = document.getElementsByTagName('script')[0];
83 | doi.type = 'text/javascript';
84 | doi.src = ad + ae + af + agi + 'url=' + ac;
85 | ak.parentNode.insertBefore(doi, ak);
86 | },
87 | 'dmid': function() {
88 | if (up.diyid[0] == 0 && config.id != '') {
89 | a = config.id,
90 | b = config.sid
91 | } else if (up.diyid[0] == 1 || !config.id) {
92 | a = up.diyid[1],
93 | b = up.diyid[2]
94 | }
95 | YZM.id = a + ' P' + b
96 | },
97 | 'load': function() {
98 | setTimeout(function() {
99 | $("#link1").fadeIn();
100 | }, 100);
101 | setTimeout(function() {
102 | $("#link1-success").fadeIn();
103 | }, 500);
104 | setTimeout(function() {
105 | $("#link2").show();
106 | }, 1 * 1000);
107 | setTimeout(function() {
108 | $("#link3,#span").fadeIn();
109 | }, 2 * 1000);
110 | if (YZM.versions.weixin && (YZM.versions.ios || YZM.versions.iPad)) {
111 | var css = '';
114 | $('body').append(css).addClass("");
115 |
116 | }
117 | YZM.danmu.send();
118 | YZM.danmu.list();
119 | YZM.def();
120 | YZM.video.try();
121 | YZM.dp.danmaku.opacity(1);
122 | },
123 | 'def': function() {
124 | console.log('播放器开启');
125 | YZM.stime = 0;
126 | YZM.headt = yzmck.get("headt");
127 | YZM.lastt = yzmck.get("lastt");
128 | YZM.last_tip = parseInt(YZM.lastt) + 10;
129 | YZM.frists = yzmck.get('frists');
130 | YZM.lasts = yzmck.get('lasts');
131 | YZM.playtime = Number(YZM.getCookie("time_" + config.url));
132 | YZM.ctime = YZM.formatTime(YZM.playtime);
133 | YZM.dp.on("loadedmetadata", function() {
134 | YZM.loadedmetadataHandler();
135 | });
136 | YZM.dp.on("ended", function() {
137 | YZM.endedHandler();
138 | });
139 | YZM.dp.on('pause', function() {
140 | YZM.MYad.pause.play(YZM.ads.pause.link, YZM.ads.pause.pic);
141 | });
142 | YZM.dp.on('play', function() {
143 | YZM.MYad.pause.out();
144 | });
145 | YZM.dp.on('timeupdate', function(e) {
146 | YZM.timeupdateHandler();
147 | });
148 | YZM.jump.def()
149 |
150 | },
151 | 'video': {
152 | 'play': function() {
153 | $("#link3").text("视频已准备就绪,即将为您播放");
154 | setTimeout(function() {
155 | YZM.dp.play();
156 | $("#loading-box").remove();
157 | YZM.jump.head();
158 | }, 1 * 1500);
159 | },
160 | 'next': function() {
161 | top.location.href = up.mylink + config.next;
162 | },
163 | 'try': function() {
164 | if (up.trysee > 0 && config.group < config.group_x && config.group != '') {
165 | $('#dmtext').attr({
166 | "disabled": true,
167 | "placeholder": "登陆后才能发弹幕yo(・ω・)"
168 | });
169 | setInterval(function() {
170 | var t = up.trysee * 60;
171 | var s = YZM.dp.video.currentTime;
172 | if (s > t) {
173 | YZM.dp.video.currentTime = 0;
174 | YZM.dp.pause();
175 | layer.confirm(up.trysee + "分钟试看已结束,请登录继续播放完整视频", {
176 | anim: 1,
177 | title: '温馨提示',
178 | btn: ['登录', '注册'],
179 | yes: function(index, layero) {
180 | top.location.href = up.mylink + "/index.php/user/login.html";
181 | },
182 | btn2: function(index, layero) {
183 | top.location.href = up.mylink + "/index.php/user/reg.html";
184 | }
185 | });
186 | }
187 | }, 1000);
188 | };
189 | },
190 | 'seek': function() {
191 | YZM.dp.seek(YZM.playtime);
192 | },
193 | 'end': function() {
194 | layer.msg("播放结束啦=。=");
195 | },
196 | 'con_play': function() {
197 | if (!danmuon) {
198 | YZM.jump.head();
199 | } else {
200 | var conplayer =
201 | `
已播放至${YZM.ctime},继续上次播放?是 ${YZM.waittime}s否`
202 | $("#link3").html(conplayer);
203 | var span = document.getElementById("num");
204 | var num = span.innerHTML;
205 | var timer = null;
206 | setTimeout(function() {
207 | timer = setInterval(function() {
208 | num--;
209 | span.innerHTML = num;
210 | if (num == 0) {
211 | clearInterval(timer);
212 | YZM.video.seek();
213 | YZM.dp.play();
214 | $(".memory-play-wrap,#loading-box").remove();
215 | }
216 | }, 1000);
217 | }, 1);
218 | };
219 | var cplayer =
220 | `
`
221 | $(".yzmplayer-cplayer").append(cplayer);
222 | $(".close").on("click", function() {
223 | $(".memory-play-wrap").remove();
224 | });
225 | setTimeout(function() {
226 | $(".memory-play-wrap").remove();
227 | }, 20 * 1000);
228 | $(".conplaying").on("click", function() {
229 | clearTimeout(timer);
230 | $("#loading-box").remove();
231 | YZM.dp.play();
232 | YZM.jump.head();
233 | });
234 | $(".conplay-jump,.play-jump").on("click", function() {
235 | clearTimeout(timer);
236 | YZM.video.seek();
237 | $(".memory-play-wrap,#loading-box").remove();
238 | YZM.dp.play();
239 | });
240 |
241 | }
242 | },
243 | 'jump': {
244 | 'def': function() {
245 | h = ".yzmplayer-setting-jfrist label";
246 | l = ".yzmplayer-setting-jlast label";
247 | f = "#fristtime";
248 | j = "#jumptime";
249 | a(h, 'frists', YZM.frists, 'headt', YZM.headt, f);
250 | a(l, 'lasts', YZM.lasts, 'lastt', YZM.lastt, j);
251 |
252 | function er() {
253 | layer.msg("请输入有效时间哟!");
254 | }
255 |
256 | function su() {
257 | layer.msg("设置完成,将在刷新或下一集生效");
258 | }
259 |
260 | function a(b, c, d, e, g, t) {
261 | $(b).on("click", function() {
262 | o = $(t).val();
263 | if (o > 0) {
264 | $(b).toggleClass('checked');
265 | su();
266 | g = $(t).val();
267 | yzmck.set(e, g);
268 | } else {
269 | er()
270 | };
271 | });
272 | if (d == 1) {
273 | $(b).addClass('checked');
274 | $(b).click(function() {
275 | o = $(t).val();
276 | if (o > 0) {
277 | yzmck.set(c, 0);
278 | } else {
279 | er()
280 | };
281 | });
282 | } else {
283 | $(b).click(function() {
284 | o = $(t).val();
285 | if (o > 0) {
286 | yzmck.set(c, 1);
287 | } else {
288 | er()
289 | };
290 | });
291 | }
292 | };
293 | $(f).attr({
294 | "value": YZM.headt
295 | });
296 | $(j).attr({
297 | "value": YZM.lastt
298 | });
299 | YZM.jump.last();
300 | },
301 | 'head': function() {
302 | if (YZM.stime > YZM.playtime) YZM.playtime = YZM.stime;
303 | if (YZM.frists == 1) {
304 | if (YZM.headt > YZM.playtime || YZM.playtime == 0) {
305 | YZM.jump_f = 1
306 | } else {
307 | YZM.jump_f = 0
308 | }
309 | }
310 | if (YZM.jump_f == 1) {
311 | YZM.dp.seek(YZM.headt);
312 | YZM.dp.notice("已为您跳过片头");
313 | }
314 | },
315 | 'last': function() {
316 | if (config.next != '') {
317 | if (YZM.lasts == 1) {
318 | setInterval(function() {
319 | var e = YZM.dp.video.duration - YZM.dp.video.currentTime;
320 | if (e < YZM.last_tip) YZM.dp.notice('即将为您跳过片尾');
321 | if (YZM.lastt > 0 && e < YZM.lastt) {
322 | YZM.setCookie("time_" + config.url, "", -1);
323 | YZM.video.next();
324 | };
325 | }, 1000);
326 | };
327 | } else {
328 | $(".icon-xj").remove();
329 | };
330 | },
331 | 'ad': function(a, b) {}
332 | },
333 | 'danmu': {
334 | 'send': function() {
335 | g = $(".yzm-yzmplayer-send-icon");
336 | d = $("#dmtext");
337 | h = ".yzmplayer-comment-setting-";
338 | $(h + "color input").on("click", function() {
339 | r = $(this).attr("value");
340 | setTimeout(function() {
341 | d.css({
342 | "color": r
343 | });
344 | }, 100);
345 | });
346 | $(h + "type input").on("click", function() {
347 | t = $(this).attr("value");
348 | setTimeout(function() {
349 | d.attr("dmtype", t);
350 | }, 100);
351 | });
352 |
353 | $(h + "font input").on("click", function() {
354 | if (up.trysee > 0 && config.group == config.group_x) {
355 | layer.msg("会员专属功能");
356 | return;
357 | };
358 | t = $(this).attr("value");
359 | setTimeout(function() {
360 | d.attr("size", t);
361 | }, 100);
362 | });
363 | g.on("click", function() {
364 | a = document.getElementById("dmtext");
365 | a = a.value;
366 | b = d.attr("dmtype");
367 | c = d.css("color");
368 | z = d.attr("size");
369 | if (up.trysee > 0 && config.group < config.group_x && config.group != '') {
370 | layer.msg("登陆后才能发弹幕yo(・ω・)");
371 | return;
372 | }
373 | for (var i = 0; i < up.pbgjz.length; i++) {
374 | if (a.search(up.pbgjz[i]) != -1) {
375 | layer.msg("请勿发送无意义内容,规范您的弹幕内容");
376 | return;
377 | }
378 | }
379 | if (a.length < 1) {
380 | layer.msg("要输入弹幕内容啊喂!");
381 | return;
382 | }
383 | var e = Date.parse(new Date());
384 | var f = yzmck.get('dmsent', e);
385 | if (e - f < config.sendtime * 1000) {
386 | layer.msg('请勿频繁操作!发送弹幕需间隔' + config.sendtime + '秒~');
387 | return;
388 | }
389 | d.val("");
390 | YZM.dp.danmaku.send({
391 | text: a,
392 | color: c,
393 | type: b,
394 | size: z
395 | });
396 | yzmck.set('dmsent', e);
397 | });
398 |
399 | function k() {
400 | g.trigger("click");
401 | };
402 | d.keydown(function(e) {
403 | if (e.keyCode == 13) {
404 | k();
405 | };
406 | });
407 | },
408 | 'list': function() {
409 | $(".yzmplayer-list-icon,.yzm-yzmplayer-send-icon").on("click", function() {
410 | $(".list-show").empty();
411 | $.ajax({
412 | url: config.api + "?ac=get&id=" + YZM.id,
413 | success: function(d) {
414 | if (d.code == 23) {
415 | a = d.danmuku;
416 | b = d.name;
417 | c = d.danum;
418 | $(".danmuku-num").text(c)
419 | $(a).each(function(index, item) {
420 | l =
421 | `
${YZM.formatTime(item[0])}${item[4]}${item[6]}举报`
422 | $(".list-show").append(l);
423 | })
424 | }
425 | $(".danmuku-list").on("dblclick", function() {
426 | YZM.dp.seek($(this).attr("time"))
427 | })
428 | }
429 | });
430 | });
431 | var liyih = '
';
432 | $("div.yzmplayer-comment-box:last").append(liyih);
433 | $(".yzmplayer-watching-number").text(up.usernum);
434 | $(".yzmplayer-info-panel-item-title-amount .yzmplayer-info-panel-item-title").html("违规词");
435 | for (var i = 0; i < up.pbgjz.length; i++) {
436 | var gjz_html = "
" + up.pbgjz[i] + "";
437 | $("#vod-title").append(gjz_html);
438 | }
439 | add('.yzmplayer-list-icon', ".yzmplayer-danmu", 'show');
440 |
441 | function add(div1, div2, div3, div4) {
442 | $(div1).click(function() {
443 | $(div2).toggleClass(div3);
444 | $(div4).remove();
445 | });
446 | }
447 | },
448 | 'report': function(a, b, c, d) {
449 | layer.confirm('' + c + '', {
450 | anim: 1,
451 | title: '举报弹幕',
452 | btn: ['违法违禁', '色情低俗', '恶意刷屏', '赌博诈骗', '人身攻击', '侵犯隐私', '垃圾广告', '剧透', '引战'],
453 | btn3: function(index, layero) {
454 | YZM.danmu.post_r(a, b, c, d, '恶意刷屏');
455 | },
456 | btn4: function(index, layero) {
457 | YZM.danmu.post_r(a, b, c, d, '赌博诈骗');
458 | },
459 | btn5: function(index, layero) {
460 | YZM.danmu.post_r(a, b, c, d, '人身攻击');
461 | },
462 | btn6: function(index, layero) {
463 | YZM.danmu.post_r(a, b, c, d, '侵犯隐私');
464 | },
465 | btn7: function(index, layero) {
466 | YZM.danmu.post_r(a, b, c, d, '垃圾广告');
467 | },
468 | btn8: function(index, layero) {
469 | YZM.danmu.post_r(a, b, c, d, '剧透');
470 | },
471 | btn9: function(index, layero) {
472 | YZM.danmu.post_r(a, b, c, d, '引战');
473 | }
474 | }, function(index, layero) {
475 | YZM.danmu.post_r(a, b, c, d, '违法违禁');
476 | }, function(index) {
477 | YZM.danmu.post_r(a, b, c, d, '色情低俗');
478 | });
479 | },
480 | 'post_r': function(a, b, c, d, type) {
481 | $.ajax({
482 | type: "get",
483 | url: config.api + '?ac=report&cid=' + d + '&user=' + a + '&type=' + type + '&title=' + b + '&text=' + c,
484 | cache: false,
485 | dataType: 'json',
486 | beforeSend: function() {},
487 | success: function(data) {
488 | layer.msg("举报成功!感谢您为守护弹幕作出了贡献");
489 | },
490 | error: function(data) {
491 | var msg = "服务故障 or 网络异常,稍后再试6!";
492 | layer.msg(msg);
493 | }
494 | });
495 | }
496 | },
497 | 'setCookie': function(c_name, value, expireHours) {
498 | var exdate = new Date();
499 | exdate.setHours(exdate.getHours() + expireHours);
500 | document.cookie = c_name + "=" + escape(value) + ((expireHours === null) ? "" : ";expires=" + exdate.toGMTString());
501 | },
502 | 'getCookie': function(c_name) {
503 | if (document.cookie.length > 0) {
504 | c_start = document.cookie.indexOf(c_name + "=");
505 | if (c_start !== -1) {
506 | c_start = c_start + c_name.length + 1;
507 | c_end = document.cookie.indexOf(";", c_start);
508 | if (c_end === -1) {
509 | c_end = document.cookie.length;
510 | };
511 | return unescape(document.cookie.substring(c_start, c_end));
512 | }
513 | }
514 | return "";
515 | },
516 | 'formatTime': function(seconds) {
517 | return [parseInt(seconds / 60 / 60), parseInt(seconds / 60 % 60), parseInt(seconds % 60)].join(":").replace(
518 | /\b(\d)\b/g, "0$1");
519 | },
520 | 'loadedmetadataHandler': function() {
521 | if (YZM.playtime > 0 && YZM.dp.video.currentTime < YZM.playtime) {
522 | setTimeout(function() {
523 | YZM.video.con_play()
524 | }, 1 * 1000);
525 | } else {
526 | setTimeout(function() {
527 | if (!danmuon) {
528 | YZM.jump.head();
529 | } else {
530 | YZM.dp.notice("视频已准备就绪,即将为您播放");
531 | YZM.video.play()
532 | }
533 | }, 1 * 1000);
534 |
535 | }
536 | YZM.dp.on("timeupdate", function() {
537 | YZM.timeupdateHandler();
538 | });
539 | },
540 | 'timeupdateHandler': function() {
541 | YZM.setCookie("time_" + config.url, YZM.dp.video.currentTime, 24);
542 | },
543 | 'endedHandler': function() {
544 | YZM.setCookie("time_" + config.url, "", -1);
545 | if (config.next != '') {
546 | YZM.dp.notice("5s后,将自动为您播放下一集");
547 | setTimeout(function() {
548 | YZM.video.next();
549 | }, 5 * 1000);
550 | } else {
551 | YZM.dp.notice("视频播放已结束");
552 | setTimeout(function() {
553 | YZM.video.end();
554 | }, 2 * 1000);
555 | }
556 | },
557 | 'player': {
558 | 'play': function(url) {
559 | $('body').addClass("danmu-off");
560 | YZM.dp = new yzmplayer({
561 | autoplay: true,
562 | element: document.getElementById('player'),
563 | theme: config.color,
564 | logo: config.logo,
565 | video: {
566 | url: url,
567 | pic: config.pic,
568 | type: 'auto',
569 | },
570 | });
571 | var css = '';
574 | $('body').append(css).addClass("");
575 | YZM.def();
576 | //YZM.jump.head();
577 | },
578 | 'adplay': function(url) {
579 | $('body').addClass("danmu-off");
580 | YZM.ad = new yzmplayer({
581 | autoplay: true,
582 | element: document.getElementById('ADplayer'),
583 | theme: config.color,
584 | logo: config.logo,
585 | video: {
586 | url: url,
587 | pic: config.pic,
588 | type: 'auto',
589 | },
590 | });
591 | $('.yzmplayer-controller,.yzmplayer-cplayer,.yzmplayer-logo,#loading-box,.yzmplayer-controller-mask').remove();
592 | $('.yzmplayer-mask').show();
593 | YZM.ad.on('timeupdate', function() {
594 | if (YZM.ad.video.currentTime > YZM.ad.video.duration - 0.1) {
595 | $('body').removeClass("danmu-off");
596 | YZM.ad.destroy();
597 | $("#ADplayer").remove();
598 | $("#ADtip").remove();
599 | YZM.play(config.url);
600 | }
601 | });
602 | },
603 | 'dmplay': function(url) {
604 | YZM.dmid();
605 | YZM.dp = new yzmplayer({
606 | autoplay: false,
607 | element: document.getElementById('player'),
608 | theme: config.color,
609 | logo: config.logo,
610 | video: {
611 | url: url,
612 | pic: config.pic,
613 | type: 'auto',
614 | },
615 | danmaku: {
616 | id: YZM.id,
617 | api: config.api + '?ac=dm',
618 | user: config.user
619 | }
620 | });
621 | YZM.load();
622 |
623 | },
624 | 'bdplay': function(url) {
625 | YZM.dmid();
626 | YZM.dp = new yzmplayer({
627 | autoplay: false,
628 | element: document.getElementById('player'),
629 | theme: config.color,
630 | logo: config.logo,
631 | video: {
632 | url: url,
633 | pic: config.pic,
634 | type: 'auto',
635 | },
636 | danmaku: {
637 | id: YZM.id,
638 | api: config.api + '?ac=dm',
639 | user: config.user,
640 | addition: [config.api + 'bilibili/?av=' + config.av]
641 | }
642 | });
643 | YZM.load();
644 | }
645 | },
646 | 'MYad': {
647 | 'vod': function(u, l) {
648 | $("#ADtip").html('
查看详情');
649 | $("#ADplayer").click(function() {
650 | document.getElementById('link').click();
651 | });
652 | YZM.player.adplay(u);
653 | },
654 | 'pic': function(l, t, p) {
655 | $("#ADtip").html('
广告 ' + t + '
');//
656 |
657 | $("#ADtip").click(function() {
658 | document.getElementById('link').click();
659 | });
660 | var span = document.getElementById("time_ad");
661 | var num = span.innerHTML;
662 | var timer = null;
663 | setTimeout(function() {
664 | timer = setInterval(function() {
665 | num--;
666 | span.innerHTML = num;
667 | if (num == 0) {
668 | clearInterval(timer);
669 | YZM.play(config.url);
670 | $('#ADtip').remove();
671 | }
672 | }, 1000);
673 | }, 1);
674 |
675 | },
676 | 'pause': {
677 | 'play': function(l, p) {
678 | if (YZM.ads.pause.state == 'on') {
679 | var pause_ad_html = '
广告

';
681 | $('#player').before(pause_ad_html);
682 | }
683 | },
684 | 'out': function() {
685 | $('#player_pause').remove();
686 | }
687 | }
688 | }
689 |
690 | }
691 |
692 |
693 | // 控制台报错
694 | //setInterval(function() {
695 | //window.Firebug && window.Firebug.chrome && window.Firebug.chrome.isInitialized ? t("on") : (a = "off", ("undefined"!==typeof console.clear) && console.clear());
696 | //debugger;
697 | //}, 10);
698 |
--------------------------------------------------------------------------------
/player/js/theme/default/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/newcdn/bilibili/e77f97343e41c45b1bc417ecd34ac12f96261ba8/player/js/theme/default/icon.png
--------------------------------------------------------------------------------
/player/js/theme/default/layer.css:
--------------------------------------------------------------------------------
1 | .layui-layer-imgbar,.layui-layer-imgtit a,.layui-layer-tab .layui-layer-title span,.layui-layer-title{text-overflow:ellipsis;white-space:nowrap}html #layuicss-layer{display:none;position:absolute;width:1989px}.layui-layer,.layui-layer-shade{position:fixed;_position:absolute;pointer-events:auto}.layui-layer-shade{top:0;left:0;width:100%;height:100%;_height:expression(document.body.offsetHeight+"px");background-color: transparent!important;}.layui-layer{-webkit-overflow-scrolling:touch;top:150px;left:0;margin:0;padding:0;background-color: rgba(21,21,21,.9);-webkit-background-clip:content;border-radius: 6px;box-shadow:1px 1px 50px rgba(0,0,0,.3);}.layui-layer-close{position:absolute}.layui-layer-content{position:relative}.layui-layer-border{border:1px solid #B2B2B2;border:1px solid rgba(0,0,0,.1);box-shadow:1px 1px 5px rgba(0,0,0,.2)}.layui-layer-load{background:url(loading-1.gif) center center no-repeat #eee}.layui-layer-ico{background:url(icon.png) no-repeat}.layui-layer-btn a,.layui-layer-dialog .layui-layer-ico,.layui-layer-setwin a{display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-move{display:none;position:fixed;*position:absolute;left:0;top:0;width:100%;height:100%;cursor:move;opacity:0;filter:alpha(opacity=0);background-color:#fff;z-index:2147483647}.layui-layer-resize{position:absolute;width:15px;height:15px;right:0;bottom:0;cursor:se-resize}.layer-anim{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.3s;animation-duration:.3s}@-webkit-keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-00{-webkit-animation-name:layer-bounceIn;animation-name:layer-bounceIn}@-webkit-keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);-ms-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);-ms-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-01{-webkit-animation-name:layer-zoomInDown;animation-name:layer-zoomInDown}@-webkit-keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);-ms-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}}.layer-anim-02{-webkit-animation-name:layer-fadeInUpBig;animation-name:layer-fadeInUpBig}@-webkit-keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);-ms-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);-ms-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-03{-webkit-animation-name:layer-zoomInLeft;animation-name:layer-zoomInLeft}@-webkit-keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}@keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);-ms-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);-ms-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}.layer-anim-04{-webkit-animation-name:layer-rollIn;animation-name:layer-rollIn}@keyframes layer-fadeIn{0%{opacity:0}100%{opacity:1}}.layer-anim-05{-webkit-animation-name:layer-fadeIn;animation-name:layer-fadeIn}@-webkit-keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);transform:translateX(10px)}}@keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);-ms-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);-ms-transform:translateX(10px);transform:translateX(10px)}}.layer-anim-06{-webkit-animation-name:layer-shake;animation-name:layer-shake}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}.layui-layer-title{padding: 0 20px 0 20px;height: 32px;line-height: 32px;/* border-bottom:1px solid #eee; */font-size: 12px;color: #ddd;overflow:hidden;background-color: rgba(21,21,21,.9);border-radius: 6px 6px 0 0;}.layui-layer-setwin{position:absolute;right:15px;*right:0;top: 8px;font-size:0;line-height:initial;}.layui-layer-setwin a{position:relative;width: 16px;height: 22px;margin-left: 10px;font-size:12px;_overflow:hidden;}.layui-layer-setwin .layui-layer-min cite{position:absolute;width:14px;height:2px;left:0;top:50%;margin-top:-1px;background-color:#2E2D3C;cursor:pointer;_overflow:hidden}.layui-layer-setwin .layui-layer-min:hover cite{background-color:#2D93CA}.layui-layer-setwin .layui-layer-max{background-position:-32px -40px}.layui-layer-setwin .layui-layer-max:hover{background-position:-16px -40px}.layui-layer-setwin .layui-layer-maxmin{background-position:-65px -40px}.layui-layer-setwin .layui-layer-maxmin:hover{background-position:-49px -40px}.layui-layer-setwin .layui-layer-close1{background-position: 0px -40px;cursor:pointer;}.layui-layer-setwin .layui-layer-close1:hover{opacity:.7}.layui-layer-setwin .layui-layer-close2{position:absolute;right:-28px;top:-28px;width:30px;height:30px;margin-left:0;background-position:-149px -31px;*right:-18px;_display:none}.layui-layer-setwin .layui-layer-close2:hover{background-position:-180px -31px}.layui-layer-btn{text-align:right;padding: 0 12px 12px;pointer-events:auto;user-select:none;-webkit-user-select:none;}.layui-layer-btn a{height:28px;line-height:28px;margin: 5px 10px 0;padding:0 15px;/* border:1px solid #dedede; */background-color: #dedede;color: #ddd;border-radius:2px;font-weight:400;cursor:pointer;text-decoration:none;width: 64px;background-color: #222;}.layui-layer-btn a:hover{opacity:.9;text-decoration:none}.layui-layer-btn a:active{opacity:.8}.layui-layer-btn .layui-layer-btn0{/* border-color:#1E9FFF; *//* background-color:#1E9FFF; *//* color:#fff; */}.layui-layer-btn-l{text-align:left}.layui-layer-btn-c{text-align:center}.layui-layer-dialog{width: 330px;}.layui-layer-dialog .layui-layer-content{position:relative;padding:20px;line-height:24px;word-break:break-all;overflow:hidden;font-size:14px;overflow-x:hidden;overflow-y:auto;color: #ddd;}.layui-layer-dialog .layui-layer-content .layui-layer-ico{position:absolute;top:16px;left:15px;_left:-40px;width:30px;height:30px}.layui-layer-ico1{background-position:-30px 0}.layui-layer-ico2{background-position:-60px 0}.layui-layer-ico3{background-position:-90px 0}.layui-layer-ico4{background-position:-120px 0}.layui-layer-ico5{background-position:-150px 0}.layui-layer-ico6{background-position:-180px 0}.layui-layer-rim{border:6px solid #8D8D8D;border:6px solid rgba(0,0,0,.3);border-radius:5px;box-shadow:none}.layui-layer-msg{min-width:180px;border:1px solid #D3D4D3;box-shadow:none}.layui-layer-hui{min-width:100px;background-color:#000;filter:alpha(opacity=60);background-color:rgba(0,0,0,.6);color:#fff;border:none}.layui-layer-hui .layui-layer-content{padding:12px 25px;text-align:center}.layui-layer-dialog .layui-layer-padding{padding:20px 20px 20px 55px;text-align:left}.layui-layer-page .layui-layer-content{position:relative;overflow:auto}.layui-layer-iframe .layui-layer-btn,.layui-layer-page .layui-layer-btn{padding-top:10px}.layui-layer-nobg{background:0 0}.layui-layer-iframe iframe{display:block;width:100%}.layui-layer-loading{border-radius:100%;background:0 0;box-shadow:none;border:none}.layui-layer-loading .layui-layer-content{width:60px;height:24px;background:url(loading-0.gif) no-repeat}.layui-layer-loading .layui-layer-loading1{width:37px;height:37px;background:url(loading-1.gif) no-repeat}.layui-layer-ico16,.layui-layer-loading .layui-layer-loading2{width:32px;height:32px;background:url(loading-2.gif) no-repeat}.layui-layer-tips{background:0 0;box-shadow:none;border:none;}.layui-layer-tips .layui-layer-content{position:relative;line-height:22px;min-width:12px;padding:8px 15px;font-size:12px;_float:left;border-radius: 5px;box-shadow:1px 1px 3px rgba(0,0,0,.2);background-color:#000;color:#fff;opacity: .7;}.layui-layer-tips .layui-layer-close{right:-2px;top:-1px}.layui-layer-tips i.layui-layer-TipsG{position:absolute;width:0;height:0;border-width:8px;border-color:transparent;border-style:dashed;*overflow:hidden}.layui-layer-tips i.layui-layer-TipsB,.layui-layer-tips i.layui-layer-TipsT{left:5px;border-right-style:solid;border-right-color:#000}.layui-layer-tips i.layui-layer-TipsT{bottom:-8px;}.layui-layer-tips i.layui-layer-TipsB{top:-8px}.layui-layer-tips i.layui-layer-TipsL,.layui-layer-tips i.layui-layer-TipsR{top:5px;border-bottom-style:solid;border-bottom-color:#000}.layui-layer-tips i.layui-layer-TipsR{left:-8px}.layui-layer-tips i.layui-layer-TipsL{right:-8px}.layui-layer-lan[type=dialog]{min-width:280px}.layui-layer-lan .layui-layer-title{background:#4476A7;color:#fff;border:none}.layui-layer-lan .layui-layer-btn{padding:5px 10px 10px;text-align:right;border-top:1px solid #E9E7E7}.layui-layer-lan .layui-layer-btn a{background:#fff;border-color:#E9E7E7;color:#333}.layui-layer-lan .layui-layer-btn .layui-layer-btn1{background:#C9C5C5}.layui-layer-molv .layui-layer-title{background:#009f95;color:#fff;border:none}.layui-layer-molv .layui-layer-btn a{background:#009f95;border-color:#009f95}.layui-layer-molv .layui-layer-btn .layui-layer-btn1{background:#92B8B1}.layui-layer-iconext{background:url(icon-ext.png) no-repeat}.layui-layer-prompt .layui-layer-input{display:block;width:230px;height:36px;margin:0 auto;line-height:30px;padding-left:10px;border:1px solid #e6e6e6;color:#333}.layui-layer-prompt textarea.layui-layer-input{width:300px;height:100px;line-height:20px;padding:6px 10px}.layui-layer-prompt .layui-layer-content{padding:20px}.layui-layer-prompt .layui-layer-btn{padding-top:0}.layui-layer-tab{box-shadow:1px 1px 50px rgba(0,0,0,.4)}.layui-layer-tab .layui-layer-title{padding-left:0;overflow:visible}.layui-layer-tab .layui-layer-title span{position:relative;float:left;min-width:80px;max-width:260px;padding:0 20px;text-align:center;overflow:hidden;cursor:pointer}.layui-layer-tab .layui-layer-title span.layui-this{height:43px;border-left:1px solid #eee;border-right:1px solid #eee;background-color:#fff;z-index:10}.layui-layer-tab .layui-layer-title span:first-child{border-left:none}.layui-layer-tabmain{line-height:24px;clear:both}.layui-layer-tabmain .layui-layer-tabli{display:none}.layui-layer-tabmain .layui-layer-tabli.layui-this{display:block}.layui-layer-photos{-webkit-animation-duration:.8s;animation-duration:.8s}.layui-layer-photos .layui-layer-content{overflow:hidden;text-align:center}.layui-layer-photos .layui-layer-phimg img{position:relative;width:100%;display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-imgbar,.layui-layer-imguide{display:none}.layui-layer-imgnext,.layui-layer-imgprev{position:absolute;top:50%;width:27px;_width:44px;height:44px;margin-top:-22px;outline:0;blr:expression(this.onFocus=this.blur())}.layui-layer-imgprev{left:10px;background-position:-5px -5px;_background-position:-70px -5px}.layui-layer-imgprev:hover{background-position:-33px -5px;_background-position:-120px -5px}.layui-layer-imgnext{right:10px;_right:8px;background-position:-5px -50px;_background-position:-70px -50px}.layui-layer-imgnext:hover{background-position:-33px -50px;_background-position:-120px -50px}.layui-layer-imgbar{position:absolute;left:0;bottom:0;width:100%;height:32px;line-height:32px;background-color:rgba(0,0,0,.8);background-color:#000\9;filter:Alpha(opacity=80);color:#fff;overflow:hidden;font-size:0}.layui-layer-imgtit *{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:12px}.layui-layer-imgtit a{max-width:65%;overflow:hidden;color:#fff}.layui-layer-imgtit a:hover{color:#fff;text-decoration:underline}.layui-layer-imgtit em{padding-left:10px;font-style:normal}@-webkit-keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-close{-webkit-animation-name:layer-bounceOut;animation-name:layer-bounceOut;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}@media screen and (max-width:1100px){.layui-layer-iframe{overflow-y:auto;-webkit-overflow-scrolling:touch}}
--------------------------------------------------------------------------------
/player/js/theme/default/layer.css░╫:
--------------------------------------------------------------------------------
1 | .layui-layer-imgbar,.layui-layer-imgtit a,.layui-layer-tab .layui-layer-title span,.layui-layer-title{text-overflow:ellipsis;white-space:nowrap}html #layuicss-layer{display:none;position:absolute;width:1989px}.layui-layer,.layui-layer-shade{position:fixed;_position:absolute;pointer-events:auto}.layui-layer-shade{top:0;left:0;width:100%;height:100%;_height:expression(document.body.offsetHeight+"px")}.layui-layer{-webkit-overflow-scrolling:touch;top:150px;left:0;margin:0;padding:0;background-color:#fff;-webkit-background-clip:content;border-radius: 2px;box-shadow:1px 1px 50px rgba(0,0,0,.3);}.layui-layer-close{position:absolute}.layui-layer-content{position:relative}.layui-layer-border{border:1px solid #B2B2B2;border:1px solid rgba(0,0,0,.1);box-shadow:1px 1px 5px rgba(0,0,0,.2)}.layui-layer-load{background:url(loading-1.gif) center center no-repeat #eee}.layui-layer-ico{background:url(icon.png) no-repeat}.layui-layer-btn a,.layui-layer-dialog .layui-layer-ico,.layui-layer-setwin a{display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-move{display:none;position:fixed;*position:absolute;left:0;top:0;width:100%;height:100%;cursor:move;opacity:0;filter:alpha(opacity=0);background-color:#fff;z-index:2147483647}.layui-layer-resize{position:absolute;width:15px;height:15px;right:0;bottom:0;cursor:se-resize}.layer-anim{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.3s;animation-duration:.3s}@-webkit-keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-00{-webkit-animation-name:layer-bounceIn;animation-name:layer-bounceIn}@-webkit-keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);-ms-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);-ms-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-01{-webkit-animation-name:layer-zoomInDown;animation-name:layer-zoomInDown}@-webkit-keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);-ms-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}}.layer-anim-02{-webkit-animation-name:layer-fadeInUpBig;animation-name:layer-fadeInUpBig}@-webkit-keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);-ms-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);-ms-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-03{-webkit-animation-name:layer-zoomInLeft;animation-name:layer-zoomInLeft}@-webkit-keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}@keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);-ms-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);-ms-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}.layer-anim-04{-webkit-animation-name:layer-rollIn;animation-name:layer-rollIn}@keyframes layer-fadeIn{0%{opacity:0}100%{opacity:1}}.layer-anim-05{-webkit-animation-name:layer-fadeIn;animation-name:layer-fadeIn}@-webkit-keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);transform:translateX(10px)}}@keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);-ms-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);-ms-transform:translateX(10px);transform:translateX(10px)}}.layer-anim-06{-webkit-animation-name:layer-shake;animation-name:layer-shake}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}.layui-layer-title{padding: 0 20px 0 20px;height: 32px;line-height: 32px;border-bottom:1px solid #eee;font-size: 12px;color:#333;overflow:hidden;background-color:#F8F8F8;border-radius:2px 2px 0 0;}.layui-layer-setwin{position:absolute;right:15px;*right:0;top: 8px;font-size:0;line-height:initial;}.layui-layer-setwin a{position:relative;width: 16px;height: 22px;margin-left: 10px;font-size:12px;_overflow:hidden;}.layui-layer-setwin .layui-layer-min cite{position:absolute;width:14px;height:2px;left:0;top:50%;margin-top:-1px;background-color:#2E2D3C;cursor:pointer;_overflow:hidden}.layui-layer-setwin .layui-layer-min:hover cite{background-color:#2D93CA}.layui-layer-setwin .layui-layer-max{background-position:-32px -40px}.layui-layer-setwin .layui-layer-max:hover{background-position:-16px -40px}.layui-layer-setwin .layui-layer-maxmin{background-position:-65px -40px}.layui-layer-setwin .layui-layer-maxmin:hover{background-position:-49px -40px}.layui-layer-setwin .layui-layer-close1{background-position: 0px -40px;cursor:pointer;}.layui-layer-setwin .layui-layer-close1:hover{opacity:.7}.layui-layer-setwin .layui-layer-close2{position:absolute;right:-28px;top:-28px;width:30px;height:30px;margin-left:0;background-position:-149px -31px;*right:-18px;_display:none}.layui-layer-setwin .layui-layer-close2:hover{background-position:-180px -31px}.layui-layer-btn{text-align:right;padding: 0 12px 12px;pointer-events:auto;user-select:none;-webkit-user-select:none;}.layui-layer-btn a{height:28px;line-height:28px;margin: 5px 10px 0;padding:0 15px;/* border:1px solid #dedede; */background-color: #dedede;color:#333;border-radius:2px;font-weight:400;cursor:pointer;text-decoration:none;width: 64px;}.layui-layer-btn a:hover{opacity:.9;text-decoration:none}.layui-layer-btn a:active{opacity:.8}.layui-layer-btn .layui-layer-btn0{border-color:#1E9FFF;background-color:#1E9FFF;color:#fff;}.layui-layer-btn-l{text-align:left}.layui-layer-btn-c{text-align:center}.layui-layer-dialog{width: 330px;}.layui-layer-dialog .layui-layer-content{position:relative;padding:20px;line-height:24px;word-break:break-all;overflow:hidden;font-size:14px;overflow-x:hidden;overflow-y:auto}.layui-layer-dialog .layui-layer-content .layui-layer-ico{position:absolute;top:16px;left:15px;_left:-40px;width:30px;height:30px}.layui-layer-ico1{background-position:-30px 0}.layui-layer-ico2{background-position:-60px 0}.layui-layer-ico3{background-position:-90px 0}.layui-layer-ico4{background-position:-120px 0}.layui-layer-ico5{background-position:-150px 0}.layui-layer-ico6{background-position:-180px 0}.layui-layer-rim{border:6px solid #8D8D8D;border:6px solid rgba(0,0,0,.3);border-radius:5px;box-shadow:none}.layui-layer-msg{min-width:180px;border:1px solid #D3D4D3;box-shadow:none}.layui-layer-hui{min-width:100px;background-color:#000;filter:alpha(opacity=60);background-color:rgba(0,0,0,.6);color:#fff;border:none}.layui-layer-hui .layui-layer-content{padding:12px 25px;text-align:center}.layui-layer-dialog .layui-layer-padding{padding:20px 20px 20px 55px;text-align:left}.layui-layer-page .layui-layer-content{position:relative;overflow:auto}.layui-layer-iframe .layui-layer-btn,.layui-layer-page .layui-layer-btn{padding-top:10px}.layui-layer-nobg{background:0 0}.layui-layer-iframe iframe{display:block;width:100%}.layui-layer-loading{border-radius:100%;background:0 0;box-shadow:none;border:none}.layui-layer-loading .layui-layer-content{width:60px;height:24px;background:url(loading-0.gif) no-repeat}.layui-layer-loading .layui-layer-loading1{width:37px;height:37px;background:url(loading-1.gif) no-repeat}.layui-layer-ico16,.layui-layer-loading .layui-layer-loading2{width:32px;height:32px;background:url(loading-2.gif) no-repeat}.layui-layer-tips{background:0 0;box-shadow:none;border:none;}.layui-layer-tips .layui-layer-content{position:relative;line-height:22px;min-width:12px;padding:8px 15px;font-size:12px;_float:left;border-radius: 5px;box-shadow:1px 1px 3px rgba(0,0,0,.2);background-color:#000;color:#fff;opacity: .7;}.layui-layer-tips .layui-layer-close{right:-2px;top:-1px}.layui-layer-tips i.layui-layer-TipsG{position:absolute;width:0;height:0;border-width:8px;border-color:transparent;border-style:dashed;*overflow:hidden}.layui-layer-tips i.layui-layer-TipsB,.layui-layer-tips i.layui-layer-TipsT{left:5px;border-right-style:solid;border-right-color:#000}.layui-layer-tips i.layui-layer-TipsT{bottom:-8px;}.layui-layer-tips i.layui-layer-TipsB{top:-8px}.layui-layer-tips i.layui-layer-TipsL,.layui-layer-tips i.layui-layer-TipsR{top:5px;border-bottom-style:solid;border-bottom-color:#000}.layui-layer-tips i.layui-layer-TipsR{left:-8px}.layui-layer-tips i.layui-layer-TipsL{right:-8px}.layui-layer-lan[type=dialog]{min-width:280px}.layui-layer-lan .layui-layer-title{background:#4476A7;color:#fff;border:none}.layui-layer-lan .layui-layer-btn{padding:5px 10px 10px;text-align:right;border-top:1px solid #E9E7E7}.layui-layer-lan .layui-layer-btn a{background:#fff;border-color:#E9E7E7;color:#333}.layui-layer-lan .layui-layer-btn .layui-layer-btn1{background:#C9C5C5}.layui-layer-molv .layui-layer-title{background:#009f95;color:#fff;border:none}.layui-layer-molv .layui-layer-btn a{background:#009f95;border-color:#009f95}.layui-layer-molv .layui-layer-btn .layui-layer-btn1{background:#92B8B1}.layui-layer-iconext{background:url(icon-ext.png) no-repeat}.layui-layer-prompt .layui-layer-input{display:block;width:230px;height:36px;margin:0 auto;line-height:30px;padding-left:10px;border:1px solid #e6e6e6;color:#333}.layui-layer-prompt textarea.layui-layer-input{width:300px;height:100px;line-height:20px;padding:6px 10px}.layui-layer-prompt .layui-layer-content{padding:20px}.layui-layer-prompt .layui-layer-btn{padding-top:0}.layui-layer-tab{box-shadow:1px 1px 50px rgba(0,0,0,.4)}.layui-layer-tab .layui-layer-title{padding-left:0;overflow:visible}.layui-layer-tab .layui-layer-title span{position:relative;float:left;min-width:80px;max-width:260px;padding:0 20px;text-align:center;overflow:hidden;cursor:pointer}.layui-layer-tab .layui-layer-title span.layui-this{height:43px;border-left:1px solid #eee;border-right:1px solid #eee;background-color:#fff;z-index:10}.layui-layer-tab .layui-layer-title span:first-child{border-left:none}.layui-layer-tabmain{line-height:24px;clear:both}.layui-layer-tabmain .layui-layer-tabli{display:none}.layui-layer-tabmain .layui-layer-tabli.layui-this{display:block}.layui-layer-photos{-webkit-animation-duration:.8s;animation-duration:.8s}.layui-layer-photos .layui-layer-content{overflow:hidden;text-align:center}.layui-layer-photos .layui-layer-phimg img{position:relative;width:100%;display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-imgbar,.layui-layer-imguide{display:none}.layui-layer-imgnext,.layui-layer-imgprev{position:absolute;top:50%;width:27px;_width:44px;height:44px;margin-top:-22px;outline:0;blr:expression(this.onFocus=this.blur())}.layui-layer-imgprev{left:10px;background-position:-5px -5px;_background-position:-70px -5px}.layui-layer-imgprev:hover{background-position:-33px -5px;_background-position:-120px -5px}.layui-layer-imgnext{right:10px;_right:8px;background-position:-5px -50px;_background-position:-70px -50px}.layui-layer-imgnext:hover{background-position:-33px -50px;_background-position:-120px -50px}.layui-layer-imgbar{position:absolute;left:0;bottom:0;width:100%;height:32px;line-height:32px;background-color:rgba(0,0,0,.8);background-color:#000\9;filter:Alpha(opacity=80);color:#fff;overflow:hidden;font-size:0}.layui-layer-imgtit *{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:12px}.layui-layer-imgtit a{max-width:65%;overflow:hidden;color:#fff}.layui-layer-imgtit a:hover{color:#fff;text-decoration:underline}.layui-layer-imgtit em{padding-left:10px;font-style:normal}@-webkit-keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-close{-webkit-animation-name:layer-bounceOut;animation-name:layer-bounceOut;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}@media screen and (max-width:1100px){.layui-layer-iframe{overflow-y:auto;-webkit-overflow-scrolling:touch}}
--------------------------------------------------------------------------------
/player/tj.php:
--------------------------------------------------------------------------------
1 | time())) {
15 |
16 | array_push($temp, $entry[0] . "," . $entry[1] . "\n"); //取出其他浏览者的信息,并去掉超时者,保存进$temp
17 |
18 | }
19 | }
20 | array_push($temp, getenv('REMOTE_ADDR') . "," . (time() + ($timeout)) . "\n"); //更新浏览者的时间
21 | $users_online = count($temp); //计算在线人数
22 | $entries = implode("", $temp);
23 |
24 | //写入文件
25 | $fp = fopen($online_log, "w");
26 | flock($fp, LOCK_EX); //flock() 不能在NFS以及其他的一些网络文件系统中正常工作
27 | fputs($fp, $entries);
28 | flock($fp, LOCK_UN);
29 | fclose($fp);
30 | echo "$users_online";
31 |
--------------------------------------------------------------------------------