Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/www.85520057.com/func.php:230) in /www/wwwroot/www.85520057.com/js.php on line 6
/**
* 整体函数调用相关
*/
init()
function init() {
//登录
setChanTopNavLogin();
//ad焦点图
adBanner();
//大广告轮播
fullslider();
//专题焦点图
ztFocus();
//右侧导航
navList();
//banner,财经,军事,酒业,商会
focusList();
//要闻,体育,房产,马业马术,中华鹿业
listImgFocus();
//合作伙伴
swiperList(6, 10);
// 标题浮动
$(window).scroll(function() {
var scltop = $(window).scrollTop();
itemPosition('js-article-title', scltop, 'js-article-bottom'); //终极页
});
//24小时排行
hot24List(function () {
followFnBox();
});
//频道列表切换
listTabShow();
//标题切换
titleTabShow();
//马业•马术和中华•鹿业隐藏
indexHide();
//分享
sharePage();
$('img.lazy').lazyload({ effect: 'fadeIn' });
};
function setChanTopNavLogin() {
if ($('#chanTopNavLogin').length < 1) {
return false;
}
var elem = document.getElementById("chanTopNavLogin");
var chanTopGetCookie = function (name) {
var arr = document.cookie.match(new RegExp("(^| )" + name + "=([^;]*)(;|$)"));
if (arr != null) {
return unescape(arr[2]);
};
return null;
};
if (chanTopGetCookie("nickname") && elem) {
elem.innerHTML = '' +
chanTopGetCookie("nickname") + '';
};
};
function adBanner(){
if ($('.focus_ad').length < 1) {
return false;
}
$('.focus_ad').each(function(index,obj){
if($('.focus_ad_'+index).find(".focusbox_focus_img li").length < 1){
$('.focus_ad_'+index).hide();
}else{
$('.focus_ad_'+index).show();
new FocusAd(".focus_ad_"+index, "1200px", "100px");
}
});
}
function doZoom(obj_target, size) {
var elem = document.getElementById(obj_target),
defaultSize = elem.style.fontSize || 14;
if (size > 0) {
elem.style.fontSize = (parseInt(defaultSize) + 2) + "px";
};
if (size < 0) {
elem.style.fontSize = (parseInt(defaultSize) - 2) + "px";
};
};
function itemPosition(start, scroll, end) {
var id = $('#' + start),
end = end || '',
endgrid = 0;
if (id.length > 0) {
if ($('#' + end).length > 0) {
var endobj = $('#' + end);
endgrid = endobj.offset().top;
}
var figure = id.attr('data-grid') || id.offset().top;
if (scroll > figure) {
if (endgrid && scroll > endgrid) {
id.removeClass("fixed");
} else {
id.addClass("fixed");
}
} else {
id.removeClass("fixed");
}
}
};
function ztFocus(){
if ($('.focus-zt').length < 1) {
return false;
}
$(".focus-zt").each(function(){
var _this = $(this);
_this.find("li").eq(0).addClass("active")
_this.find("li").eq(0).animate({"width":"500"},500)
_this.find("li").hover(function(){
if($(this).hasClass('active')){
}else{
_this.find("li").removeClass("active")
$(this).addClass("active")
_this.find("li").stop(true,true).animate({"width":"175"},500)
$(this).stop(true,true).animate({"width":"500"},500)
}
fconFn()
},function(){
fconFn()
return false;
})
fconFn()
function fconFn(){
_this.find(".list-title-1-content").each(function(){
var _thisW = $(this).width();
$(this).css("margin-left",-_thisW/2+"px")
})
}
})
}
function focusList(){
if ($('.js-focus').length < 1) {
return false;
}
$('.js-focus').each(function(index,obj){
var val=$(this).attr("data-value");
homeComFocus(".focus-list-box-"+val,".focus-"+val,".js-focus-menu-"+val,".js-focus-arrow-"+val);
});
}
function homeComFocus(box,lImg,rTxt,bot){
var _this = $(box);
var bannerBox = $(lImg);
var menuBox = $(rTxt);
var arrow = $(bot);
var bNum = 0;
var sTimer = null;
var sSpeed = 5000;
runFn();
numFn();
clickFn();
menuBox.find("li").hover(function(){
if(bNum==$(this).index()){
}else{
bNum=$(this).index()
runFn()
}
},function(){
// return false
})
_this.hover(function(){
clearInterval(sTimer)
},function(){
numFn()
})
function numFn(){
sTimer = setInterval(function(){
bNum = bNum + 1;
if(bNum>=menuBox.find("li").length){
bNum=0
}
runFn()
},sSpeed)
}
function clickFn(){
arrow.find('.right').click(function(){
bNum = bNum + 1;
if(bNum>=menuBox.find("li").length){
bNum=0
}
runFn()
})
arrow.find('.left').click(function(){
bNum = bNum - 1;
if(bNum==0){
bNum=4
}
runFn()
})
}
function runFn(){
bannerBox.find("li").css({
"zIndex":"0",
"opacity":"0"
})
bannerBox.find("li").eq(bNum).css({
"zIndex":"1",
"opacity":"1"
})
menuBox.find("li").removeClass("active");
menuBox.find("li").eq(bNum).addClass("active");
}
}
function listImgFocus() {
if ($('.js-focus-img').length < 1) {
return false;
}
$('.js-focus-img').each(function(index,obj){
var val=$(this).attr("data-value");
var slideAmount = $(".focus-"+val).find('.focusConItem').length;
if(slideAmount==0){
$(".focus-"+val).hide();
}
if(val=='hot'){
if($('.focus-hot').find('.item').length==0){
$('.focus-hot').hide()
}
}
$(".focus-"+val).find('.focusSlider').html('');
for (var i = 0; i < slideAmount; i++) {
$(".focus-"+val).find('.focusSlider').append('');
}
comFocus(".focus-"+val);
$(".focus-"+val).hover(function(){
$(".focus-"+val).find('.focus-list-arrow').css("display","flex");
}, function(){
$(".focus-"+val).find('.focus-list-arrow').css("display","none");
});
});
}
function comFocus(id) {
$(id).slide({
titCell: '.focusSlider i',
mainCell: '.focusCon',
prevCell: '.left',
nextCell: '.right',
titOnClassName: 'current',
trigger: 'mouseover',
effect: 'left',
autoPlay: true,
effect:"leftLoop"
});
}
function navList(){
if ($('.nav_list').length < 1) {
return false;
};
$(window).scroll(function(){//监听窗口滚动事件
var scrollTop = $("html").scrollTop();//获取当前位置到页面顶部的距离
$(".nav_list a").each(function(index,element){//遍历导航栏选项
if($(element.hash).offset()&&scrollTop>=$(element.hash).offset().top-50){//判断当前位置是否为导航栏对应区域
$(this).addClass("active").siblings().removeClass("active");
//将其他导航选项取消样式
};
});
});
$(".s-phones").hover(function(){
$(".s-phones").find('img').show();
}, function(){
$(".s-phones").find('img').hide();
});
}
$(window).scroll(function () {
if ($('.nav_list').length < 1) {
return false;
};
if ($(window).scrollTop() > 200) {
$(".nav_list").fadeIn(300);
} else {
$(".nav_list").fadeOut(300);
}
});
$(".goTop").click(function () {
$('body,html').animate({
scrollTop: 0
}, 500);
});
function swiperList(len, wth) {
if ($('#swiper_hzhb').length < 1) {
return false;
};
console.log()
if($('#swiper_hzhb').find('.swiper-slide').length==0){
$('.swiper_hzhb').hide();
return false;
}
var swiper = new Swiper('.swiper', {
slidesPerView: len,
spaceBetween: wth,
speed: 1000,
loop: true,
autoplay: {
delay: 2500,
disableOnInteraction: false,
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
pagination: {
el: '.swiper-pagination',
clickable: true,
},
});
}
function hot24List(callback) {
$.ajax({
url: '//rank.china.com/rank/thirdcms/ln/day/rank.js',
type: 'GET',
dataType: 'script',
cache: true,
success: function () {
var d_t = day_top['-1'];
if (typeof (d_t) != 'object') return false;
if (d_t.list.length > 0) {
var _html = '';
var _data = d_t.list;
if ($('#js-ranktop-hot').length == 1) {
var _dataLength = _data.length < 6 ? _data.length : 6;
for (var i = 0; i < _dataLength; i++) {
_html += '' + _data[i].title + '';
}
$('#js-ranktop-hot').html(_html);
}
};
if (callback) callback();
},
error: function () {
if (callback) callback();
}
});
}
function followFnBox() {
if ($("#mainCon").length > 0) {
followFn('#mainCon', '#js-follow-right',-20);
};
if ($("#chan_mainBlk_lft").length > 0) {
followFn('#chan_mainBlk_lft', '#js-follow-right',50);
};
}
function followFn(idLeft, idRight,mtop) {
// fixbox
(function(b, a, c, d) {
var e = b(a),
g = b(c),
f = function(a, b) {
this.initialize('fixbox', a, b)
};
f.prototype = {
constructor: f,
initialize: function(a, c, d) {
var f = this;
this.type = a;
this.$element = b(c);
this.options = this.options || this.getOptions(d);
this.winH = e.height();
this.winW = e.width();
this.options.isFixdeHeight && (this.fixedBoxH = this.$element.outerHeight(!0));
this.offsetT = this.$element.offset().top;
this.resizeWindow();
this.documentH = g.height();
e.bind('resize',
function() {
f.resizeWindow()
})
},
getOptions: function(a) {
return a = b.extend({},
b.fn[this.type].defaults, this.$element.data(), a || {})
},
resizeWindow: function() {
var a = this.options,
b = this;
this.winH = e.height();
this.winW = e.width();
this.winW >= a.pagewidth ? (this.doFix(), e.unbind('.' + a.scrollEventName), e.bind('scroll.' + a.scrollEventName,
function() {
b.doFix()
})) : (e.unbind('.' + a.scrollEventName), this.$element.css('position', 'static'))
},
doFix: function() {
var a = this.$element,
d = this.options,
f = d.distanceToBottom,
m = d.distanceToTop;
this.options.isFixdeHeight || (this.fixedBoxH = a.outerHeight(!0));
var k = this.fixedBoxH,
n = this.offsetT,
q = k + this.offsetT,
B = this.winH;
d.isFixdeDocHeight || (this.documentH = g.height());
var h = this.documentH;
d.container && (f = parseInt(b(c).height() - b(d.container).offset().top - b(d.container).height()));
q + f - d.threshold >= h || (d = q - B, q = e.scrollTop(), k < B - m ? q > n ? q >= h - f - k ? a.css({
position: 'fixed',
top: -(q + f + k - h)
}) : a.css({
position: 'fixed',
top: m
}) : a.css('position', 'static') : q > d ? q > h - B - f ? a.css({
position: 'fixed',
top: -(q + f + k - h)
}) : a.css({
position: 'fixed',
top: 0
}) : a.css('position', 'static'))
}
};
b.fn.fixbox = function(a) {
for (var c = [], d = 0, e = arguments.length; d < e; d++) c.push(arguments[d]);
var g = c.slice(1);
return this.each(function() {
var d = b(this),
e = d.data('fixbox'),
m = 'object' == typeof a && a;
e || (e = new f(this, m), d.data('fixbox', e));
'string' == typeof c[0] && e[c[0]].apply(e, g)
})
};
b.fn.fixbox.Constructor = f;
b.fn.fixbox.defaults = {
container: '',
distanceToTop: 0,
distanceToBottom: 0,
isFixdeHeight: !0,
isFixdeDocHeight: !0,
pagewidth: 960,
threshold: 0,
scrollEventName: 'followScroll'
}
})(jQuery, window, document);
$(idRight).fixbox({
distanceToTop: mtop,
isFixdeDocHeight: false,
isFixdeHeight: false,
container: idLeft
});
};
function listTabShow() {
var c = function (dom, i) {
$('#js-list-media .item_list').eq(i).show().siblings().hide();
dom.addClass('current').siblings().removeClass('current');
$(window).trigger('scroll');
}
$('#js-list-tab').find('a').each(function (i) {
var _this = $(this),
_index = i,
_parent = _this.parent();
if (_index == 0) c(_parent, _index);
_this.on('mouseover', function (e) {
e.preventDefault();
c(_parent, _index);
});
});
};
function titleTabShow() {
var c = function (dom, i) {
console.log(dom)
$('#js-focus-tab .js-focus-img').eq(i).show().siblings().hide();
$('.spotTabHom_a a').eq(i).show().siblings().hide();
dom.addClass('active').siblings().removeClass('active');
$(window).trigger('scroll');
}
$('#js-spotTabHom-tab').find('span').each(function (i) {
var _this = $(this),
_index = i,
_parent = _this;
if (_index == 0) c(_parent, _index);
_this.on('mouseover', function (e) {
e.preventDefault();
c(_parent, _index);
});
});
};
function indexHide(){
if ($('#s_myms').length < 1) {
return false;
};
if($('#s_myms').find('.video_list li').length==0){
$('#s_myms').hide();
}
if ($('#s_zhly').length < 1) {
return false;
};
console.log($('#s_zhly').find('.video_list li').length)
if($('#s_zhly').find('.video_list li').length==0){
$('#s_zhly').hide();
$('.nav_list_zhly').remove();
}
// if ($('#s_zt').length < 1) {
// return false;
// };
// if($('#s_zt').find('.focus-zt ul li').length==0){
// $('#s_zt').hide();
// $('.nav_list_zt').remove();
// }
}
function fullslider() {
if ($('#js-fullslider').length < 1) {
return false;
};
var loopslider=true;
console.log($('#js-fullslider .swiper-slide').length)
if($('#js-fullslider .swiper-slide').length==1){
loopslider=false;
$('.swiper-pagination').hide();
}
var fullslider = new Swiper('#js-fullslider', {
speed: 1000,
longSwipes: false,
loop: loopslider,
autoplay: {
delay: 5000,//5秒切换一次
},
pagination: {
el: '.swiper-pagination',
clickable: true,
},
on: {
}
});
};
function qrCreate(url){
if(!($('#js-qrcode-img').length>0))return false;
$('#js-qrcode-img').qrcode({
width:120,
height:120,
text:url
});
};
function sharePage(){
var _url = window.locations.href;
//分享到新浪微博
$('#js-share-weibo').on('click',function(e){
e.preventDefault();
var _title = $('#js-article-title').text();
if(_title === ''){
_title = $(document).attr('title');
}
_url += '#sns_weibo';
var _pic = '';
var _shareUrl = 'http://v.t.sina.com.cn/share/share.php?&appkey=1343713053'+ //真实的appkey,必选参数
'&url='+ encodeURIComponent(_url)+ //参数url设置分享的内容链接|默认当前页location,可选参数
'&title=' + encodeURIComponent(_title)+ //参数title设置分享的标题|默认当前页标题,可选参数
'&content=utf-8'+ //参数content设置页面编码gb2312|utf-8,可选参数
//'&pic=' + encodeURIComponent(_pic||'')+ //参数pic设置图片链接|默认为空,可选参数
//'&searchPic=false';
'&searchPic=true';
window.open(_shareUrl,'_blank');
});
//分享到微信
//生成二维码
qrCreate(_url);
var _qr = $('#js-qrcode-wrap');
var _body = $('body');
$('#js-share-weixin').on('click',function(e){
_qr.removeClass('hidden');
e.stopPropagation();
_body.off('click').on('click',function(e){
//遍历父级
for(var n=e.target;n;){
if(_qr.hasClass('hidden')||n.id=='js-qrcode-wrap')return false;
n = n.parentNode;
}
_qr.addClass('hidden');
_body.off('click');
});
});
$('#js-qrcode-close').on('click',function(){
_qr.addClass('hidden');
_body.off('click');
});
};