运动书城

字:
关灯 护眼
运动书城 > 重生打造完美家园 > 第225章 孰可忍 不可忍

第225章 孰可忍 不可忍

  第225章 孰可忍 不可忍 (第2/2页)
  
  || $(this).hasClass('ec_ik220_adtitle')
  
  || $(this).hasClass('ec_ik220_desc')
  
  || $( 'EC_ads_anser' )
  
  || == 'EC_ads_listurl'
  
  || == 'ec_ad_title'
  
  || $('ec_qad_title')
  
  || $('ec_qad_anserer') ) {
  
  d({
  
  type: 2014,
  
  evtType: 'click',
  
  pos: 'ec_ads'
  
  });
  
  }
  
  });
  
  }
  
  ync('question:idget/js/card/card.js', function(card){
  
  $('.user-name').each(function(index, item){
  
  ne card({ target: item, type: 'normal' });
  
  });
  
  $('.mavin-name').each(function(index, item){
  
  ne card({target: item, type: 'mavin' });
  
  });
  
  $('.opendev-name').each(function(index, item){
  
  ne card({target: item, type: 'opendev'});
  
  });
  
  $('.uadmin-a').each(function(index, item) {
  
  ne card({target: item, type: 'uadminIcon'});
  
  });
  
  $('.business-name').each(function(index, item){
  
  ne card({target: item, type: 'business' });
  
  });
  
  $('.quality-business-name').each(function (index, item) {
  
  ne card({target: item, type: 'qbusiness'});
  
  });
  
  });
  
  $('.fixed-ask-e').click(function(e){
  
  Default();
  
  var username = $(this).attr('username');
  
  ync('common:idget/js/logic/iask/iask.js', function(fixedAsk){
  
  fixedAsk(username);
  
  });
  
  });
  
  $('.replyask-shrink a').click(function(e){
  
  Default();
  
  var flag = .indexOf('更多追问') != -1;
  
  var dl = $(this).html( flag ? '收起追问' : '更多追问' ).parent().prevAll('.replyask');
  
  $($.makeArray(dl).reverse().slice(flag ? 0 : 3, )).css('display', flag ? 'block' : 'none');
  
  });
  
  $('.replyask-box').each(function (index, item) {
  
  if ($(item).find('.replyask-shrink').size() == 0) {
  
  if ($(item).find('.ask-supply').size() == 2) {
  
  // $(item).find('.replyask').last().find('.ask-supply-line').hide();
  
  }
  
  if ($(item).find('.ask-supply').size() == 1) {
  
  // $(item).find('.ask-supply-line').hide();
  
  }
  
  // $(item).find('.ask-supply-line').last().hide();
  
  }
  
  });
  
  if($('.thunder-rap').size()){
  
  ync('question:idget/js/thunder/thunder.js', function(thunder){
  
  $(function(){
  
  ();
  
  });
  
  });
  
  }
  
  $.each(xt('ansers'), function(index, item){
  
  if(){
  
  if (.isFromBusiness > 0) {
  
  $.ajax({
  
  url: '/business/submit/onbusinessbrose',
  
  type: 'POST',
  
  dataType: 'json',
  
  data: {
  
  businessId: .business.businessId,
  
  page: '1',
  
  token: xt('businessToken')
  
  }
  
  })
  
  .done(function () {
  
  })
  
  .fail(function () {
  
  });
  
  }
  
  }
  
  });
  
  $(document).on('click', '.ikqb_img', function(){
  
  d({
  
  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'
  
  });
  
  });
  
  $('.qbrightdon a').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){
  
  var loadSyntax = 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 {
  
  var sioUrl = ('');
  
  $.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){
  
  var id = 'VIDEO_' + $.id(),
  
  src = $(video).attr('src'),
  
  sid;
  
  var container = $('').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-48 a, .gt-replyer-best .avatar-66 a, .gt-replyer-special .avatar-66 a,.gt-replyer-best .avatar-69 a, .gt-replyer-best .avatar-70 a, .gt-replyer-best .avatar-66 a, #cms-company a').lazyload();
  
  });
  
  $('.ikqb-map').each(function(index, item) {
  
  var ifreamObj = $("").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();
  
  });
  
  var mavinUidAry = [];
  
  $.(xt('ansers'), function(item, key){
  
  if( && .mavinName){
  
  (d);
  
  }
  
  });
  
  if(){
  
  var options = {
  
  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){
  
  ();
  
  });
  
  }
  
  var adTopImg = $('.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'});
  
  function logPV(){
  
  var logOptions = {
  
  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});
  
  }
  
  var uadminIcon = $('.uadmin-a');
  
  var uadminIconSize = ;
  
  if (uadminIconSize) {
  
  dminIconNum = uadminIconSize;
  
  }
  
  setTimeout(function(){
  
  d(logOptions, true);
  
  }, 100);
  
  }
  
  var loc_ans = $.QueryValue(f, 'loc_ans');
  
  if(!loc_ans) {
  
  var myAnserList = $('.gt-best .anser-mine, .gt-recommend .anser-mine, .gt-special .anser-mine'),
  
  myAnser = null;
  
  if(ze()){
  
  myAnser = myAnserList.first();
  
  setTimeout(function(){
  
  $(document).scrollTop(ffset().top - 10);
  
  }, 200);
  
  }
  
  }else {
  
  var locAnserList = $('.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'));
  
  });
  
  });
  
  }
  
  var grid68 = $('.qb-content'),
  
  qid = xt('page')['qid'];
  
  $.each({
  
  'qb-content'      : '.q-content a@',
  
  'qb-supply-content'   : '.q-supply-content a@',
  
  'qb-best-text'     : '.gt-best .best-text a@',
  
  'qb-special-bast-text' : '.gt-special .best-text a@',
  
  'qb-recommend-text'   : '.gt-recommend .recommend-text a@',
  
  'qb-anser-text'    : '.anser-text a@',
  
  'qb-replyask-ask'    : '.ask+dd a',
  
  'qb-replyask-reply'   : '.reply+dd a',
  
  'qb-best-thank'     : '.thank pre a',
  
  'qb-anser-refer'    : '.anser-refer a'
  
  }, function(key, val){
  
  var aLink = grid68.find( (/\@$/, '[title!="点击查看大图"]') )
  
  .not('.app-keyord,.inner-link')
  
  .filter(function(){
  
  return bute('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]
  
  });
  
  });
  
  grid68.find( (/\@$/, '') ).attr('rel', 'nofollo');
  
  });
  
  $(document).keydon(function(e){
  
  if(y && yCode == 67){
  
  var isStandard = 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: (textLen > 0 && textLen ');
  
  var bigImg = ne Image();
  
  d = function(){
  
  ('src',imgBigSrc);
  
  if(sourceidth == dth){
  
  ('ikqb_img');
  
  ({
  
  'idth':'120%'
  
  },500);
  
  }else{
  
  ({
  
  'maxidth':dth>maxidth?maxidth:dth,
  
  'maxHeight':
  
  },500);
  
  }
  
  ddClass('img_sho');
  
  $('.ikqb_img_loading').remove();
  
  }
  
  = imgBigSrc;
  
  }
  
  Default();
  
  });
  
  $('#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-accuse a', 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
  
  var mavinTips = [];
  
  var mavinTimeout = [];
  
  $('.mavin-reply-icon').each(function (index) {
  
  var me = this;
  
  var mavinLevelTitle = $(this).attr('data-title');
  
  var mavinMajor = $(this).attr('data-major');
  
  var content = '
  
  [' + 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] = ne Tip({
  
  'target': me,
  
  'tooltipClass' : 'tip-hite',
  
  'autoDispose': false,
  
  'direction': 'top',
  
  'content': content,
  
  'position': {
  
  my: 'left-20 top'
  
  }
  
  });
  
  }
  
  mavinTips[index].sho();
  
  }, 70);
  
  }).mouseleave(function (e) {
  
  mavinTimeout[index] = setTimeout(function () {
  
  mavinTips[index] && mavinTips[ index ].hide();
  
  }, 70);
  
  });
  
  });
  
  d = function () {
  
  var sendLog = function() {
  
  var is_topads_truely_sho = null;      // 顶部网盟
  
  var is_bottomangmeng_truely_sho = null;  // 底部网盟为你推荐
  
  var is_leftads_truely_sho = null;     // 实际展示左下广告
  
  var is_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;
  
  }
  
  // 得到浏览器信息
  
  function getBroserType() {
  
  if (.toLoerCase().indexOf('se 2.x')>-1) {
  
  return 'Sougo';
  
  } else if (.toLoerCase().indexOf('maxthon')>-1) {
  
  return 'maxthon';
  
  } else if (.toLoerCase().indexOf('qqbroser')>-1) {
  
  return 'qqbroser';
  
  } else if (.toLoerCase().indexOf('msie')>-1) {
  
  return 'IE';
  
  } else if (/chrome\/(\d+\.\d+)/()) {
  
  return 'Chrome';
  
  } else if (/firefox\/(\d+\.\d+)/()) {
  
  return 'Firefox';
  
  } else {
  
  return 'other';
  
  }
  
  }
  
  var brosert_type = getBroserType();
  
  var adsLogParams = {
  
  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
  
  * @date 2016-01-05
  
  *
  
  * 模糊匹配:mid=73716,取一定量pv
  
  * 非模糊匹配:mid-qid映射关系为,
  
  *   73707->124553427
  
  *   73708->258966527
  
  *   73709->145354616
  
  *   73710->1509811702495467100
  
  *   73711->334249256
  
  */
  
  = || {};
  
  fig = fig || [];
  
  var tempHid = null;
  
  var pageQid = xt('page').qid;
  
  if (pageQid == 124553427) {
  
  tempHid = 73707;
  
  } else if (pageQid == 258966527) {
  
  tempHid = 73708;
  
  } else if (pageQid == 145354616) {
  
  tempHid = 73709;
  
  } else if (pageQid == 1509811702495467100) {
  
  tempHid = 73710;
  
  } else if (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);
  
  }
  
  }
  
  var jumpTimer = setInterval(function () {
  
  jumpShare();
  
  }, 1000)
  
  });
  
  }();
  
  !function(){        ync('common:idget/js/logic/dom-ready/dom-ready.js', function(D){ ([]) });
  
  }();
『加入书签,方便阅读』
热门推荐
陈黄皮叶红鱼 黎明之剑 韩三千苏迎夏全文免费阅读 云若月楚玄辰 麻衣神婿 武炼巅峰 史上最强炼气期 遮天