PageSourceSearch

https://irecommend.ru/sites/all/modules/_custom/irecommendru/irecommendru.js?v=b4&hash=fbb94210203a9bb4

js irecommend.ru collected 2026-09-27 20:55:28 UTC 2,748 bytes, 6 lines download raw bytes

1(function(b,n,e,h){var x=!1,y=!1;n.behaviors.irecommendru=function(t){var l={};"object"===typeof n.settings.irecommendru.seealso&&(l=n.settings.irecommendru.seealso);var p=b(".mainpage-pager-display").not(".processed").addClass("processed");p.length&&(b("#home-popular-reviews .load-more-reviews:not(.processed)").addClass("processed").on("click",function(){var k=b(this).closest(".quicktabs_tabpage");k.find(".main-page-best-reviews.collapsed").removeClass("collapsed");k.find(".mainpage-popular-pager-display").addClass("hidden")}),
2t=function(){if("visible"===h.visibilityState&&!x){x=!0;var k=p.data("hash"),u=p.data("sort"),q=p.data("offset"),m=b("#home-popular-reviews"),r=".main-page-best-reviews."+u,z=function(c){return b(r).find(".smTeaser[data-nid="+c+"]")},v=q,d=null,g=null,w=0,A=!1;null!==e.history.state&&"undefined"!==typeof e.history.state&&("undefined"!==typeof e.history.state.bestElemData&&(d=e.history.state.bestElemData),"undefined"!==typeof e.history.state.topReviewsActiveTabData&&(g=e.history.state.topReviewsActiveTabData),
3e.history.replaceState(null,h.title));g&&(m.find(g.class).addClass("active"),g.expanded&&m.find('.load-more-reviews[data-sort="'+g.tab+'"]').trigger("click"));var B=function(){};if(d&&(k=d.listHash,g=!0,"undefined"!==typeof d.offset&&(v=d.offset,w=v-q),"undefined"!==typeof d.hasAdditional&&d.hasAdditional&&(A=!0),"undefined"!==typeof d.rectTop&&"undefined"!==typeof d.nid)){var C=z(d.nid);C.length&&(g=C.offset().top-d.rectTop+e.innerHeight>h.body.scrollHeight);g&&(B=function(){var c=b(r+" .seealso-items");
4!y&&c.height()>e.innerHeight&&(c=z(d.nid),c.length&&(y=!0,c=c.offset().top-d.rectTop,e.scrollTo(0,c)))})}b(h).on("click",".smTeaser.teaser-item a",function(){var c={};m.length&&b.each(["top6","top24"],function(a,f){a=".qtab-"+f;if(m.find(a).hasClass("active"))return c.topReviewsActiveTabData={tab:f,class:a,expanded:!m.find(".main-page-best-reviews."+f).hasClass("collapsed")},!1});b(r).find(".smTeaser").each(function(a){var f=this.getBoundingClientRect();if(f.top<e.innerHeight&&0<f.bottom)return a+=
51,f=b(r+" .seealso-items").find(".smTeaser"),c.bestElemData={listHash:k,nid:b(this).data("nid"),hasAdditional:0<f.length,offset:a>q?w+(a-1):w+q,rectTop:this.getBoundingClientRect().top},!1});e.history.replaceState(c,h.title)});require(["seealso.block"],function(c){var a={domUpdateFn:function(){n.attachBehaviors();B()},teaserIdsUrl:"/mainpage_list/"+k+"/"+v+"/"+u};"undefined"!==typeof l.content&&"undefined"!==typeof l.db&&(a=b.extend(a,l.content,l.db));A&&(a.autoLoadMore=!0,a.initialContent=!0,a.additionalLoading=
6!0,a.enableAutoLoadByButton=!1);var f=b(".main-page-best-reviews."+u);(new c(f,a)).init()})}},t(),b(h).on("visibilitychange",t))}})(jQuery,Drupal,window,document);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.