<?php
if(!defined('IN_CRONLITE'))exit();

@header('Content-Type: text/html; charset=UTF-8');
?>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="utf-8">
  <title><?php echo $conf['sitename']?> - <?php echo $conf['title']?></title>
  <meta name="keywords" content="<?php echo $conf['keywords']?>">
  <meta name="description" content="<?php echo $conf['description']?>">
  <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0">
  <link href="//lib.baomitu.com/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
  <link href="//lib.baomitu.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
  <link rel="stylesheet" href="assets/youyun/css/main.css">
  <link rel="stylesheet" href="assets/youyun/css/themes.css">
  <link rel="stylesheet" href="//lib.baomitu.com/modernizr/2.8.3/modernizr.min.js">

<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?687a407ad189c683ffbba1b7aefd1260";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>

</head>
<body>
<div id="page-container" class="header-fixed-top sidebar-visible-lg-full">
		<div id="sidebar">
			<div id="sidebar-brand" class="themed-background">
				<a href="index.php" class="sidebar-title"> <i class="fa fa-qq"></i>
					<span class="sidebar-nav-mini-hide"><?php echo $conf['sitename']?></span>
				</a>
			</div>
			<div id="sidebar-scroll">
			
			
				<div class="mod_banner">
					<a class="personal_entrance" href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo $conf['qq']?$conf['qq']:$conf['kfqq']?>&site=qq&menu=yes">
						<span class="sidebar-nav-mini-hide"><div class="banner_head">
						<img id="index_face" src="http://q2.qlogo.cn/headimg_dl?bs=qq&amp;dst_uin=<?php echo $conf['qq']?$conf['qq']:$conf['kfqq']?>&amp;src_uin=<?php echo $conf['qq']?$conf['qq']:$conf['kfqq']?>&amp;fid=<?php echo $conf['qq']?$conf['qq']:$conf['kfqq']?>&amp;spec=100&amp;url_enc=0&amp;referer=bu_interface&amp;term_type=PC">
						</div></span>
						<div class="banner_wording">
							<h2 style="line-height:30px;margin-top: 5px;">联系客服</h2>
							<h3>QQ：<?php echo $conf['qq']?$conf['qq']:$conf['kfqq']?></h3>
						</div>
					</a>
				</div>
			
				<div class="sidebar-content">
					<ul class="sidebar-nav">
						<li><a href="/"><i class="fa fa-home sidebar-nav-icon"></i><span class="sidebar-nav-mini-hide">网站首页</span></a></li>
						<li><a href="./user/reg.php"><i class="fa fa-star sidebar-nav-icon"></i><span class="sidebar-nav-mini-hide">开通分站</span></a></li>
						<li><a href="./user/"><i class="fa fa-lock sidebar-nav-icon"></i><span class="sidebar-nav-mini-hide">登录后台</span></a></li>
						<li><a href="/?mod=tools" class="active"><i class="fa fa-cogs sidebar-nav-icon"></i><span class="sidebar-nav-mini-hide">实用工具</span></a></li>
						<li><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=<?php echo $conf['qq']?$conf['qq']:$conf['kfqq']?>&amp;site=qq&amp;menu=yes"><i class="fa fa-qq sidebar-nav-icon"></i><span class="sidebar-nav-mini-hide">ＱＱ客服</span></a></li>
						<li><a href="/?mod=about"><i class="fa fa-heart sidebar-nav-icon"></i><span class="sidebar-nav-mini-hide">关于我们</span></a></li>
					</ul>
				</div>
			</div>
			<div id="sidebar-extra-info"
				class="sidebar-content sidebar-nav-mini-hide">
				<div class="text-center">
					<small>2017 <i class="fa fa-heart text-danger"></i> <a href="./"> <?php echo $conf['sitename']?></a></small><br>
					
				</div>
			</div>
		</div>
		<div id="main-container">
			<header class="navbar navbar-inverse navbar-fixed-top">
				<ul class="nav navbar-nav-custom">
					<li><a href="javascript:void(0)"
						onclick="App.sidebar('toggle-sidebar');this.blur();"> <i
							class="fa fa-ellipsis-v fa-fw animation-fadeInRight"
							id="sidebar-toggle-mini"></i> <i
							class="fa fa-bars fa-fw animation-fadeInRight"
							id="sidebar-toggle-full"></i> 菜单
					</a></li>
				</ul>
				<ul class="nav navbar-nav-custom pull-right">
					<li class="dropdown"><a href="./" class="dropdown-toggle">
							<img
							src="http://q4.qlogo.cn/headimg_dl?dst_uin=<?php echo $conf['qq']?$conf['qq']:$conf['kfqq']?>&amp;spec=100"
							alt="avatar">
					</a></li>
				</ul>
			</header>

			<div id="page-content">
			<div class="row">
<div class="col-sm-6">
<div class="block">
<div class="panel-heading" style="text-align: center;"><h3 class="panel-title">
	全民K歌获取歌曲ID</h3></div>
	<div class="list-group">
			<div id="myTabContent" class="tab-content">
			<div class="tab-pane fade in active">
				<div class="form-group">
					<input type="text" name="url" id="url" value="" class="form-control" placeholder="请输入歌曲的分享链接" required="">
				</div>
				<div class="form-group" style="display:none;" id="song_v">
					<div class="input-group"><div class="input-group-addon">歌曲ID</div>
					<input type="text" id="songid" value="" class="form-control" required="">
				</div></div>
				<input type="submit" onclick="getsongid()" id="getsongid" class="form-control" value="立即获取">
			</div>
		</div>
	</div>
<div class="panel-footer">
<span class="glyphicon glyphicon-info-sign"></span>
进入全民K歌-选择歌曲-分享-复制链接
</div>
</div>
</div>
<div class="col-sm-6">
<div class="block">
<div class="panel-heading" style="text-align: center;"><h3 class="panel-title">
	获取快手ID</h3></div>
	<div class="list-group">
			<div id="myTabContent" class="tab-content">
			<div class="tab-pane fade in active">
				<div class="form-group">
					<input type="text"id="kuaishou_url" value="" class="form-control" placeholder="请输入快手作品链接" required="">
				</div>
				<div  style="display:none;" id="kuaishou_v">
				<div class="form-group">
					<div class="input-group"><div class="input-group-addon">作者ID</div>
					<input type="text" id="anotherid" value="" class="form-control" required="">
				</div></div>
				<div class="form-group">
					<div class="input-group"><div class="input-group-addon">作品ID</div>
					<input type="text" id="videoid" value="" class="form-control" required="">
				</div></div>
				</div>
				<input type="submit" onclick="getkuaishouid()" id="getkuaishouid" class="form-control" value="立即获取">
			</div>
		</div>
	</div>
<div class="panel-footer">
<span class="glyphicon glyphicon-info-sign"></span>
进入快手，选择一个作品，分享，复制链接
</div>
</div>
</div>
<script src="//lib.baomitu.com/jquery/1.12.4/jquery.min.js"></script>
<script src="//lib.baomitu.com/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript">
function getsongid(){
	var songurl=$("#url").val();
	if(songurl==''){alert('请确保每项不能为空！');return false;}
	if(songurl.indexOf('.qq.com')<0){alert('请输入正确的歌曲的分享链接！');return false;}
	$('#song_v').hide();
	try{
		var songid = songurl.split('s=')[1].split('&')[0];
	}catch(e){
		alert('请输入正确的歌曲的分享链接！');return false;
	}
	$('#songid').val(songid);
	$('#song_v').slideDown();
}
function getkuaishouid(){
	var kuauishouurl=$("#kuaishou_url").val();
	if(kuauishouurl==''){alert('请确保每项不能为空！');return false;}
	if(kuauishouurl.indexOf('gifshow.com')<0 && kuauishouurl.indexOf('kuaishou.com')<0){alert('请输入正确的快手作品链接！');return false;}
	$('#kuaishou_v').hide();
	try{
		if(kuauishouurl.indexOf('userId=')>0){
			var anotherid = kuauishouurl.split('userId=')[1].split('&')[0];
		}else{
			var anotherid = kuauishouurl.split('photo/')[1].split('/')[0];
		}
		if(kuauishouurl.indexOf('photoId=')>0){
			var videoid = kuauishouurl.split('photoId=')[1].split('&')[0];
		}else{
			var videoid = kuauishouurl.split('photo/')[1].split('/')[1].split('?')[0];
		}
	}catch(e){
		alert('请输入正确的快手作品链接！');return false;
	}
	$('#anotherid').val(anotherid);
	$('#videoid').val(videoid);
	$('#kuaishou_v').slideDown();
}
</script>
		</div>
	</div>
</div>
</div>
<script src="//lib.baomitu.com/jquery/1.12.4/jquery.min.js"></script>
<script src="//lib.baomitu.com/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="//lib.baomitu.com/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<script src="//lib.baomitu.com/layer/2.3/layer.js"></script>
<script src="assets/youyun/js/plugins.js"></script>
<script src="assets/youyun/js/app.js"></script>
<!-- DT Time -->

</body>
</html>