PageSourceSearch

https://litlife.club/assets/js/latest-posts.js?id=0b0d3fc78268217447fe5601bd66491f

js litlife.club collected 2026-09-24 20:17:47 UTC 11,432 bytes, 1 lines download raw bytes

1!function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){var t=this;this.init=function(e){t.like=e,t.like.btn_liked=t.like.find("button.liked"),t.like.btn_empty=t.like.find("button.empty"),t.like.counter=t.like.find(".counter"),t.like.last_liked_status=t.like.data("liked"),t.likeable_type=t.like.data("likeable-type"),t.likeable_id=t.like.data("likeable-id"),t.likeable_create_user_id=t.like.data("likeable-create-user-id"),t.mouseOverDelay=1e3,t.mouseLeaveDelay=1e3,t.like.btn_liked.unbind("click").on("click",t.onClick),t.like.btn_empty.unbind("click").on("click",t.onClick),t.like.popover({boundary:"window",placement:"top",html:!0,trigger:"manual",animation:!1}),t.like.unbind("shown.bs.popover").bind("shown.bs.popover",t.onPopoverShown),t.like.unbind("mouseover").bind("mouseover",t.onButtonMouseOver),t.like.unbind("mouseleave").bind("mouseleave",t.onButtonMouseLeave)}
1,this.onClick=function(){var e=$(this);t.isLiked()?t.decrementCounter():t.incrementCounter(),e.addClass("loading-cap"),t.setPopoverHtml('<i class="fas fa-circle-notch fa-spin"></i>'),t.getCount()>0&&t.showPopover(),t.request(e)},this.onButtonMouseOver=function(){clearTimeout(t.mouseOverTimer),t.mouseOverTimer=setTimeout(function(){!t.isMouseAway()&&t.getCount()>0&&(t.load(),t.isDataLoaded()&&t.showPopover())},t.mouseOverDelay)},this.onButtonMouseLeave=function(){clearTimeout(t.mouseLeaveTimer),t.mouseLeaveTimer=setTimeout(function(){t.hidePopoverIfMouseAwayAndPopoverOpened()},t.mouseLeaveDelay)},this.onPopoverShown=function(){t.getPopover().unbind("mouseleave").bind("mouseleave",t.onPopoverMouseLeave)},this.onPopoverMouseLeave=function(){clearTimeout(t.mouseLeaveTimer),t.mouseLeaveTimer=setTimeout(function(){t.hidePopoverIfMouseAwayAndPopoverOpened()},t.mouseLeaveDelay)},this.hidePopoverIfMouseAwayAndPopoverOpened=function(){t.isMouseAway()&&t.hidePopover()},this.request=function(e){$.ajax({method:"GET",url:"/likes/"+t.likeable_type+"/"+t.likeable_id}).done(t.onDoneLoadClick).fail(t.fail).always(function(){e.removeClass("loading-cap")})},this.onDoneLoadClick=function(e){e.like.id?e.like.deleted_at?t.toggleToEmpty():t.toggleToLiked():t.toggleToEmpty(),t.setCount(e.item.like_count),t.getCount()<1?t.hidePopover():t.refreshTooltipContent(e.latest_likes_html)},this.fail=function(e){t.hidePopover(),t.isLiked()?t.incrementCounter():t.decrementCounter()},this.refreshTooltipContent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";""!==e?(t.dataLoaded(),t.setPopoverHtml(e)):(t.dataNotLoaded(),t.load())},this.load=function(){t.like.data("ajax-start")||t.isDataLoaded()||$.ajax({url:"/likes/"+t.likeable_type+"/"+t.likeable_id+"/tooltip",cache:!0,beforeSend:function(e){t.showPopover(),t.setPopoverHtml('<i class="fas fa-circle-notch fa-spin"></i>'),t.like.data("ajax-start",!0)}}).done(function(e){t.setPopoverHtml(e),t.dataLoaded()}).always(function(){t.like.data("ajax-start",!1)})},this.incrementCounter=function(){var e=t.getCount();t.setCount(e+1)},this.decrementCounter=function(){var e=t.getCount();t.setCount(e-1)},this.setCount=function(e){e=parseInt(e),t.like.counter.text(e),e<1?t.like.counter.hide():t.like.counter.show()},this.toggleToLiked=function(){t.like.btn_liked.show(),t.like.btn_empty.hide()},this.toggleToEmpty=function(){t.like.btn_liked.hide(),t.like.btn_empty.show()},this.setPopoverHtml=function(e){var n=$("<div>"+e+"</div>");n.find("img.lazyload").each(function(){$(this).attr("src",$(this).data("src"))});var i=t.like.attr("aria-describedby");t.isPopoverOpened()&&$("#"+i).find(".popover-body").html(n.html()),t.like.attr("data-content",n.html()),t.updatePopover()},this.dataLoaded=function(){t.like.data("data-loaded",!0)},this.dataNotLoaded=function(){t.like.data("data-loaded",!1)},this.isDataLoaded=function(){return!!t.like.data("data-loaded")},this.isPopoverOpened=function(){var n=t.like.attr("aria-describedby");return"undefined"!==e(n)&&!1!==n},this.isMouseAway=function(){var e=t.like.attr("aria-describedby");return!t.like.is(":hover")&&0===$("#"+e+":hover").length},this.isLiked=function(){return!!t.like.btn_liked.is(":visible")},this.isTouchDevice=function(){return window.isTouchDevice()},this.getCount=function(){return parseInt(t.like.counter.first().text(),10)},this.getPopover=function(){var e=t.like.attr("aria-describedby");return $("#"+e).first()},this.showPopover=function(){t.isPopoverOpened()||(t.like.popover("show"),t.like.popover("update"))},this.hidePopover=function(){t.isPopoverOpened()&&t.like.popover("hide")},this.updatePopover=function(){t.isPopoverOpened()&&t.like.popover("update")}}function n(){var e=this;this.init=function(t){e.button=t,e.title=t.data("title"),e.description=t.data("description"),e.url=t.data("url"),e.image=t.data("image"),e.dialog=bootbox.dialog({message:'<div class="spinner" style="text-align: center; font-size:48px;"><i class="fas fa-circle-notch fa-spin"></i></div>',closeButton:!0,backdrop:!0,show:!1,size:"small"}),e.button.unbind("click").on("click",function(){e.dialog.modal("show")}),e.dialog.on("shown.bs.modal",function(t){e.onDialogOpen(t)})},this.onDialogOpen=function(t){var n='<div data-direction="vertical" data-size="m" class="ya-share2" data-services="collections,vkontakte,facebook,odnoklassniki,';void 0!==e.image&&(n+="pinterest,"),n+='twitter,telegram,whatsapp,viber,moimir,blogger,delicious,digg,reddit,evernote,linkedin,lj,pocket,qzone,renren,sinaWeibo,surfingbird,tencentWeibo,tumblr,skype" data-counter="true" data-title="'+e.title+'" data-description="'+e.description+'" ',void 0!==e.image&&(n+='data-image="'+e.image+'" '),n+='data-url="'+e.url+'">';$(t.relatedTarget);e.dialog.find(".bootbox-body").html(n),$.getScript("//cdn.jsdelivr.net/npm/yandex-share2/share.js",function(e,t,n){})}}function i(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=(e.data("topic-id"),e.data("id")),s=a,d=e.data("level");e.descendants=e.find(".descendants").first();var r=e.find(".buttons-panel").first(),c=r.find(".open_descendants").first(),l=r.find(".close_descendants").first();
1e.counter_expand_descendants=c.find(".counter:first"),e.counter_compress_descendants=l.find(".counter:first");var u=r.find(".btn-expand").first(),f=r.find(".btn-compress").first(),p=r.find(".delete").first(),h=r.find(".restore").first(),m=r.find(".get_link").first(),v=r.find(".approve"),b=r.find(".btn-edit").first(),k=r.find(".btn-reply").first(),g=(r.data("parent-id"),r.find("button.share").first()),y=e.find(".html_box").first();function _(t){t.button("loading"),t.hide(),$.ajax({method:"DELETE",url:"/posts/"+a}).done(function(t){t.deleted_at?(p.hide(),h.show(),y.addClass("transparency"),null!=e.parent&&e.parent.decrement_childs()):(p.show(),h.hide(),y.removeClass("transparency"),null!=e.parent&&e.parent.increment_childs()),h.button("reset"),p.button("reset")}).fail(function(){t.show()})}e.self=e.find("[data-self]:first"),e.parent=o,y.htmlExpand({expand_button:u,compress_button:f,onExpand:function(){},onCompress:function(){$(window).scrollTo(e)}}),m.removeAttr("href").unbind("click").on("click",function(e){e.preventDefault(),bootbox.alert('<textarea class="form-control">'+m.data("href")+"</textarea>")}),v.unbind("click").on("click",function(){v.hide(),$.ajax({method:"GET",url:"/posts/"+a+"/approve"}).done(function(e){e.is_accepted?v.hide():v.show()}).fail(function(){v.show()})}),p.unbind("click").on("click",function(){_($(this))}),h.unbind("click").on("click",function(){_($(this))}),e.find(".like").each(function(){(new t).init($(this))}),(new n).init(g),c.unbind("click").on("click",function(){c.attr("disabled","disabled"),l.attr("disabled","disabled"),e.descendants.html('<div class="text-align: center; font-size:48px;"><i class="fas fa-circle-notch fa-spin"></i></div>'),$.ajax({method:"GET",url:"/posts/"+a+"/descendants?level="+d}).done(function(t){e.descendants.html(t),e.descendants.children(".item").each(function(){i($(this),e)}),c.hide(),l.removeAttr("disabled"),l.show()}).always(function(){c.removeAttr("disabled")})}),l.unbind("click").on("click",function(){e.descendants.find(".item").remove(),l.hide(),c.show()}),k.unbind("click").on("click",function(t){t.preventDefault();var n=e.descendants.children(".reply-box").first();n.length<1?(k.addClass("loading-cap"),$.ajax({method:"GET",url:k.attr("href")}).done(function(t){e.descendants.append(t);var n=e.descendants.children(".reply-box").first();$(window).scrollTo(n),k.removeClass("loading-cap");var o=n.find("form").first();set_sceditor(o.find(".sceditor").first().get(0)),o.ajaxForm({dataType:"json",beforeSend:function(e){n.addClass("loading-cap")},success:function(t){$.ajax({method:"GET",url:"/posts/"+t.id}).done(function(o){n.removeClass("loading-cap"),n.after(o),n.remove(),e.descendants.find(".item[data-id='"+t.id+"']").each(function(){i($(this),e)}),e.increment_childs()})},error:function(e){n.removeClass("loading-cap")}})})):$(window).scrollTo(n)}),b.unbind("click").on("click",function(t){t.preventDefault(),b.hide(),$.ajax({method:"GET",url:b.attr("href")}).done(function(t){y.hide(),y.after(t);var n=e.self.find("form:first");set_sceditor(n.find(".sceditor").first().get(0)),$(window).scrollTo(e),n.ajaxForm({dataType:"json",beforeSend:function(e){n.addClass("loading-cap")},success:function(t){y.html(t.text),y.show(),n.remove(),i(e),$(window).scrollTo(e),b.show()},error:function(e){n.removeClass("loading-cap")}})}).fail(function(){b.show()})}),e.descendants.find(".item:first").siblings(".item").addBack().each(function(){i($(this),e)}),e.increment_childs=function(){var t=e.counter_expand_descendants.text();t=parseInt(t,10)+1,e.counter_expand_descendants.text(t),t=e.counter_compress_descendants.text(),t=parseInt(t,10)+1,e.counter_compress_descendants.text(t),t>0&&!c.is(":visible")&!l.is(":visible")&&l.show()},e.decrement_childs=function(){var t=e.counter_expand_descendants.text();t=parseInt(t,10)-1,e.counter_expand_descendants.text(t),t=e.counter_compress_descendants.text(),t=parseInt(t,10)-1,e.counter_compress_descendants.text(t),t<1&&(c.is(":visible")||l.is(":visible"))&&l.hide()},e.find(".get_user_agent").first().unbind("click").on("click",function(){var e=bootbox.dialog({message:" ",closeButton:!0,backdrop:!0}).init(function(){var t=e.find(".bootbox-body");t.html('<div class="spinner" style="text-align: center; font-size:48px;"><i class="fas fa-circle-notch fa-spin"></i></div>'),$.ajax({method:"GET",url:"/user_agents/post/"+s}).done(function(e){t.find(".spinner").remove(),t.html(e)}
1).always(function(){})})})}$(".topics").find(".item").each(function(){!function(e){e.data("forum-id");var t=e.data("id"),n=e.find(".delete");n.unbind("click").on("click",function(){o($(this))});var i=e.find(".restore");function o(o){o.button("loading"),o.hide(),$.ajax({method:"DELETE",url:"/topics/"+t}).done(function(t){t.deleted_at?(n.hide(),i.show(),e.find(".name").addClass("transparency"),e.find(".description").addClass("transparency")):(n.show(),i.hide(),e.find(".name").removeClass("transparency"),e.find(".description").removeClass("transparency")),i.button("reset"),n.button("reset")}).fail(function(){o.show()})}i.unbind("click").on("click",function(){o($(this))})}($(this))}),$(".posts").find(".item:first").siblings(".item").addBack().each(function(){i($(this))})}();

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.