diff --git a/assets/js/kratos.js b/assets/js/kratos.js index 9ec2fd0..a23db1e 100644 --- a/assets/js/kratos.js +++ b/assets/js/kratos.js @@ -5,6 +5,8 @@ ; (function () { 'use strict' + var KRATOS_VERSION = '3.0.9' + var navbarConfig = function () { $('#navbutton').on('click', function () { $('.navbar-toggler').toggleClass('nav-close') @@ -122,7 +124,7 @@ } var consoleConfig = function () { - console.log("\n ▄▄▄▄▄▄▄ ▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄\n █ ▄▄▄ █ ▀█▄█▀ █▀ ▀ ▄ █ ▄▄▄ █\n █ ███ █ ▀▀▄▀▄▀▄▀██▄▄█ █ ███ █\n █▄▄▄▄▄█ █ █ ▄▀▄▀█ ▄ █ █▄▄▄▄▄█\n ▄▄▄▄▄ ▄▄▄▄▄ █▄▄█▄▄ █▀▄ ▄ ▄ ▄ \n ▀▀█ ▄▄███ ▄▄ ▀▄ ▀█▀▄▀███ ▀\n ▀█ ▄█▄▀ █▀█ ▄ ▄▄▄ ▄▀█▀ ▄▄▀ \n █ ▀▄█▄▄█▄▀ ▀▀▀█▀█▀▀█▀█▀█ █ ▀\n ▀▄█ ▀ ▄▄▄▄█ █▄▀▀▀ ▀█▀▀▀▄ ▄▀ \n █ ▄▄▄ ▄ ▄▀█▄▄▄▀▄█▄▄▀█▄▀████ ▀\n █ ███ ▄▀▄▄ █ ▄█▄ ▄ ▀▄▄▄▄▄ ▄█▄\n ▄▄▄▄▄▄▄ █▄ ▀▀▀██▀▄▄█ ▄ ███▀▀\n █ ▄▄▄ █ ▄▄ █ ██▀▄ ▀█▄▄▄██▄▄█\n █ ███ █ █ ▀▄▄▀ █▀▄▀▄█ ▄▄▄█▄█▀\n █▄▄▄▄▄█ ████▄ ▀ ▀▄ ▀▀ ██▀▄▀ \n\n██╗ ██╗██████╗ █████╗ ████████╗ ██████╗ ███████╗\n██║ ██╔╝██╔══██╗██╔══██╗╚══██╔══╝██╔═══██╗██╔════╝\n█████╔╝ ██████╔╝███████║ ██║ ██║ ██║███████╗\n██╔═██╗ ██╔══██╗██╔══██║ ██║ ██║ ██║╚════██║\n██║ ██╗██║ ██║██║ ██║ ██║ ╚██████╔╝███████║\n╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝\n") + console.log('\n Kratos v' + KRATOS_VERSION + '\n\n https://github.com/Vtrois/Kratos \n\n') } $(function () { diff --git a/assets/js/kratos.min.js b/assets/js/kratos.min.js index da9b91b..38113dd 100644 --- a/assets/js/kratos.min.js +++ b/assets/js/kratos.min.js @@ -1 +1 @@ -function grin (t) { var n; if (t = " " + t + " ", !document.getElementById("comment") || "textarea" != document.getElementById("comment").type) return !1; if (n = document.getElementById("comment"), document.selection) n.focus(), sel = document.selection.createRange(), sel.text = t, n.focus(); else if (n.selectionStart || "0" == n.selectionStart) { var e = n.selectionStart, o = n.selectionEnd, a = o; n.value = n.value.substring(0, e) + t + n.value.substring(o, n.value.length), a += t.length, n.focus(), n.selectionStart = a, n.selectionEnd = a } else n.value += t, n.focus() } (function () { "use strict"; var t = function () { $("#navbutton").on("click", function () { $(".navbar-toggler").toggleClass("nav-close") }) }, n = function () { $(function () { $('[data-toggle="tooltip"]').tooltip() }) }, e = function () { $(window).on("load", function () { var t = $(window); t.scrollTop() > 200 ? $(".gotop").addClass("active") : $(".gotop").removeClass("active"), t.scroll(function () { t.scrollTop() > 200 ? $(".gotop").addClass("active") : $(".gotop").removeClass("active") }) }), $(".gotop").on("click", function (t) { return t.preventDefault(), $("html, body").animate({ scrollTop: $("html").offset().top }, 500), !1 }) }, o = function () { $(".search").on("click", function (t) { $(".search-form").animate({ width: "200px" }, 200), $(".search-form input").css("display", "block"), $(document).one("click", function () { $(".search-form").animate({ width: "0" }, 100), $(".search-form input").hide() }), t.stopPropagation() }), $(".search-form").on("click", function (t) { t.stopPropagation() }) }, a = function () { $(".wechat").mouseout(function () { $(".wechat-pic")[0].style.display = "none" }), $(".wechat").mouseover(function () { $(".wechat-pic")[0].style.display = "block" }) }, i = function () { $("#addsmile").on("click", function (t) { return $(".smile").toggleClass("open"), $(document).one("click", function () { $(".smile").toggleClass("open") }), t.stopPropagation(), !1 }) }, c = function () { $.fn.postLike = function () { if ($(this).hasClass("done")) return layer.msg(kratos.repeat, function () { }), !1; $(this).addClass("done"), layer.msg(kratos.thanks); var t = $(this).data("id"), n = $(this).data("action"), e = { action: "love", um_id: t, um_action: n }; return $.post(kratos.site + "/wp-admin/admin-ajax.php", e, function (t) { }), !1 }, $(document).on("click", ".btn-thumbs", function () { $(this).postLike() }) }, s = function () { $("#donate").on("click", function () { layer.open({ type: 1, area: ["300px", "370px"], title: kratos.donate, resize: !1, scrollbar: !1, content: '' }), $(".choose-pay input[type='radio']").click(function () { var t = $(this).attr("id"); "alipay" == t && ($(".qr-pay #alipay_qr").removeClass("d-none"), $(".qr-pay #wechat_qr").addClass("d-none")), "wechatpay" == t && ($(".qr-pay #alipay_qr").addClass("d-none"), $(".qr-pay #wechat_qr").removeClass("d-none")) }) }) }, l = function () { console.log("\n ▄▄▄▄▄▄▄ ▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄\n █ ▄▄▄ █ ▀█▄█▀ █▀ ▀ ▄ █ ▄▄▄ █\n █ ███ █ ▀▀▄▀▄▀▄▀██▄▄█ █ ███ █\n █▄▄▄▄▄█ █ █ ▄▀▄▀█ ▄ █ █▄▄▄▄▄█\n ▄▄▄▄▄ ▄▄▄▄▄ █▄▄█▄▄ █▀▄ ▄ ▄ ▄ \n ▀▀█ ▄▄███ ▄▄ ▀▄ ▀█▀▄▀███ ▀\n ▀█ ▄█▄▀ █▀█ ▄ ▄▄▄ ▄▀█▀ ▄▄▀ \n █ ▀▄█▄▄█▄▀ ▀▀▀█▀█▀▀█▀█▀█ █ ▀\n ▀▄█ ▀ ▄▄▄▄█ █▄▀▀▀ ▀█▀▀▀▄ ▄▀ \n █ ▄▄▄ ▄ ▄▀█▄▄▄▀▄█▄▄▀█▄▀████ ▀\n █ ███ ▄▀▄▄ █ ▄█▄ ▄ ▀▄▄▄▄▄ ▄█▄\n ▄▄▄▄▄▄▄ █▄ ▀▀▀██▀▄▄█ ▄ ███▀▀\n █ ▄▄▄ █ ▄▄ █ ██▀▄ ▀█▄▄▄██▄▄█\n █ ███ █ █ ▀▄▄▀ █▀▄▀▄█ ▄▄▄█▄█▀\n █▄▄▄▄▄█ ████▄ ▀ ▀▄ ▀▀ ██▀▄▀ \n\n██╗ ██╗██████╗ █████╗ ████████╗ ██████╗ ███████╗\n██║ ██╔╝██╔══██╗██╔══██╗╚══██╔══╝██╔═══██╗██╔════╝\n█████╔╝ ██████╔╝███████║ ██║ ██║ ██║███████╗\n██╔═██╗ ██╔══██╗██╔══██║ ██║ ██║ ██║╚════██║\n██║ ██╗██║ ██║██║ ██║ ██║ ╚██████╔╝███████║\n╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝\n") }; $(function () { t(), n(), e(), o(), a(), i(), c(), s(), l() }) })() \ No newline at end of file +function grin(t){var o;if(t=" "+t+" ",!document.getElementById("comment")||"textarea"!=document.getElementById("comment").type)return!1;if(o=document.getElementById("comment"),document.selection)o.focus(),sel=document.selection.createRange(),sel.text=t,o.focus();else if(o.selectionStart||"0"==o.selectionStart){var e=o.selectionStart,a=o.selectionEnd,n=a;o.value=o.value.substring(0,e)+t+o.value.substring(a,o.value.length),n+=t.length,o.focus(),o.selectionStart=n,o.selectionEnd=n}else o.value+=t,o.focus()}(function(){"use strict";var t="3.0.9",o=function(){$("#navbutton").on("click",function(){$(".navbar-toggler").toggleClass("nav-close")})},e=function(){$(function(){$('[data-toggle="tooltip"]').tooltip()})},a=function(){$(window).on("load",function(){var t=$(window);t.scrollTop()>200?$(".gotop").addClass("active"):$(".gotop").removeClass("active"),t.scroll(function(){t.scrollTop()>200?$(".gotop").addClass("active"):$(".gotop").removeClass("active")})}),$(".gotop").on("click",function(t){return t.preventDefault(),$("html, body").animate({scrollTop:$("html").offset().top},500),!1})},n=function(){$(".search").on("click",function(t){$(".search-form").animate({width:"200px"},200),$(".search-form input").css("display","block"),$(document).one("click",function(){$(".search-form").animate({width:"0"},100),$(".search-form input").hide()}),t.stopPropagation()}),$(".search-form").on("click",function(t){t.stopPropagation()})},i=function(){$(".wechat").mouseout(function(){$(".wechat-pic")[0].style.display="none"}),$(".wechat").mouseover(function(){$(".wechat-pic")[0].style.display="block"})},s=function(){$("#addsmile").on("click",function(t){return $(".smile").toggleClass("open"),$(document).one("click",function(){$(".smile").toggleClass("open")}),t.stopPropagation(),!1})},c=function(){$.fn.postLike=function(){if($(this).hasClass("done"))return layer.msg(kratos.repeat,function(){}),!1;$(this).addClass("done"),layer.msg(kratos.thanks);var t=$(this).data("id"),o=$(this).data("action"),e={action:"love",um_id:t,um_action:o};return $.post(kratos.site+"/wp-admin/admin-ajax.php",e,function(t){}),!1},$(document).on("click",".btn-thumbs",function(){$(this).postLike()})},l=function(){$("#donate").on("click",function(){layer.open({type:1,area:["300px","370px"],title:kratos.donate,resize:!1,scrollbar:!1,content:''}),$(".choose-pay input[type='radio']").click(function(){var t=$(this).attr("id");"alipay"==t&&($(".qr-pay #alipay_qr").removeClass("d-none"),$(".qr-pay #wechat_qr").addClass("d-none")),"wechatpay"==t&&($(".qr-pay #alipay_qr").addClass("d-none"),$(".qr-pay #wechat_qr").removeClass("d-none"))})})},r=function(){console.log("\n Kratos v"+t+"\n\n https://github.com/Vtrois/Kratos \n\n")};$(function(){o(),e(),a(),n(),i(),s(),c(),l(),r()})})(); \ No newline at end of file