<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
<title>一览人机验证</title>
<link rel="stylesheet" href="https://img3.job1001.com/clicaptcha/css/captcha.css">
<script type="text/javascript" src="https://img3.job1001.com/js/jquery-1.8.3.min.js"></script>
<script src="https://img3.job1001.com/clicaptcha/js/clicaptcha.js"></script>
<script>
$(function(){
		$('#clicaptcha-submit-info').clicaptcha({
			src: 'https://service.yl1001.com/clicaptcha/public/get.php', // 本地自行修改
			checksrc : 'https://service.yl1001.com/clicaptcha/public/check.php', // 本地自行修改
			appname: 'job1001',
			click_hide: false,
			callback: function(data){
				pdata = data;
				pdata['utk'] = getQueryString('utk');
				pdata['callback'] = getQueryString('callback');
				$.ajax({
					url: 'https://www.job1001.com/webdev/ylsafe/controller/jobsearchCheck.php', 
    				dataType: 'jsonp', 
    				jsonp: 'jsoncallback', 
    				data: pdata,
    				jsonpCallback: 'job1001callback', 
    				success: function (response) {
    					if (response.status!='OK') {
    						alert("二次验证异常！");
    					}
    					if (response.status=='OK' && response.data && response.data.callback) {
    						window.console.log(response.data);
    						window.location.href = response.data.callback;
    					}
    				}
				});
				// 重新提交一次进行二次认证
				window.console.log(data);
				window.console.log('callback ok!');
			}
		});
	url = "https://www.job1001.com/webdev/ylsafe/controller/surf.php";
	var img=new Image();
	img.src=url+'?msit='+''+parseInt(Math.random()*1000);
});

function getQueryString(name)
{
     var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
     var r = window.location.search.substr(1).match(reg);
     if(r!=null)return  unescape(r[2]); return null;
}
</script>
</head>
<style type="text/css">
.news-banner{
	width:100%;
    height:1000px;
    background-size:cover;
    background-repeat: no-repeat;
    background-image:url(https://img3.job1001.com/ylsafe/img/bg.gif);
    filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(
    src='https://img3.job1001.com/ylsafe/img/bg.gif',
    sizingMethod='scale');
    -ms-filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(
    src='https://img3.job1001.com/ylsafe/img/bg.gif',
    sizingMethod='scale');
}
#login{width:500px;padding:50px;border:1px solid #ccc;margin:10px auto;}
.row{height:30px;line-height:30px;padding:5px 0;}
.row .text{width:100px;float:left;}
.row .input{width:350px;float:left;}
.row .input input{width:200px;height:26px;padding:0;}
#clicaptcha-mask {opacity: 0.5;filter:Alpha(opacity=50)}
button{width:100px;height:30px;}
</style>
<body>
<div class="news-banner">    
</div>
<!-- <div style="position: fixed;z-index: 9998;left: 0;top: 0;width: 100%;height: 100%;opacity: 0.5;background-color: rgb(0, 0, 0);filter:Alpha(opacity=50);"></div> -->
<input type="hidden" id="clicaptcha-submit-info" name="clicaptcha-submit-info" onclick="javascript:void(0);">
</body>
</html>