$(document).ready(function () {
$("input[type='text'],input[type='password']").focus(function () {
$(this).addClass("log_wrt");
});
$("input[type='text'],input[type='password']").blur(function () {
$(this).removeClass("log_wrt");
});
});
jQuery(function ($) {
localStorage.setItem('somsg', 'no');
$('#getcodes').click(function () {
var mid = $("[name=mobile]").val();
if (!mid) {
alert('请填写手机号');
return false;
}
var mobile_reg = /^1[3|4|5|6|7|8|9]\d{9}$/;
if (!mobile_reg.test($.trim($("[name=mobile]").val()))) {
alert('手机号长度11位,以13/14/15/17/18开头');
return false;
}
layer.open({
type: 2,
title:'请滑动完成安全验证',
closeBtn: 1,
shadeClose: false,
shade: 0.8,
offset:"auto",
area: ['350px', '300px'],
content: '/pic_check?m='+ mid
});
return false;
});
})
var count = 1800;
function jump(count) {
window.setTimeout(function () {
count--;
if (count > 0) {
$('#getcod').html("
30分钟后失效");
jump(count);
} else {
$('#getcod').html('
获取验证码');
}
}, 1000);
}
function laclo(){
layer.closeAll();
}
$('#ul_nav li.s_icon').mouseover(function(){
var d = $(this).children('div');
d.toggleClass('hiden');
}).mouseout(function(){
var d = $(this).children('div');
d.toggleClass('hiden');
});
$('.wechat').mouseover(function(){
$('.wechat_code').toggleClass('hiden');
}).mouseout(function(){
$('.wechat_code').toggleClass('hiden');
});
$(document).ready(function(){
$('.nav-secondary a').click(function(){
var _txt = $(this).text();
_hmt.push(['_trackEvent', 'nav', 'click', _txt])
})
$('.btn_ss').click(function(){
var _txt = $(".textinp").val()
_hmt.push(['_trackEvent', 'search', 'click', _txt])
})
$('.block_m a').click(function(){
var _txt = $(this).text();
_hmt.push(['_trackEvent', 'story', 'click', _txt])
})
})
document.write(unescape("%3Cscript src='https://hm.baidu.com/h.js%3Fd11396a350156e4682e4156a671bdaf1' type='text/javascript'%3E%3C/script%3E"));