242 23 虚实难辨

诡行天下 耳雅 第2页,共2页

type:2014,

bigimg:'click'

});

});

$('').on('click',function(){

d({

type:2014,

area:'ad-right-optimus',

action:'click',

cid:xt('page')['cid'],

cidtop:xt('page')['cidtop'],

cidmid:xt('page')['cidmid']

});

});

$('#gt-nologin-daily').click(function(e){

();

if($().closest('#daily-carousel').size()&&!$().closest('.carousel-control').size()){

d({

type:2014,

page:'question',

pos:'no-login-daily',

action:'click'

});

}

});

$('.gt-daily').on('click','a',function(){

d({

type:2014,

page:'question',

pos:'login-daily',

action:'click'

});

});

$('.qbrightdona').click(function(){

d({

type:2014,

qid:xt('page')['qid'],

area:'medical-right-txt-ads',

action:'click'

});

});

if($('ikaudio').size()){

ddkey({

'audio':1

});

ync('question:idget/js/audio/audio.js',function(audio){

();

});

}

ync('question:idget/js/comment/comment.js',function(comm){

();

});

$('.recommend-text,.best-text,.anser-text,.replyask-content').each(function(i,ansertext){

$(ansertext).find('pre[t="code"]').each(function(i,pre){

varloadsyntax=function(){

syntaxhighlighter(pre);

};

$(pre).text($(pre).html($(pre).html().replace(/

/ig,'##ik_linebreak##')).text().split('##ik_linebreak##').join('\n'));

$(pre).addclass('brush:'+$(pre).attr('l')+';toolbar:false;');

if(yntaxhighlighter){

(pre);

$(ansertext).find('.syntaxhighlighter.code.line').each(function(index,line){

$(ansertext).find('.syntaxhighlighter.gutter.line').eq(index).height($(line).height());

});

}else{

varsiourl=('');

$.sio(siourl).callbybroser(function(){

syntaxhighlighter.defaults['quick-code']=false;

brs=true;

(pre);

$(ansertext).find('.syntaxhighlighter.code.line').each(function(index,line){

$(ansertext).find('.syntaxhighlighter.gutter.line').eq(index).height($(line).height());

});

});

}

});

$(ansertext).find('ikvideo').each(function(i,video){

varid='video_'+$.id(),

src=$(video).attr('src'),

sid;

varcontainer=$('').attr('id',id).insertbefore($(video));

if(dexof('youku')-1&&(sid=(/sid\/(.*?)[\?\/]/))){

if(sid[1]){

src=''+sid[1]+'/f';

}

}

('');

});

});

ync('common:idget/js/ui/lazyload/lazyload.js',function(lazyload){

$('.gt-replyer-best.avatar-48a,.gt-replyer-best.avatar-66a,.gt-replyer-special.avatar-66a,.gt-replyer-best.avatar-69a,.gt-replyer-best.avatar-70a,.gt-replyer-best.avatar-66a,#cms-companya').lazyload();

});

$('.ikqb-map').each(function(index,item){

varifreamobj=$("").attr({

frameborder:'0'

,idth:"430"

,height:"310"

,style:'display:none;'

,classname:'anser-map'

}),

tmpsrc=$(item).attr("map")||$(item).attr("src");

('src',"//zhidao./html/map"+(/^ikno/i,''));

$(item).before(ifreamobj).remove();

fter(

$("

").addclass('f-aid').html("本数据来源于百度地图,最终结果以百度地图最新数据为准。")

).sho();

});

varmavinuidary=[];

$.(xt('ansers'),function(item,key){

if(&&.mavinname){

(d);

}

});

if(){

varoptions={

uids:mavinuidary.join(',')

};

$.post('/mavin/api/getmavinpv',options);

}

if($('dui-faked-video').size()0){

();

}

ync('common:idget/js/logic/ut/ut.js',function(ut){

(['userbar','header','gt-ask','anser-editor','gt-ansers']);

});

if($('file').size()==0){

logpv();

}else{

(logpv);

}

if(xt('user')['isuseradmin']!='1'){

ync('question:idget/js/select-search/select-search.js',function(a){

();

});

}

varadtopimg=$('.adtopimg');

if(&&('display')!='none'){

ddkey({

adtopimg_ne:1

});

('click',function(){

d({

page:'question',

pos:'adtopimg_ne',

action:'click',

type:2014

});

});

}

({key:2014,query:'body',action:'click'});

functionlogpv(){

varlogoptions={

type:2014,

page:'question',

action:'entrance',

screen:parseint($('body').height()/$(indo).height()),

qid:xt('page')['qid'],

cid:xt('page')['cid'],

vie:xt('page').isvie,

cidtop:xt('page')['cidtop'],

cidmid:xt('page')['cidmid'],

refer:ferrer

};

ddkey({

sample_ne_qb:0

});

ddkey({

evasampling:0

});

ddkey({

sample_qb_50per:""

});

ddkey({

qid:xt('page')['qid']

});

if(xt('page').relateqids){

qids=xt('page').relateqids;

}

if(xt('page').relatetopicqids){

qids=xt('page').relatetopicqids;

}

if($('').length){

ddkey({'optimus':1});

}

if($('.classinfo').length){

ddkey({'classinfo':1});

}

varuadminicon=$('.uadmin-a');

varuadminiconsize=;

if(uadminiconsize){

dminiconnum=uadminiconsize;

}

settimeout(function(){

d(logoptions,true);

},100);

}

varloc_ans=$.queryvalue(f,'loc_ans');

if(!loc_ans){

varmyanserlist=$('.gt-best.anser-mine,.gt-recommend.anser-mine,.gt-special.anser-mine'),

myanser=null;

if(ze()){

myanser=rst();

settimeout(function(){

$(document).scrolltop(ffset().top-10);

},200);

}

}else{

varlocanserlist=$('.gt-best.anser,.gt-recommend.anser,.gt-special.anser'),

locanser=null;

(function(index,item){

if($(item).attr("id").indexof(loc_ans)!=-1){

locanser=$(item);

}

});

if(locanser){

settimeout(function(){

$(document).scrolltop(().offset().top-10);

},200);

}

}

if(xt('egg')){

ync('question:idget/js/egg/egg.js',function(egg){

$(function(){

(xt('egg'));

});

});

}

vargrid68=$('.qb-content'),

qid=xt('page')['qid'];

$.each({

'qb-content':'.q-contenta@',

'qb-supply-content':'.q-supply-contenta@',

'qb-best-text':'.gt-best.best-texta@',

'qb-special-bast-text':'.gt-special.best-texta@',

'qb-recommend-text':'.gt-recommend.recommend-texta@',

'qb-anser-text':'.anser-texta@',

'qb-replyask-ask':'.ask+dda',

'qb-replyask-reply':'.reply+dda',

'qb-best-thank':'.thankprea',

'qb-anser-refer':'.anser-refera'

},function(key,val){

varalink=d((/\@$/,'[title!="点击查看大图"]'))

.not('.app-keyord,.inner-link')

.filter(function(){

returnbute('href').match(/^http/i)&&!=''&&!$(this).closest('.ed2k-rap').size()&&!$(this).closest('.thunder-rap').size()

});

if(0){

$(alink).each(function(i,item){

d({

'type':2014,

'page':'question',

'qid':qid,

'area':key,

'action':'linkpv',

'text':bute('href'),

'host':bute('href').split('/')[2]

});

});

}

(function(){

d({

'type':2014,

'page':'question',

'qid':qid,

'area':key,

'action':'linkclick',

'text':bute('href'),

'host':bute('href').split('/')[2]

});

});

d((/\@$/,'')).attr('rel','nofollo');

});

$(document).keydon(function(e){

if(y&&ycode==67){

varisstandard=boolean(),

selection=isstandard?():.createrange(),

text=(isstandard?selection+'':xt).replace(/\n+/g,''),

textlen=;

d({

type:2014,

page:'question',

qid:xt('page')['qid'],

uid:xt('user')['id'],

action:'ctrl+c',

text:(textlen0&&textlen7){

$('.ikqb_img_alink').each(function(i,item){

varimg=$(item).find('.ikqb_img').get(0);

varimgidth=$(img).idth(),

imgheight=$(img).height(),

conoffx=$(item).parent().offset().left,

imgoffx=$(img).offset().left,

imgdiff=imgoffx-conoffx,

imgidthmax=600-imgdiff,

tmpimgheight=imgheightimgidthmax?imgidthmax:imgheight,

tmpimgidth=imgheightimgidthmax?(imgidthmax*imgidth/imgheight):imgidth,

imgoff=(tmpimgidth-tmpimgheight)/2;

varhtml=[

'',

'向左转',

'|',

'向右转',

''

].join('');

$(item).before(html);

$(item).prev().css({

'left':imgdiff+'px'

});

$(img).css({

'position':'relative',

'top':0,

'left':imgdiff+'px'

}).addclass('css-turn-0');

$(item).prev().find('.img-turn-left').click(function(e){

d({

type:2014,

action:'click',

page:'question',

area:'img-turn-left'

});

varhasfind=false;

for(vari=0;i9){

$(img).css({

'position':'relative',

'top':imgoff+'px',

'left':-(imgoff-imgdiff)+'px'

});

}

if(imgheightimgidthmax){

$(img).height(tmpimgheight);

}

$(item).height(tmpimgidth);

}else{

$(img).css({

'position':'relative',

'top':0,

'left':imgdiff+'px'

});

if(imgheightimgidthmax){

$(img).height(imgheight);

}

$(item).height(imgheight);

}

}

}

});

$(item).prev().find('.img-turn-right').click(function(e){

d({

type:2014,

action:'click',

page:'question',

area:'img-turn-right'

});

varhasfind=false;

for(vari=0;i9){

$(img).css({

'position':'relative',

'top':imgoff+'px',

'left':-(imgoff-imgdiff)+'px'

});

}

if(imgheightimgidthmax){

$(img).height(tmpimgheight);

}

$(item).height(tmpimgidth);

}else{

$(img).css({

'position':'relative',

'top':0,

'left':imgdiff+'px'

});

if(imgheightimgidthmax){

$(img).height(imgheight);

}

$(item).height(imgheight);

}

}

}

});

});

}

});

$('#search-form').submit(function(e){

d({

type:2014,

page:'question',

position:'searchbtn',

action:'click'

});

default();

});

});

//统计qb页用户名片的展现量、查看qb页用户名片的用户数

$('.user-name').on('mouseenter',function(e){

d({

'page':'qb',

'type':2060,

'action':'hover',

'area':'user-name'

});

}).on('click',function(e){

d({

'page':'qb',

'type':2060,

'action':'click',

'area':'user-name'

});

});

//“向ta求助”的点击量、点击用户数

$('body').on('click','.fixed-ask,.fixed-ask-e',function(e){

d({

'page':'qb',

'type':2060,

'action':'click',

'area':'fixed-ask'

});

});

//“举报“下“描述不清”等三项的展现量(pv)、“描述不清”等三项的点击总量、“描述不清”等三项的点击用户数

$('body').on('mouseenter','.gt-accuse.accuse-enter',function(e){

d({

'page':'qb',

'type':2060,

'action':'hover',

'area':'accuse-enter'

});

}).on('click','.gt-accusea',function(e){

d({

'page':'qb',

'type':2060,

'action':'click',

'area':'gt-accuse-a'

});

});

//新增分享打点统计

if($.queryvalue(f,'sharesource')){

d({

module:'question',

page:'qb',

project:'ne-qb-share',

postion:'ne-share',

action:'vie-by-share-'+$.queryvalue(f,'sharesource')

});

}

//个人行家回答特型tooltip

varmavintips=[];

varmavintimeout=[];

$('.mavin-reply-icon').each(function(index){

varme=this;

varmavinleveltitle=$(this).attr('data-title');

varmavinmajor=$(this).attr('data-major');

varcontent='

['+mavinleveltitle+']已完成实名认证+行业认证';

if(mavinmajor==1){

content+='+专业认证';

}

content+='

';

$(this).mouseenter(function(e){

$('div[role="tooltip"]').hide();

cleartimeout(mavintimeout[index]);

mavintimeout[index]=settimeout(function(){

if(!mavintips[index]){

mavintips[index]=netip({

'target':me,

'tooltipclass':'tip-hite',

'autodispose':false,

'direction':'top',

'content':content,

'position':{

my:'left-20top'

}

});

}

mavintips[index].sho();

},70);

}).mouseleave(function(e){

mavintimeout[index]=settimeout(function(){

mavintips[index]&&mavintips[index].hide();

},70);

});

});

d=function(){

varsendlog=function(){

varis_topads_truely_sho=null;//顶部网盟

varis_bottomangmeng_truely_sho=null;//底部网盟为你推荐

varis_leftads_truely_sho=null;//实际展示左下广告

varis_rightads_truely_sho=null;//实际展示左下广告

//顶部网盟广告--从元素高度判断

if(xt('ads_log_toprequest')){

if($('.left-top-ads').height()==0

||$('.left-top-ads').idth()==0){

is_topads_truely_sho=0;

}else{

is_topads_truely_sho=1;

}

}else{

is_topads_truely_sho=0;

}

//底部为你推荐网盟广告--从iframe判断

if(xt('ads_log_bottomrequest')){

if($('.gt-bottom-union').find('iframe').size()==0){

is_bottomangmeng_truely_sho=0;

}else{

is_bottomangmeng_truely_sho=1;

}

}else{

is_bottomangmeng_truely_sho=0;

}

//同步凤巢广告--从元素高度判断

if(xt('ads_log_leftdon')){

if($('#qbleftdon-container').height()==0

||$('#qbleftdon-container').idth()==0){

is_leftads_truely_sho=0;

}else{

is_leftads_truely_sho=1;

}

}else{

is_leftads_truely_sho=0;

}

//同步右侧广告,看是否存在dom以及是否展示

if(xt('ads_log_right')){

if($('.idget-sma').height()==0

||$('.idget-sma').idth()==0){

is_rightads_truely_sho=0;

}else{

is_rightads_truely_sho=1;

}

}else{

is_rightads_truely_sho=0;

}

//得到浏览器信息

functiongetbrosertype(){

if(.toloercase().indexof('se2.x')-1){

return'sougo';

}elseif(.toloercase().indexof('maxthon')-1){

return'maxthon';

}elseif(.toloercase().indexof('qqbroser')-1){

return'qqbroser';

}elseif(.toloercase().indexof('msie')-1){

return'ie';

}elseif(/chrome\/(\d+\.\d+)/()){

return'chrome';

}elseif(/firefox\/(\d+\.\d+)/()){

return'firefox';

}else{

return'other';

}

}

varbrosert_type=getbrosertype();

varadslogparams={

type:2014,

page:'question',

action:'ads_block_info_hour',

is_topangmeng_should_sho:xt('ads_log_toprequest')||0,

is_topangmeng_truely_sho:is_topads_truely_sho,

is_bottomangmeng_should_sho:xt('ads_log_bottomrequest')||0,

is_bottomangmeng_truely_sho:is_bottomangmeng_truely_sho,

is_leftads_should_sho:xt('ads_log_leftdon')||0,

is_leftads_truely_sho:is_leftads_truely_sho,

is_rightads_should_sho:xt('ads_log_right')||0,

is_rightads_truely_sho:is_rightads_truely_sho,

broser_type:brosert_type

};

d(adslogparams);

};

settimeout(sendlog,1000);

};

/*

*设置hunter用户体验报告

*@fe-hanzonge@pm-liulin04

*@date2016-01-05

*

*模糊匹配:mid=73716,取一定量pv

*非模糊匹配:mid-qid映射关系为,

*73707-124553427

*73708-258966527

*73709-145354616

*73710-1509811702495467100

*73711-334249256

*/

=||{};

fig=fig||[];

vartemphid=null;

varpageqid=xt('page').qid;

if(pageqid==124553427){

temphid=73707;

}elseif(pageqid==258966527){

temphid=73708;

}elseif(pageqid==145354616){

temphid=73709;

}elseif(pageqid==1509811702495467100){

temphid=73710;

}elseif(pageqid==334249256){

temphid=73711;

}else{

if(parseint(dom()*100)',

'分享',

'',

''

].join('');

$('.jump-top-box').find('.jump-task-list').before(jumpshare);

({

target:$('.jump-share.share-area'),

pageurl:''+xt('page').qid,

title:,

pos:'rightsilde',

logopt:{

module:'question',

page:'qb',

project:'ne-qb-share',

postion:'ne-share-right'

}

});

//如果有行家工作室,放在最顶部

if($('.jump-top-box').find('.jump-goto-mavin').size()){

$('.jump-top-box').find('.jump-share').before($('.jump-top-box').find('.jump-goto-mavin'));

}

jumptimer&&clearinterval(jumptimer);

}

}

varjumptimer=setinterval(function(){

jumpshare();

},1000)

});

}();

!function(){ync('common:idget/js/logic/dom-ready/dom-ready.js',function(d){([])});

}();