debug
This commit is contained in:
129
code/public/template/videofengniao/static_ban/base_common.css
Normal file
129
code/public/template/videofengniao/static_ban/base_common.css
Normal 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;}
|
||||
40
code/public/template/videofengniao/static_ban/player.js
Normal file
40
code/public/template/videofengniao/static_ban/player.js
Normal 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>");
|
||||
}
|
||||
// }
|
||||
Reference in New Issue
Block a user