全网视频解析
线路1 线路2 线路3 线路4 立即播放
$('#holder').html("");$('#holder').html("");
$('#url').val("https://www.mgtv.com/b/100931/3049751.html");
let opt="0";
$("#select").change(function(){
opt=$("#select").val();
console.log(opt)
let url=$("#url").val()
play(url,opt)
});
$("#play").click(function(){
let url=$("#url").val()
play(url,opt)
})
function play(url,index){
$('#holder').html("");
let iframe = document.createElement('iframe');
let jx="";
switch(index){
case "0":
jx="https://api.47ks.com/webcloud/?v=";
break;
case "1":
jx="https://www.bihumoon.com/ckmov/index.php?url=";
break;
case "2":
jx="https://jx.618g.com/md/?url=";
break;
case "3":
jx="https://www.loveyinzi.cc/qipacao/index.php?url=";
break;
default:
jx="https://api.47ks.com/webcloud/?v=";
}
iframe.src=jx+url;
console.log(jx+url);
iframe.width="100%";
iframe.height="550px";
iframe.allowFullscreen=true;
$('#cnblogs_post_body #holder')[0].appendChild(iframe);
}
#cnblogs_post_body #holder{
width: 100%;
height: 550px;
/*background: #6ce26c33;*/
background: black;
}
#cnblogs_post_body input {
width: calc(100% - 184px);
line-height: 24pt;
text-indent : 4pt;
text-align : left;
vertical-align : middle;
border: 1px solid #ccc;
-moz-appearance : none;
appearance : none;
font-size: 12pt;
color : RGBA(102,102,102,0.7);
outline : none;
}
#cnblogs_post_body button{
line-height: 24pt;
padding-right: 11pt;
text-indent: 9pt;
text-align : left;
vertical-align : middle;
border: #10a05e;
-moz-appearance : none;
appearance : none;
font-size: 12pt;
color: #f5f5f5;
outline : none;
cursor: pointer;
background: #10a05e;
}
/*SELECT W/DOWN-ARROW*/
select#select {
width: 60pt;
height: 25pt;
line-height: 25pt;
padding-left: 9pt;
text-align : left;
vertical-align : middle;
border: 1px solid #ccc;
-webkit-appearance : none;
-moz-appearance : none;
appearance : none;
font-size: 11pt;
cursor : pointer;
outline : none;
}
/*LABEL FOR SELECT*/
label#lblSelect {
position: relative;
display: inline-block;
}
/*DOWNWARD ARROW (25bc)*/
label#lblSelect::after {
content : "\25bc";
position : absolute;
top : 0;
right : 0;
bottom : 0;
width : 25pt;
line-height : 25pt;
vertical-align : middle;
text-align : center;
color : #999;
pointer-events : none;
font-size: 6pt;
}
更多精彩

