![Улыбнись (23 фото)](https://stream-info.ru/wp-content/uploads/2019/12/ulybnis-23-foto.jpg)
12 часов назад
6276
Комментарии (8)
Показать сначала комментарии:
‘); } });
} var i = 1; $(«#dle-content .newsarea div.picture»).each(function(){ var img = $(this).find(«img»).attr(«src»); var domain = window.location.hostname; var imgUrl = img.indexOf(«https://»); if ( imgUrl == -1 ) img = ‘https://’ + domain + img; $(this).append(‘
‘; $(this).append(social); i++; });
$(function () { $(‘.social’).mouseover(function(){ $(«.highslide»).replaceWith(function(index, oldHTML){ return $(«
}); $(function () { var bar = $(‘#topbar’); var top = bar.css(‘top’); var img_post = $(‘.newsarea img’); var beginning_comm = $(‘#dle-comments-list’); if (img_post.length 0) { bar.stop().css({ ‘position’: ‘absolute’ }); } if ($(this).scrollTop() > 200) { bar.stop().css({ ‘position’: ‘fixed’, ‘overflow’: ‘visible’}).animate({ ‘top’: ‘0px’, ‘height’: ’40px’, ‘opacity’: ‘1’ }, 100); } else { bar.stop().css({ ‘position’: ‘fixed’, ‘overflow’: ‘hidden’ }).animate({ ‘top’: top, ‘height’: ‘0’, ‘opacity’: ‘0’ }, 100); } if (beginning_comm.length) { if ($(this).scrollTop() > beginning_comm.offset().top) { bar.stop().css({ ‘position’: ‘fixed’, ‘overflow’: ‘hidden’ }).animate({ ‘top’: top, ‘height’: ‘0’, ‘opacity’: ‘0’ }, 100); bar.css(‘overflow’, ‘hidden’); } } }); // $(‘#uibg’).parent().css(‘visibility’, ‘hidden’);
}); window.addEventListener(‘scroll’, function () { if($(this).scrollTop() > 200) { $(‘.rating’).clone().appendTo(‘.topbar_rating’); $(‘.log-reg’).clone(true).appendTo(‘.topbar_log_reg’); $(«a[class^=’fav-id-‘]»).clone().appendTo(‘.topbar_fav_post’); this.removeEventListener(‘scroll’, arguments.callee); }
}); var prev_post = ‘https://trinixy.ru/185128-mgnovennoe-nakazanie-na-doroge.html’;
var next_post = ‘https://trinixy.ru/185287-babushka-s-vnukom-fotografiruyutsya-v-bezumnyh-naryadah.html’;
if (prev_post==»javascript:void(0);») $(‘.prev_post’).hide();
if (next_post==»javascript:void(0);») $(‘.next_post’).hide();
$(‘.prev_post a’).attr({ ‘href’ : prev_post });
$(‘.next_post a’).attr({ ‘href’ : next_post });
/*comments collapse begin*/
function collapsecomments() { $(«#dle-comments-list > ol.comments-tree-list > li.comments-tree-item»).each(function(){ if ($(this).find(«li.comments-tree-item»).length > 1) { var comm_count=$(this).find(«li.comments-tree-item»).length-1; if ($(this).find(«ol.comments-tree-list .readall»).length==0) $(this).find(«ol.comments-tree-list li[rel=1]:first»).after(«
Читать все ответы на комментарий («+comm_count+»)
«); $(this).find(«li.comments-tree-item:not(:first)»).hide(); } //$(this).find(«li.comments-tree-item»).closest(«ol.comments-tree-list»).not(‘.comments-tree-list:first’).css({ «background»: «#eee», «padding»: «10px» }); $(this).find(«li.comments-tree-item»).find(«div[id^=comment-id-]»).addClass(‘comment-id-tree-item’); //$(this).find(«ol.comments-tree-list:last»).css({ «padding-bottom»: «20px» }); $(this).find(«li.comments-tree-item»).find(«ol.comments-tree-list»).css(«padding-left», «0»); $(this).find(«li.comments-tree-item»).find(«a[onmouseover^=dle_copy_quote]»).remove(); });
}
collapsecomments(); // Для прокрутки по ссылке до комментария
var anchor = document.location.href.split(‘#’); if (typeof anchor[1] != ‘undefined’) { var anchor_item = anchor[1].split(‘-‘); if (typeof anchor_item[2] != ‘undefined’) { var parent_tree_comment = $(‘#comments-tree-item-‘ + anchor_item[2]).closest(«li.comm-free-parent»); parent_tree_comment.find(«li.comments-tree-item»).show(); parent_tree_comment.find(«div.readall»).hide(); //$(«html, body»).animate({ scrollTop: $($(‘#comments-tree-item-‘ + anchor_item[2])).offset().top }, 500); $(‘#comment-id-‘ + anchor_item[2]).hide(); $(‘#comment-id-‘ + anchor_item[2]).show(2000); }
} // End $(«.readall»).click(function(){ $(this).closest(«ol.comments-tree-list»).find(«li.comments-tree-item»).show(); $(this).hide();
});
function togglecomments(){ if ($(«#togglecomments»).attr(«data») == «collapse») { $(«#togglecomments»).attr(«data», «collapsed»); $(«#togglecomments»).find(«img»).attr(«src», «/templates/trinixy15/images/dlet-sign-04-1.gif»); $(‘.readall’).hide(); $(«ol.comments-tree-list li.comments-tree-item»).show(); $(«#togglecomments»).find(«img»).attr(«title», «Свернуть все вложенные комментарии»); } else { $(«#togglecomments»).attr(«data», «collapse»); $(«#togglecomments»).find(«img»).attr(«src», «/templates/trinixy15/images/dlet-sign-03-1.gif»); collapsecomments(); $(‘.readall’).show(); $(«#togglecomments»).find(«img»).attr(«title», «Показать все вложенные комментарии»); }
}
/*comments collapse end*/
Информация