Advertisement
nhadatsonnghia

Untitled

Nov 12th, 2019
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type='text/javascript'>
  2. //<![CDATA[
  3. $('.featured-box .HTML .widget-content')['each'](function() {
  4.  var _0x1752x2 = $(this)['prev']('h2')['text'](),
  5.  _0x1752x3 = $(this)['find']('span')['attr']('data-label'),
  6.  _0x1752x4 = $(this)['find']('span')['attr']('data-no'),
  7.  _0x1752x5 = $(this)['parent']()['attr']('id'),
  8.  _0x1752x6 = $(this)['find']('span')['attr']('data-type');
  9.  if (_0x1752x6 != undefined && _0x1752x6['match']('tysum')) {
  10.  $['ajax']({
  11.  url: '/feeds/posts/default/-/' + _0x1752x3 + '?alt=json-in-script&max-results=' + _0x1752x4,
  12.  type: 'get',
  13.  dataType: 'jsonp',
  14.  success: function(_0x1752x1) {
  15.  var _0x1752x7 = '';
  16.  var _0x1752x8 = '<div class="ty-feat">';
  17.  for (var _0x1752x9 = 0; _0x1752x9< _0x1752x1['feed']['entry']['length']; _0x1752x9++) {
  18.  for (var _0x1752xa = 0; _0x1752xa< _0x1752x1['feed']['entry'][_0x1752x9]['link']['length']; _0x1752xa++) {
  19.  if (_0x1752x1['feed']['entry'][_0x1752x9]['link'][_0x1752xa]['rel'] == 'alternate') {
  20.  _0x1752x7 = _0x1752x1['feed']['entry'][_0x1752x9]['link'][_0x1752xa]['href'];
  21.  break
  22.  }
  23.  };
  24.  var _0x1752xb;
  25.  for (var _0x1752xc = 0; _0x1752xc< _0x1752x1['feed']['entry'][_0x1752x9]['link']['length']; _0x1752xc++) {
  26.  if ((_0x1752x1['feed']['entry'][_0x1752x9]['link'][_0x1752xc]['rel'] === 'replies') && (_0x1752x1['feed']['entry'][_0x1752x9]['link'][_0x1752xc]['type'] === 'text/html')) {
  27.  _0x1752xb = _0x1752x1['feed']['entry'][_0x1752x9]['link'][_0x1752xc]['title'];
  28.  break
  29.  }
  30.  };
  31.  _0x1752xb = parseInt(_0x1752xb, 10);
  32.  if ('content' in _0x1752x1['feed']['entry'][_0x1752x9]) {
  33.  var _0x1752xd = _0x1752x1['feed']['entry'][_0x1752x9]['content']['$t']
  34.  } else {
  35.  if ('summary' in b_rc) {
  36.  var _0x1752xd = _0x1752x1['feed']['entry'][_0x1752x9]['summary']['$t']
  37.  } else {
  38.  var _0x1752xd = ''
  39.  }
  40.  };
  41.  var _0x1752xe = /<\S[^>]*>/g;
  42.  _0x1752xd = _0x1752xd['replace'](_0x1752xe, ''), _0x1752xd['length'] > 120 && (_0x1752xd = '' + _0x1752xd['substring'](0, 100) + '...');
  43.  var _0x1752xf = _0x1752x1['feed']['entry'][_0x1752x9]['title']['$t'];
  44. var s0 = _0x1752x1['feed']['entry'][_0x1752x9]['category'][0]['term'];
  45. var s1 = _0x1752x1['feed']['entry'][_0x1752x9]['category'][1]['term'];
  46. var s10 = _0x1752x1['feed']['entry'][_0x1752x9]['category'][10]['term'];
  47. var s2 = _0x1752x1['feed']['entry'][_0x1752x9]['category'][2]['term'];
  48. var s3 = _0x1752x1['feed']['entry'][_0x1752x9]['category'][3]['term'];
  49. var s4 = _0x1752x1['feed']['entry'][_0x1752x9]['category'][4]['term'];
  50. var s5 = _0x1752x1['feed']['entry'][_0x1752x9]['category'][5]['term'];
  51. var s6 = _0x1752x1['feed']['entry'][_0x1752x9]['category'][6]['term'];
  52. var s7 = _0x1752x1['feed']['entry'][_0x1752x9]['category'][7]['term'];
  53. var s8 = _0x1752x1['feed']['entry'][_0x1752x9]['category'][8]['term'];
  54. var s9 = _0x1752x1['feed']['entry'][_0x1752x9]['category'][9]['term'];
  55. var s11 = _0x1752x1['feed']['entry'][_0x1752x9]['category'][11]['term'];
  56. var s12 = _0x1752x1['feed']['entry'][_0x1752x9]['category'][12]['term'];
  57. var s13 = _0x1752x1['feed']['entry'][_0x1752x9]['category'][13]['term'];
  58.  var _0x1752x11 = _0x1752x1['feed']['entry'][_0x1752x9]['author'][0]['name']['$t'];
  59.  var _0x1752x12 = _0x1752x1['feed']['entry'][_0x1752x9]['author'][0]['gd$image']['src'];
  60.  var _0x1752x13 = _0x1752x1['feed']['entry'][_0x1752x9]['published']['$t'],
  61.  _0x1752x14 = _0x1752x13['substring'](0, 4),
  62.  _0x1752x15 = _0x1752x13['substring'](5, 7),
  63.  _0x1752x16 = _0x1752x13['substring'](8, 10),
  64.  _0x1752x17 = month_format[parseInt(_0x1752x15, 10)] + ' ' + _0x1752x16 + ', ' + _0x1752x14;
  65. var s14 = _0x1752x16 + '/' + _0x1752x15 + '/' + _0x1752x14;
  66.  var _0x1752x18 = _0x1752x1['feed']['entry'][_0x1752x9]['content']['$t'];
  67.  var _0x1752x19 = $('<div>')['html'](_0x1752x18);
  68.  if (_0x1752x18['indexOf']('<img') > -1) {
  69.  var _0x1752x1b = _0x1752x19['find']('img:first')['attr']('src');
  70.  var _0x1752xc = _0x1752x1b
  71.  } else {
  72.  var _0x1752xc = no_image
  73.  };
  74.  _0x1752x8 += '<div class="post-grid-item" style="visibility: visible;"><div class="post"><div class="post-home-image"><div class="ms"><span class="mslb">' + s1 + '</span></div><div class="hot"><span class="hotlb">' + s3 + '</span></div><a class="post-thumb" href="' + _0x1752x7 + '"  title="' + _0x1752xf + '"><img class="item_thumb post-thumbnail " alt="' + _0x1752xf + '" src="' + _0x1752xc + '"/></a></div><div class="post-home-product"><font class="retitle"><h3 class="post-title entry-title"><a href="' + _0x1752x7 + '">' + _0x1752xf + '</a></h3></font><div style="clear:both;"/><div class="date-header"><div id="meta-post"><span class="post-product-header"><span class="bed"><span class="bedlb">' + s8 + '</span></span><span class="bath"><span class="bathlb">' + s10 + '</span></span><span class="dt"><span class="dtlb">' + s0 + '</span></span><span class="mt"><span class="mtlb">' + s3 + '</span></span></div><div style="clear:both;"/></div><span class="sale"><span class="salelb">' + s11 + '</span></span><span class="price"><span class="pricelb">' + s9 + '</span></span><span class="m2"><span class="m2lb">' + s9 + '</span></span><div class="marker"><i class="fa fa-map-marker"/><span class="duonggovap"><span class="duonggovaplb">' + s13 + '</span></span><span class="duongq12"><span class="duongq12lb">' + s13 + '</span></span><span class="phuongq12"><span class="phuongq12lb">' + s5 + '</span></span><span class="phuonggovap"><span class="phuonggovaplb">' + s5 + '</span></span><span class="quangv"><span class="quangvlb">' + s2 + '</span></span><span class="quan12"><span class="quan12lb">' + s2 + '</span></span></div><div id="bottom-meta-post"><span class="post-timestamp"><i class="fa fa-calendar" style="margin: 0 2px;"/><abbr class="published timeago" expr:title="data:post.timestampISO8601" itemprop="datePublished">' + s14 + '</abbr></span></div></div></div></div>'
  75.  };
  76.  _0x1752x8 += '</div>';
  77.  $('.featured-box .HTML .widget-content')['each'](function() {
  78.  var _0x1752x1c = $(this)['parent']()['attr']('id');
  79.  if (_0x1752x1c == _0x1752x5) {
  80.  $(this)['html'](_0x1752x8);
  81.  $(this)['parent']()['addClass']('tysum');
  82.  }
  83.  })
  84.  }
  85.  })
  86.  } else {
  87.  $('.tysum-wrapper')['remove']()
  88.  }
  89. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement