0 0 0

【广告】离雨云挂机宝服务器,强烈推荐

管理员组 安生 管理员组
8月前 532

支持小白菜|登录助手|端口10个【可免费加】

非常便宜的挂机宝,推荐

我一直用的都是这家的服务器和挂机宝

点击下面链接注册购买

https://14yun.cn/aff/PHGFXPHX

最后于 7月前 被安生编辑 ,原因:
看过的人 (15)
  • 2627914518
  • VV
  • shi15251337719
  • abcd
  • 云沐
  • 安生
  • 2435208682
  • 1270774692
  • 3384459751
  • 188846909
最新回复 (0)
全部楼主

    暂无评论

    • 全网机器人框架插件论坛
      2
          

请先登录后发表评论!

返回
您是第9999999位访客
机器人论坛

function xn_read_unread(tids, tid) { // 当前时间 var time = xn.time(); // 多长时间内的主题为最新主题 var time_range = 86400 * 3; // 三天内的 tids var recent_tids = $.pdata('recent_tids') || {}; // 已读的 tids var view_tids = $.pdata('view_tids') || {}; // 提取列表页的 tid function fetch_recent_tids(tids) { var changed = false; $.each(tids, function(tid, last_date) { if(time - last_date < time_range) { recent_tids[tid] = last_date; changed = true; } }); if(changed) $.pdata('recent_tids', recent_tids); } // 清理最近的 tid function gc_recent_tids() { var changed = false; $.each(recent_tids, function(tid, last_date) { if(time - last_date > time_range) { delete recent_tids[tid]; changed = true; } }); if(changed) $.pdata('recent_tids', recent_tids); } function gc_view_tids() { var changed = false; $.each(view_tids, function(tid, last_date) { if(!recent_tids[tid]) { delete view_tids[tid]; changed = true; } }); if(changed) $.pdata('view_tids', view_tids); } function save_view_tid(tid) { if(!recent_tids[tid]) return; view_tids[tid] = time; $.pdata('view_tids', view_tids); } if(tids) { fetch_recent_tids(tids); gc_recent_tids(); //gc_view_tids(); } if(tid) save_view_tid(tid); // 三天内的主题标记为已读 // 遍历主题列表,标记最近的,并且未读的为加粗 $('.thread').each(function() { var jthis = $(this); var tid = jthis.attr('tid') || jthis.data('tid'); if(recent_tids[tid] && recent_tids[tid] > xn.intval(view_tids[tid])) { jthis.find('.subject').addClass('font-weight-bold'); } }); }