var e,t,a,n,o,i;e=window,t=document,a="script",n="ga",e.GoogleAnalyticsObject=n,e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=+new Date,o=t.createElement(a),i=t.getElementsByTagName(a)[0],o.async=1,o.src="https://www.google-analytics.com/analytics.js",i.parentNode.insertBefore(o,i),ga("create","UA-43522085-2","auto",{allowLinker:!0}),ga("require","linker"),ga("linker:autoLink",["erkiss.club","erkiss.live","erkiss1.com","erkiss2.com","erkiss3.com"]),ga("send","pageview"),(new Image).src="//counter.yadro.ru/hit?r"+escape(document.referrer)+("undefined"==typeof screen?"":";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+";h"+escape(document.title.substring(0,150))+";"+Math.random(),$.fn.loading=function(i,s,e){var r=e?function(){e()}:function(){};return function(e){if(i){var t=e.css("position");$.inArray(t,["absolute","relative"])<0&&e.css("position","relative"),s?(e.data("hide",!0),e.css({visibility:"hidden"}),$("").appendTo(e)):(e.data("hide",!1),e.append("")),r()}else{function a(){o.remove(),r()}var n=e.data("hide"),o=e.find("loading");o.length&&n&&e.css({visibility:""}),a()}}(this),this},$.fn.inOutText=function(e){var t,a,n,o;return t=this,a=parseInt(t.text()),n=parseInt(e),o=10,a=isNaN(a)?0:a,n=isNaN(n)?0:n,t.css("position","relative"),a").appendTo($("body")).attr("id","totop").on("click",function(){try{$("#header")[0].scrollIntoView({behavior:"smooth"})}catch(e){window.scroll(0,0)}"undefined"!=typeof ga&&ga("send","event","go_to_top","click")}),e.addClass("visible")):e.removeClass("visible")},!!p&&{passive:!0}),$('textarea, input[type="text"]').on("focus",function(){$(this).attr("data-ph",$(this).attr("placeholder")),$(this).removeAttr("placeholder")}).on("blur",function(){$(this).attr("placeholder",$(this).attr("data-ph"))}),$(".fcancel").on("click",function(){$(this).closest(".comment-form").remove()}),$(".comment-text").on("input",function(){var t=["DIV","P","IMG","BR"];$(this).find('img:not([src^="/smiles/"])').map(function(){$(this).replaceWith(document.createTextNode(this.src))}),$(this).find("a").map(function(){$(this).replaceWith(document.createTextNode(this.href))}),$(this).find("*").map(function(){var e=$(this);$.inArray(e[0].nodeName,t)<0&&e.replaceWith(document.createTextNode(e.text()))})}).on("focus",function(){$(this).next(".com-butts").removeClass("hidden")}),function(e){if(e){var t=[];"string"==typeof(globalData=JSON.parse(atob(e.dataset.params))).M?t.push(globalData.M):"object"==typeof globalData.M&&(t=globalData.M),$.each(t,function(e,t){$.getScript(t)})}}(document.querySelector("[data-params]")),$(document).ready(function(){$("#smiles_button, .smiles_button").on("click",function(e){e.preventDefault();function n(){a++,r.find(".percentage").attr("data-cnt",Math.round(a/d*100)),a==d&&(r.find(".percentage").remove(),$.each(o,function(e,t){var a,n=$(t).attr("alt");a=$("
").appendTo(r).on("click",function(){if(i){var e=$(this).closest(".comment-form").find(".comment-text");if(4").appendTo(i?s.find(".com-butts"):s.find(".buttons")).addClass("smile_table"),$("
").appendTo(r).addClass("percentage").attr("data-cnt",0),$.each(["O:-),O=)",":-),:),=)",":-(,:(,;(",";-),;)",":-P","8-)",":-D,:D",":-[","=-O",":-*",":'(",":-X,:-x",">:o",":-|",":-\\,:-/","*JOKINGLY*","]:->","[:-}","*KISSED*",":-!","*TIRED*","*STOP*","*KISSING*","@}->--","*THUMBS UP*","*DRINK*","*IN LOVE*","@=","*HELP*","\\m/","%)","*OK*","*WASSUP*,*SUP*","*SORRY*","*BRAVO*","*ROFL*,*LOL*","*PARDON*","*NO*","*CRAZY*","*DONT_KNOW*,*UNKNOWN*","*DANCE*","*YAHOO*,*YAHOO!*","*HI*,*PREVED*,*PRIVET*,*HELLO*","*BYE*","*YES*",";D,*ACUTE*","*WALL*,*DASH*","*WRITE*,*MAIL*","*SCRATCH*","*ANAL*","*POZA69*","*SEX*","*KUNI*","*MASTURB*","*CHURN*","*FELLA*","*RIDE*","*MASTURB2*","","*GOLDEN*","*FUCK*","*BLOW*","*LESBI*","*LESBI2*","*SANTA*","*SNOW_GIRL*","*SMOKE*","*POPCORN*"],function(e,t){if(!t.length)return!0;d++,(++e).toString().length<2&&(e="0"+e);var a=t.split(",")[0];o.push($("").attr("src","/smiles/"+e+".gif").attr("alt",a).on("load error",n))})}),$(".fsubmit").on("click",function(){var i=$(this).closest(".comment-form"),s=i.find(".comment-text"),e=u(s),t=i.find("input"),r=i.find(".text-fields"),a=r.find("img").length,n={},d=i.is("[data-pid]")?i.attr("data-pid"):0,o=i.is("[data-id]")?i.attr("data-id"):0,c=!!i.is("[data-type]")&&i.attr("data-type"),l=i.is("[data-update]")?i.attr("data-update"):0;if(e.len<3&&!a)$.alertable.alert(h("short"));else{if(t.length){if(t.val().length<3)return $.alertable.alert(h("NameRequred")),void t[0].focus();n.name=t.val();try{localStorage.setItem("commentator_name",n.name)}catch(e){}}n.sid=globalData.S,n.text=e.text,l&&(n.id=l),!1!==c&&(n.item_type=c),o&&(n.item_id=o),d&&(n.pid=d),r.loading(1),$(".smile_table").hide();var m=l?"/ajax/update_comment.php":"/ajax/add_comment2.php",p=l?function(e){r.loading(),e.error?$.alertable.alert(e.error):(i.parent().find("p").first().html(e).show(),i.remove())}:function(e){if(r.loading(),e.error)$.alertable.alert(e.error);else{if(d){i.prev(".comment-row").find(".comment-actions").css("display","");var t=i.parents(".comment").last(),a=t.is("[data-replies]")?parseInt(t.attr("data-replies")):0,n=t.find(".answers span");n.text(parseInt(n.text())+1),a?t.attr("data-replies",a+1):(createHideCommButt(t),createShowCommButt(t,1).hide()),i.remove()}else t=$("#comments-block"),s.empty().removeAttr("data-for-comment");var o=$("#do-comment span").first();o.text(parseInt(o.text())+1),isInViewport=function(e){var t=$(window),a=e.offset().top,n=a+e.outerHeight(),o=t.scrollTop(),i=o+t.height();return o").addClass("comment-row").hide();o||a?e.append(i):n.before(i),e.children(".answers:not(.hide)").appendTo(e);var s=$("
").appendTo(i).addClass("commenter");parseInt(t[1])?s.append($("").attr("href","/user/"+t[1]).append($("").attr("data-src",t[4]))):s.append($("").addClass("nobody"));var r=$("
").appendTo(i).addClass("comment").attr("data-id",t[0]).append($("
").attr("data-date",t[3]).on("click",addLoginToForm).text(t[2]));r.append($("

").html(t[5]));var d=$("

").appendTo(r).addClass("comment-actions"),c=h(),l=parseInt(t[10]);$("
").appendTo(d).append($("").addClass("like"+(1==l?" voted":"")).text(t[7]).on("click",setCommentLike)),$("
").appendTo(d).append($("").addClass("dislike"+(-1==l?" voted":"")).text(t[8]).on("click",setCommentLike)),$("
").appendTo(d).addClass("max-item").append($("").addClass("reply").attr("data-after",c.reply).on("click",replyComment)),t[6]&&($("
").appendTo(d).addClass("opt-button").on("click",showOptions).append($("")),$("
").appendTo(d).addClass("option").append($("").addClass("edit").attr("data-after",c.edit).on("click",editComment)),$("
").appendTo(d).addClass("option").append($("").addClass("delete").attr("data-after",c.delete).on("click",onDeleteComment)));var m=0;return void 0!==t[9]&&"0"!=t[9]&&(createShowCommButt(r,t[9]),m=t[9]),r.attr("data-replies",m),i.show(),r},replyComment=function(){var e=$(this),t=e.closest(".comment"),a=t.find(".comment-actions").first(),n=t.parents(".comment").length,o=t.find("[data-date]").first().text(),i=e.parents(".comment").last().attr("data-id"),s=$(".comment-form").first().clone(!0).removeClass("main").attr("data-pid",i).css("display","none"),r=s.find(".comment-text");r.empty().html(" ").removeClass("empty-input").attr("data-for-comment",o),setTimeout(function(){r[0].focus(),d(r[0])},200),$(".comment-form[data-id="+i+"]").remove(),n?(a.hide(),s.find(".fcancel").on("click",function(){a.css("display","")}),s.insertAfter(t.closest(".comment-row"))):s.insertBefore(a),s.fadeIn(),$(".smile_table").hide()},editComment=function(){var e=$(this),t=e.closest(".comment"),a=e.closest(".comment-actions"),n=t.find("p").first(),o=t.attr("data-id"),i=$(".comment-form").first().clone(!0).removeAttr("data-id data-type").attr("data-update",o).insertBefore(a),s=i.find(".comment-text");i.find(".name-holder, .commenter").remove(),i.find(".fcancel").on("click",function(){n.show()}),n.clone().appendTo(s.empty()),n.hide(),d(s[0])},onDeleteComment=function(){var e=$(this).closest(".comment").attr("data-id");$.alertable.confirm(h("sure")).then(function(){deleteComment(e)})},deleteComment=function(e){var n=$(".comment[data-id="+e+"]").closest(".comment-row"),o=n.parents(".comment").last();n.loading(1),$.ajax({url:"/ajax/delete_comment.php?id="+e+"&S="+globalData.S,dataType:"json"}).done(function(a){n.loading(!1,!1,function(){if(a.error)switch(a.error){case"noauth":document.location="/login";break;case"access":$.alertable.alert(h("NoAccess"));break;default:$.alertable.alert(h("UnErr"))}else if(a.ok){if(o.length){var e=o.is("[data-replies]")?parseInt(o.attr("data-replies"))-1:0;o.attr("data-replies",e),e<1&&o.find(".answers").remove()}n.slideUp(function(){n.remove()});var t=$("#do-comment span").first();t.length&&t.text(parseInt(t.text())-1)}})})},hideComments=function(){var e=$(this).parent(),t=e.parent(),a=e.nextAll(".answers"),n=t.attr("data-replies");a.show().insertAfter(e).find("span").text(n),e.hide()},createHideCommButt=function(e){return $("
").insertAfter(e.find(".comment-actions").first()).addClass("answers hide").append($("
").addClass("list-arr opened").text(h("HideAns")).on("click",hideComments))},createShowCommButt=function(e,t){var a=e.children(".answers:not(.hide)");return a.length?a:$("
").appendTo(e).addClass("answers").append($("
").addClass("list-arr").on("click",function(){loadComments(e)}).append($("").attr("data-before",h("Show")).attr("data-after",h("comments")).text(t)))},loadComments=function(a){function e(){var e=a.attr("data-replies");return void 0===e&&(e=0),parseInt(e)}var t,n=$(".comment-form.main"),o=n.attr("data-id"),i=n.attr("data-type"),s={},r=a.children(".comment-row:not(.comment-form)").length,d=a.hasClass("comment")?a.attr("data-id"):0,c=a.children(".answers.hide"),l=a.children(".answers:not(.hide)"),m=e();return a.children(".comment-row").filter(":hidden").length?(t=e()-r,l.find("span").text(t),t<1&&l.hide(),c.show(),void a.append(l)):m&&m<=r?(c.show(),void l.hide()):(s.item_type=i,s.item_id=o,s.sid=globalData.S,s.last=r,d?s.pid=d:s.sort=$(".sort-comments .active").attr("data-sort"),l.find("div").loading(1,1),void $.ajax({url:"/ajax/get_comments.php",method:"POST",data:s,dataType:"json"}).done(function(e){l.find("div").loading(),a.attr("data-replies",e[1]),$.each(e[0],function(e,t){appendComment(a,t,!0)}),d&&(c.length||(c=createHideCommButt(a)),c.show()),(r+=e[0].length)').attr("data-before",h("First")),t=e.find(".comment-row:not(.comment-form)");t.length<2||(t.first().before(o),$.each({b:h("Best"),n:h("New"),w:h("Worst"),o:h("Old")},function(e,t){var a="b"==e?"active":"";$("
  • ").appendTo(o).append($("").appendTo(o).attr("data-before",t).attr("data-sort",e).addClass(a).on("click",n))}))}}($("#comments-block")),$("#do-comment").on("click",function(){f($("#add_comment"))});try{var e=sessionStorage.getItem("th9");e&&(sessionStorage.removeItem("th9"),$.post({url:"/ajax/set_thumb.php",data:JSON.parse(e)}))}catch(e){}$.each($("a[data-tid]"),function(e,t){$(t).observThumb()});try{$.each($('.comment-form input[name="name"]'),function(e,t){$(t).val(localStorage.getItem("commentator_name"))})}catch(e){}var o="opened";if($.each($("[data-more]"),function(e,t){t.scrollHeight>$(t).height()?$(t).on("click",function(){var e=$(this),t=e.height(),a=e.hasClass(o);if(a){var n=e.css("max-height","").height();e.css("max-height","none")}else{e.toggleClass(o),t=e.height();n=e.css("max-height","none").height()}e.height(t),e.stop().animate({height:n+"px"},300,"swing",function(){e.removeAttr("style"),a?e.toggleClass(o):e.css("max-height","none")})}):$(t).removeAttr("data-more")}),void 0!==globalData.A){var t=function(){document.body.removeEventListener("mousemove",t),document.body.removeEventListener("touchmove",t);var a=0;"string"==typeof globalData.A?window.setTimeout(function(){var e=globalData.A;"/"==e.substr(0,1)||"http"==e.substr(0,4)?$("