var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); (function ($) { $(document).ready(function () { if(typeof QRCode === "function" && $(".qrcode .img-box").length) { let href = location.href; if($("[rel='shortlink']").length){ href = $("[rel='shortlink']").get(0).href; } new QRCode($(".qrcode .img-box").get(0), href); } $('.infos .donate,.infos .share').unbind("click").click(function () { let el = $('.infos'); if ($(this).attr('class') === 'donate') { el.removeClass('share-close'); el.toggleClass('donate-close'); } else { el.removeClass('donate-close'); el.toggleClass('share-close'); } }); }); $(".dot-good").click(function () { if ($(this).hasClass('done')) { alert('点多了伤身体~'); return false; } else { $(this).addClass('done'); var id = $(this).data("id"), action = $(this).data('action'), rateHolder = $(this).children('.count'); var ajax_data = { action: "dotGood", um_id: id, um_action: action }; $.post(themeAdminAjax.url, ajax_data, function (data) { $(rateHolder).html(data); }); return false; } }); //Zepto & jQuery AjaxComments $(document).ready(function () { var __cancel = $('#cancel-comment-reply-link'), __cancel_text = __cancel.text(), __list = 'comment-list';//your comment wrapprer $("#commentform").off().on("submit", function () { $.ajax({ url: ajaxcomment.ajax_url, data: $(this).serialize() + "&action=ajax_comment", type: $(this).attr('method'), beforeSend: bijiAjax.createButterbar("提交中...."), error: function (request) { var t = bijiAjax; t.createButterbar(request.responseText); }, success: function (data) { $('textarea').each(function () { this.value = '' }); let t = bijiAjax, cancel = t.I('cancel-comment-reply-link'), temp = t.I('wp-temp-form-div'), respond = t.I(t.respondId), post = t.I('comment_post_ID').value, parent = parseInt(t.I('comment_parent').value); if (parent !== 0) { $('#respond').before('