diff --git a/assets/js/kratos.js b/assets/js/kratos.js
index 1e37351..c573448 100644
--- a/assets/js/kratos.js
+++ b/assets/js/kratos.js
@@ -168,6 +168,12 @@
});
};
+ var siderbarConfig = function () {
+ $(".sticky-sidebar").theiaStickySidebar({
+ additionalMarginTop: 25,
+ });
+ };
+
var consoleConfig = function () {
console.log(
"\n Kratos v" +
@@ -187,6 +193,9 @@
postlikeConfig();
donateConfig();
consoleConfig();
+ if (kratos.sticky) {
+ siderbarConfig();
+ }
});
})();
diff --git a/assets/js/kratos.min.js b/assets/js/kratos.min.js
index 1b3a0a4..b4beb52 100644
--- a/assets/js/kratos.min.js
+++ b/assets/js/kratos.min.js
@@ -1 +1 @@
-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.2.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() }) }, c = 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 }) }, i = 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 () { $(document).on("click", ".acheader", function (t) { var o = $(this); o.closest(".accordion").find(".contents").slideToggle(300), o.closest(".accordion").hasClass("active") ? o.closest(".accordion").removeClass("active") : o.closest(".accordion").addClass("active"), t.preventDefault() }) }, d = function () { console.log("\n Kratos v" + t + "\n\n https://github.com/vtrois/kratos \n\n") }; $(function () { r(), o(), e(), a(), n(), c(), s(), i(), l(), d() }) })()
\ No newline at end of file
+function grin(a){var b,c,d,e;return a=" "+a+" ",document.getElementById("comment")&&"textarea"==document.getElementById("comment").type?(b=document.getElementById("comment"),document.selection?(b.focus(),sel=document.selection.createRange(),sel.text=a,b.focus()):b.selectionStart||"0"==b.selectionStart?(c=b.selectionStart,d=b.selectionEnd,e=d,b.value=b.value.substring(0,c)+a+b.value.substring(d,b.value.length),e+=a.length,b.focus(),b.selectionStart=e,b.selectionEnd=e):(b.value+=a,b.focus()),void 0):!1}!function(){"use strict";var a="3.2.9",b=function(){$("#navbutton").on("click",function(){$(".navbar-toggler").toggleClass("nav-close")})},c=function(){$(function(){$('[data-toggle="tooltip"]').tooltip()})},d=function(){$(window).on("load",function(){var a=$(window);a.scrollTop()>200?$(".gotop").addClass("active"):$(".gotop").removeClass("active"),a.scroll(function(){a.scrollTop()>200?$(".gotop").addClass("active"):$(".gotop").removeClass("active")})}),$(".gotop").on("click",function(a){return a.preventDefault(),$("html, body").animate({scrollTop:$("html").offset().top},500),!1})},e=function(){$(".search").on("click",function(a){$(".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()}),a.stopPropagation()}),$(".search-form").on("click",function(a){a.stopPropagation()})},f=function(){$(".wechat").mouseout(function(){$(".wechat-pic")[0].style.display="none"}),$(".wechat").mouseover(function(){$(".wechat-pic")[0].style.display="block"})},g=function(){$("#addsmile").on("click",function(a){return $(".smile").toggleClass("open"),$(document).one("click",function(){$(".smile").toggleClass("open")}),a.stopPropagation(),!1})},h=function(){$.fn.postLike=function(){var a,b,c;return $(this).hasClass("done")?(layer.msg(kratos.repeat,function(){}),!1):($(this).addClass("done"),layer.msg(kratos.thanks),a=$(this).data("id"),b=$(this).data("action"),c={action:"love",um_id:a,um_action:b},$.post(kratos.site+"/wp-admin/admin-ajax.php",c,function(){}),!1)},$(document).on("click",".btn-thumbs",function(){$(this).postLike()})},i=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 a=$(this).attr("id");"alipay"==a&&($(".qr-pay #alipay_qr").removeClass("d-none"),$(".qr-pay #wechat_qr").addClass("d-none")),"wechatpay"==a&&($(".qr-pay #alipay_qr").addClass("d-none"),$(".qr-pay #wechat_qr").removeClass("d-none"))})})},j=function(){$(document).on("click",".acheader",function(a){var b=$(this);b.closest(".accordion").find(".contents").slideToggle(300),b.closest(".accordion").hasClass("active")?b.closest(".accordion").removeClass("active"):b.closest(".accordion").addClass("active"),a.preventDefault()})},k=function(){$(".sticky-sidebar").theiaStickySidebar({additionalMarginTop:25})},l=function(){console.log("\n Kratos v"+a+"\n\n https://github.com/vtrois/kratos \n\n")};$(function(){j(),b(),c(),d(),e(),f(),g(),h(),i(),l(),kratos.sticky&&k()})}();
\ No newline at end of file
diff --git a/assets/js/theia-sticky-sidebar.min.js b/assets/js/theia-sticky-sidebar.min.js
new file mode 100755
index 0000000..7bcdd11
--- /dev/null
+++ b/assets/js/theia-sticky-sidebar.min.js
@@ -0,0 +1 @@
+!function(i){i.fn.theiaStickySidebar=function(t){function e(t,e){var a=o(t,e);a||(console.log("TSS: Body width smaller than options.minWidth. Init is delayed."),i(document).on("scroll."+t.namespace,function(t,e){return function(a){var n=o(t,e);n&&i(this).unbind(a)}}(t,e)),i(window).on("resize."+t.namespace,function(t,e){return function(a){var n=o(t,e);n&&i(this).unbind(a)}}(t,e)))}function o(t,e){return t.initialized===!0||!(i("body").width()