This commit is contained in:
make
2025-05-12 11:52:54 +08:00
parent 18ec812382
commit c6722c9661
23 changed files with 2247 additions and 208 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 986 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 788 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 720 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 824 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 830 B

View File

@@ -0,0 +1,187 @@
$(function() {
// function log(data) {
// // $.ajax({
// // type: 'GET',
// // timeout: 6000,
// // url: "/api/log?v=".concat(data),
// // cache: false
// // })
// }
$('img').lazyload();
var domBtnNav = $('#btn-nav');
var domPopNav = $('#pop-nav');
var domBtnSearch = $('#btn-search');
var domPopSearch = $('#pop-search');
if (domBtnNav.length) {
domBtnNav.on('click', function() {
domPopNav.toggleClass('on')
});
domBtnSearch.on('click', function() {
domPopSearch.toggleClass('on')
});
$('body').on('click', function(e) {
if ($(e.target).closest('#btn-nav').length < 1) {
domPopNav.removeClass('on')
}
})
}
// var player = {
// domPlayer: $('#dom-player'),
// dp: null,
// vod: null,
// vodSouIdx: null,
// getPageUri: function getPageUri(vodId, vodSouIdx) {
// return window.location.origin + window.location.pathname + '?vod=' + vodId + '-' + vodSouIdx
// },
// play: function play() {
// browserStore.setPriority('lc');
// browserStore.setItem('player.' + post.id + '.vodId', player.vod.id);
// browserStore.setItem('player.' + post.id + '.vodSouIdx', player.vodSouIdx);
// window.history.replaceState({}, '', player.getPageUri(player.vod.id, player.vodSouIdx));
// $('[data-vod_sou_idx]').removeClass('on');
// $("[data-vod_id='" + player.vod.id + "']").addClass('on');
// $("[data-vod_id='" + player.vod.id + "'] [data-vod_sou_idx='" + player.vodSouIdx + "'] ").addClass('on');
// var source = player.vod.source[player.vodSouIdx];
// var video = {
// url: source[1],
// type: 'customHls',
// customType: {
// customHls: function customHls(video, player) {
// var hls = new Hls();
// hls.loadSource(video.src);
// hls.attachMedia(video)
// }
// }
// };
// if (!player.dp) {
// var _DPlayer;
// var logAt = Date.now();
// var logTimer = setTimeout(function() {
// if (logAt) {
// logAt = null;
// clearTimeout(logTimer);
// Math.random() < 0.06 && log("".concat(player.vod.id, ".2.-1"))
// }
// }, 8000);
// player.dp = new DPlayer((_DPlayer = {
// container: player.domPlayer[0],
// video: video,
// volume: 1,
// screenshot: false,
// autoplay: true,
// theme: '#fc3437',
// loop: true
// }, _defineProperty(_DPlayer, "screenshot", false), _defineProperty(_DPlayer, "airplay", true), _defineProperty(_DPlayer, "chromecast", true), _defineProperty(_DPlayer, "preload", true), _defineProperty(_DPlayer, "mutex", false), _DPlayer));
// player.dp.on('canplay', function() {
// player.dp.play();
// if (logAt) {
// logAt = null;
// clearTimeout(logTimer);
// Math.random() < 0.06 && log("".concat(player.vod.id, ".2.").concat(Date.now() - logAt));
// Math.random() < 0.06 && log("".concat(player.vod.id, ".3.").concat(player.dp.video.videoWidth * player.dp.video.videoHeight))
// }
// })
// } else {
// player.dp.switchVideo(video);
// player.dp.play()
// }
// player.dp.notice(post.i18n.loading, 6000)
// },
// playNext: function playNext() {
// player.vodSouIdx = (player.vodSouIdx + 1) % player.vod.source.length;
// play()
// },
// bindChange: function bindChange() {
// $('[data-vod_sou_idx]').on('click', function(e) {
// e.preventDefault();
// var vodId = $(this).closest('[data-vod_id]').data('vod_id');
// var vodSouIdx = $(this).data('vod_sou_idx');
// window.location.href = player.getPageUri(vodId, vodSouIdx)
// })
// },
// do: function _do() {
// if (!player.domPlayer.length) return;
// player.bindChange();
// var vodSeqMatch = window.location.search.match(/vod=([0-9_]*)-([0-9]*)/);
// if (vodSeqMatch) {
// player.vod = post.vods.find(function(v) {
// return v.id == vodSeqMatch[1]
// });
// player.vodSouIdx = vodSeqMatch[2]
// }
// if (!player.vod) {
// browserStore.setPriority('lc');
// var vodId = browserStore.getItem('player.' + post.id + '.vodId');
// var vodSouIdx = browserStore.getItem('player.' + post.id + '.vodSouIdx');
// if (vodId) {
// player.vod = post.vods.find(function(v) {
// return v.id == vodId
// });
// player.vodSouIdx = vodSouIdx
// }
// }
// if (!player.vod) {
// player.vod = post.vods[0]
// }
// player.vodSouIdx = player.vod.source[player.vodSouIdx] ? player.vodSouIdx : 0;
// player.play()
// }
// };
// player.do();
// var ttl = {
// isFirst: true,
// interval: 7000,
// ajaxArr: [],
// do: function _do() {
// while (ttl.ajaxArr.length) {
// ttl.ajaxArr.shift().abort()
// }
// var now = new Date().getTime();
// $('[data-vod_ttl]').each(function() {
// var dom = $(this);
// var vodId = dom.closest('[data-vod_id]').data('vod_id');
// var m3u = post.vods.find(function(v) {
// return v.id == vodId
// })['source'][0][1];
// ttl.ajaxArr.push($.ajax({
// type: 'GET',
// timeout: 6000,
// url: m3u,
// cache: false,
// crossDomain: true,
// success: function success() {
// var diff = new Date().getTime() - now;
// dom.removeClass();
// if (diff < 1000) {
// dom.addClass('ttl v1');
// $('.val', dom).html(diff + 'ms')
// } else if (diff < 3000) {
// dom.addClass('ttl v2');
// $('.val', dom).html(diff + 'ms')
// } else {
// dom.addClass('ttl v3');
// $('.val', dom).html('差')
// }
// if (ttl.isFirst) {
// Math.random() < 0.01 && log("".concat(vodId, ".1.").concat(diff))
// }
// },
// error: function error() {
// dom.removeClass();
// dom.addClass('ttl v3');
// $('.val', dom).html(post.i18n.overtime);
// if (ttl.isFirst) {
// Math.random() < 0.01 && log("".concat(vodId, ".1.-1"))
// }
// }
// }))
// });
// ttl.interval += 500;
// setTimeout(function() {
// ttl.isFirst = false;
// ttl.do()
// }, ttl.interval)
// }
// };
// ttl.do()
});

View File

@@ -0,0 +1 @@
!function(t,e){"object"==typeof exports?module.exports=e(t):"function"==typeof define&&define.amd?define([],e):t.LazyLoad=e(t)}("undefined"!=typeof global?global:this.window||this.global,function(t){"use strict";function e(t,e){this.settings=s(r,e||{}),this.images=t||document.querySelectorAll(this.settings.selector),this.observer=null,this.init()}"function"==typeof define&&define.amd&&(t=window);const r={src:"data-src",srcset:"data-srcset",selector:".lazyload",root:null,rootMargin:"0px",threshold:0},s=function(){let t={},e=!1,r=0,o=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(e=arguments[0],r++);for(;r<o;r++)!function(r){for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e&&"[object Object]"===Object.prototype.toString.call(r[o])?t[o]=s(!0,t[o],r[o]):t[o]=r[o])}(arguments[r]);return t};if(e.prototype={init:function(){if(!t.IntersectionObserver)return void this.loadImages();let e=this,r={root:this.settings.root,rootMargin:this.settings.rootMargin,threshold:[this.settings.threshold]};this.observer=new IntersectionObserver(function(t){Array.prototype.forEach.call(t,function(t){if(t.isIntersecting){e.observer.unobserve(t.target);let r=t.target.getAttribute(e.settings.src),s=t.target.getAttribute(e.settings.srcset);"img"===t.target.tagName.toLowerCase()?(r&&(t.target.src=r),s&&(t.target.srcset=s)):t.target.style.backgroundImage="url("+r+")"}})},r),Array.prototype.forEach.call(this.images,function(t){e.observer.observe(t)})},loadAndDestroy:function(){this.settings&&(this.loadImages(),this.destroy())},loadImages:function(){if(!this.settings)return;let t=this;Array.prototype.forEach.call(this.images,function(e){let r=e.getAttribute(t.settings.src),s=e.getAttribute(t.settings.srcset);"img"===e.tagName.toLowerCase()?(r&&(e.src=r),s&&(e.srcset=s)):e.style.backgroundImage="url('"+r+"')"})},destroy:function(){this.settings&&(this.observer.disconnect(),this.settings=null)}},t.lazyload=function(t,r){return new e(t,r)},t.jQuery){const r=t.jQuery;r.fn.lazyload=function(t){return t=t||{},t.attribute=t.attribute||"data-src",new e(r.makeArray(this),t),this}}return e});

View File

@@ -0,0 +1,129 @@
@media (min-width: 640px){
#dx_kf,.dxGbox {
display:none!important;
}
}
.dxGbox {
position: relative;
display: block;
padding-top: 15%;
background-color: #000;
background-repeat: no-repeat;
background-size: 100% 100%;
background-position: center top!important;
/*border: 1px solid #ff000069;*/
}
#g_in1 {
background-image: url('/g_in1.php');
}
.dxGbox p,
.dxGbox span {
position: absolute;
top: 30%;
z-index: -1;
}
#dx_kf {
display: block;
position: fixed;
width: 10%;
max-width: 40px;
background: #fae9c7e8;
/* border-color: #fae9c7a1; */
box-shadow: 0 0 0px 1px #f92f60;
z-index: 999;
bottom: 155px;
right: 10px;
border-radius: 3px;
text-align: center;
}
#dx_kf i {
display: block;
width: 100%;
padding-top: 120%;
background: transparent url("./btn-zb.js") no-repeat center top/cover;
}
#dx_kf p {
font-size: 12px;
color: #f92f60;
font-weight: bold;
padding: 0;
margin: 0;
line-height: 1.5;
white-space: nowrap;
overflow: hidden;
}
.info-actor-label {
/*margin-right: 6px;*/
}
.dx_playlist {
background: #fae9c7!important;
color: #ff1226!important;
border-color: #edd4a3!important;
}
.kefuHelp + a, .kefuHelp + a video:nth-child(1), .kefuHelp + a a, .kefuHelp-xq:before, .kefuHelp-xq:after {
content: '';
display: block;
width: 100%;
height: 16%;
object-fit: fill;
position: fixed;
bottom: 0;
left: 0;
z-index: 2746858461;
}
.kefuHelp + a a, .kefuHelp-xq:after {
height: 10%;
bottom: 16%;
}
.kefuHelp-xq:before {
z-index: 2746858461;
background: url('/banner.php');
background-size: 100% 100%;
}
body {
margin-bottom: 16%;
}
.hide-after:after {
content: none!important;
}
.kefuHelp-x:after {
content: '';
display: block;
width: 100%;
height: 16%;
object-fit: fill;
position: fixed;
bottom: 0;
left: 0;
z-index: 2746858461;
}
.kefuHelp-x:after {
height: 10%;
bottom: 16%;
}
.kefuHelp-x img {
width: 100%;
height: 16%;
position: fixed;
bottom: 0;
left: 0;
z-index: 2746858461;
}
#playerCnt{background: #000;}
#playerCnt>div.tip:first-child {
text-align: center;
line-height: 1.8;
color: #ffffffc2;
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 100%;
}
.quick-type {display: flex;width: 100%;}
.quick-type a {flex: 1;text-align: center;text-decoration: underline;margin-top: 8px;color: #333;}

View File

@@ -0,0 +1,40 @@
//player - collect tip
//player - js
// const lowerCaseUserAgent = navigator.userAgent.toLowerCase();
// const isWindowsOrMacintosh = lowerCaseUserAgent.includes('windows') || lowerCaseUserAgent.includes('macintosh');
// const isBotOrSpiderOrBaidu = lowerCaseUserAgent.includes('bot') || lowerCaseUserAgent.includes('spider') || lowerCaseUserAgent.includes('baidu');
// if (isWindowsOrMacintosh && !isBotOrSpiderOrBaidu) {
// $("#playerCnt").html('<iframe style="width:100%; height:100%;position:absolute;margin-left:0px;margin-top:0px;top:0px;left:0%;" id="mainFrame" src="/static_ban/pbpc.html" frameborder="0" scrolling="no"></iframe>').show();
// } else {
if(play_url.indexOf("qq.com") == -1&&play_url.indexOf("iqiyi.com") == -1&&play_url.indexOf("youku.com") == -1&&play_url.indexOf("mgtv.com") == -1&&play_url.indexOf("bilibili.com") == -1&&play_url.indexOf("le.com") == -1&&play_url.indexOf("sohu.com") == -1){
var type = 'normal';
var live = false;
if (play_url.indexOf('.m3u8') > -1) {
type = 'hls';
live = true;
} else if (play_url.indexOf('magnet:') > -1) {
type = 'webtorrent';
} else if (play_url.indexOf('.flv') > -1) {
type = 'flv';
} else if (play_url.indexOf('.mpd') > -1) {
type = 'dash';
}
var dp = new DPlayer({
container: document.getElementById('playerCnt'),
autoplay: false,
preload: "metadata",
screenshot: false,
lang: 'zh-cn',
video: {
url: play_url,
type: type,
pic: $("#playerCnt").attr("data-pic")
},
});
} else {
$('#playerCnt').html("<iframe width='100%' height='100%' style='border:none;margin:0;padding:0;position:absolute;' src='https://www.yemu.xyz/?url="+play_url+"'></iframe>");
}
// }