')[0].src = this;});};$(".vcard .view img").on("load", function (){$(".vcard .view .ico-loader").remove();});$(document).on("click", ".jump", function(){modal('jumpbox');$(".modal.jumpbox input").val("");$(".modal.jumpbox input").focus();$(document).on("click", ".modal.jumpbox button", function(){if($(".modal.jumpbox input").val() > 208 || $(".modal.jumpbox input").val() < 1){ohSnap("The page number is not valid", "red");}else if($(".modal.jumpbox input").val().length !== 0){redirect_url("https://animehentaisites.com/127292/?action=view&i=" + $(".modal.jumpbox input").val());}});});$(".comment .settings").click(function(){$(".comment .settings div").not($(this).find("div")).slideUp("fast");$(this).find("div").slideToggle("fast");}); $(document).on("click", function(event){if(!$(event.target).closest(".comment .settings").length){$(".comment .settings div").slideUp("fast");}});$(document).on("click", ".comment .reply", function(){showUserModal('login', null, true);var id = $(this).data('id');var name = $(this).data('name');$(".comments form input[name=\"comment\"]").focus();$("").appendTo('.comments form');$(".comments form input[name=\"comment\"]").val("@" + name + " ");$(document).on("keyup", ".comments form input[name=\"comment\"]", function(){let str = $(this).val();let check = str.includes("\@" + name);if(!check){$('input[name="reply"]').remove();}});});$(document).on("click", ".comment .remove", function(){var id = $(this).data("id");$.ajax({url: "/wp-admin/mishka/common/remove-comment-content",data: {lang: 'en', id: id},type: "POST",dataType: 'json',success: function(data){if(!is_empty(data.passed)){modal("remove", data.content);}if(!is_empty(data.msg))ohSnap(data.msg, data.color);}});});$(document).on("click", ".comments form", function(){showUserModal('login', null, true);});$("span.share").on("click", function(){modal('share');});$(document).on('click', '.ol', function(){$(this).find("b").css('text-indent', '-9999px');$(this).find(".ico-loader").css('display', 'inline-block');});$('.mob-search').on('click', function(){$('header .search').addClass("on");$("body").css("overflow", "hidden");$('header .search .close, header .search .ico-back').on("click", function (){$('header .search').removeClass("on");$("body").removeAttr("style");});});$(window).scroll(function(){if ($(window).scrollTop() > 300){$(".go_top").slideDown("fast");}else{$(".go_top").slideUp("fast");}});$(".go_top").click(function() {$("html, body").animate({ scrollTop: 0 }, "slow");return false;});var u = top.location.toString();var domain = 'aiocniociiocmioceiochioceiocnioctiocaiociiocsiociioctioceiocsioc.iocciocoiocm'.toString();var domain_decrypted = domain.replace(/ioc/gi, '');if(u.indexOf(domain_decrypted) == -1){top.location = 'https://google.com';}function ohSnap(text, color){var time = "5000";var $container = $("#ohsnap");if(color.indexOf("green") !== -1)var text = text;$(".loader .ico-loader").hide();$(".loader b").css('text-indent', 'unset');var html = "
" + text + "
";$container.append(html);setTimeout(function (){ohSnapX($container.children(".alert").first());}, time);}function ohSnapX(element){if (typeof element !== "undefined"){element.remove();}else{$(".alert").remove();}}function getUrlVars(){var vars = [], hash;var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');for(var i = 0; i < hashes.length; i++){hash = hashes[i].split('=');vars.push(hash[0]);vars[hash[0]] = hash[1];}return vars;}function showUserModal(location = 'login', token = null, text = null){$.ajax({url: "/wp-admin/mishka/common/user-modal",data: {lang: 'en', location: location, return: 'https://animehentaisites.com/127292/?action=view&i=23', token: token, text: text},type: "POST",success: function(resp){if(resp != ""){$(".user-modal .content").html(resp);$(".user-modal").show();$(document).find(".user-modal input[type='text']").focus();$('.user-modal .close, .user-modal .sh').on("click", function(){$(".user-modal").hide();$(".user-modal .content").html("");});}else{$(".user-modal").hide();$(".user-modal .content").html("");}}});}function is_empty(t){return !t || 0 === t.length}function redirect_url(t, e){is_empty(t) || setTimeout(function(){var destination = t == "//reload" ? window.location.pathname : t;$(location).prop('href', destination);}, e)}function navUpdater(){if($(window).width() < 1080){if($("nav").hasClass("on")){$(".ico-menu").removeClass('on');$("nav").removeClass('on');}}else{if($("nav").hasClass("off")){$(".ico-menu").removeClass('off');$("nav").removeClass('off');}}}function modal(location, content = null){$(".modal." + location).show();if(!is_empty(content)){$(".modal." + location).find(".content").html(content);}$(document).on("click", ".modal." + location + " .close, .modal." + location + " .sh", function(){$(".modal." + location).hide();});}function livesearch(){$("#search").keyup(function(){var keywords = $(this).val();if(keywords.length >= 2){$.ajax({url: "/wp-admin/mishka/common/livesearch",data: {keywords: keywords, lang: 'en', type: 'live'},type: "POST",success: function(resp){if(resp != ""){$(".results").html(resp).show();lazy();}else{$(".results").html("").hide();}}});}else{$(".results").html("").hide();}});$(document).click(function(event){if(!$(event.target).closest("#search, .results").length){$("#search").val("");$(".results").html("").hide();}});}function k(n){var e=n.node,o=e.getAttribute("data-i");return{node:e,load:function(n){var t,r=new Image;r.onload=(t=n,void requestAnimationFrame(function(){e.src=""+o,t()})),r.src=o}}}var l={g:"[data-i]"};function lazy(n){n=void 0===n?l:n;var e=[].slice.apply(document.querySelectorAll(n.g)).map(function(n){return new k({node:n})}),o=new IntersectionObserver(function(n,o){n.forEach(function(n){var t=n.target;n.isIntersecting&&(n=e.find(function(n){return n.node.isSameNode(t)}))&&n.load(function(){o.unobserve(t),(e=e.filter(function(n){return!n.node.isSameNode(t)})).length||o.disconnect()})})});e.forEach(function(n){return o.observe(n.node)})}lazy();