芝麻web文件管理V1.00
编辑当前文件:/home/fambnfli/www/tr/wp-content/plugins/bold-timeline-lite/bold-builder-light/script.min.js
window.bt_bb_map={};window.bt_bb_map_primary={};window.bt_bb_map_secondary={};window.addEventListener("beforeunload",function(b){if(window.bt_bb_dirty){b.preventDefault();b.returnValue=""}});(function(b){b(document).ready(function(){window.bt_bb_mouse={};window.bt_bb_drag_item=null;if(b("#bt_bb").length>0){if(window.bt_bb_data.children.length>0){if(window.bt_bb_map[window.bt_bb_data.children[0].base]===undefined||window.bt_bb_map[window.bt_bb_data.children[0].base].root!==true){window.bt_bb_data.children=[];window.bt_bb.is_bb_content=false}}}if(b("#postdivrich").length>0&&b("#bt_bb").length>0){b("#postdivrich").before('
');if(window.bt_bb.is_bb_content){window.bt_bb.editor="bb";b("#postdivrich").addClass("bt_bb_hidden");b("#bt_bb_editor_toolbar").addClass("bt_bb_is_bb_editor")}else{window.bt_bb.editor="wp";b("#bt_bb_sectionid").hide()}var t=window.bt_bb.editor=="bb"?true:false;b("#bt_bb_editor_toolbar").html('
'+window.bt_bb_text.switch_editor+'
'+window.bt_bb_text.custom_css+'
');var _={action:"bt_bb_get_custom_css",post_id:b("#post_ID").val()};b.ajax({type:"POST",url:window.BTAJAXURL,data:_,async:true,success:function(_){window.bt_bb_custom_css=window.b64EncodeUnicode(_);if(t){b(".bt_bb_custom_css").removeAttr("disabled")}if(_!=""){b(".bt_bb_custom_css").addClass("button-primary")}}})}b("#publish, #post-preview, #save-post, #save").on("click",function(t){window.bt_bb_dirty=false;if(window.bt_bb.editor=="bb"){b("#bt_bb_front_end_preview iframe").remove();b("#bt_bb_front_end_preview").append('
');b("#bt_bb_front_end_preview").hide();window.bt_bb_action="update_wp_editor";bt_bb_dispatch(".bt_bb_item_list","bt_bb_event")}});window.bt_bb_item_mousedown=function(){b(".bt_bb_item").each(function(){b(this).unbind("mousedown");b(this).on("mousedown",function(t){t.stopPropagation();var _=this.getBoundingClientRect();var e=t.clientX-_.left;var i=t.clientY-_.top;window.bt_bb_mouse.initOffsetX=e;window.bt_bb_mouse.initOffsetY=i;window.bt_bb_action=null;window.bt_bb_drag_item=b(this);b(".bt_bb_toolbar_tools_visible").removeClass("bt_bb_toolbar_tools_visible");var o=b(this).parent()[0].getBoundingClientRect();b(this).parent().css("height",o["height"]);b(this).parent().addClass("bt_bb_wrap_drag");b(this).addClass("bt_bb_drag");b(this).find(".bt_bb_horizontal").css("height","auto");b(this).find(".bt_bb_width .bt_bb_item").css("height","auto");b(this).css("width",b(this).width());if(!b(this).hasClass("bt_bb_toggled")){o=b(this)[0].getBoundingClientRect();b(this).css("height",o["height"])}b(this).css("position","fixed");b(this).css("zIndex","100000");b(this).css("top",bt_bb_mouse.y-bt_bb_mouse.initOffsetY);b(this).css("left",bt_bb_mouse.x-bt_bb_mouse.initOffsetX)})})};bt_bb_item_mousedown();b(document).mouseup(function(t){b(".bt_bb_marker").removeClass("bt_bb_marker");if(window.bt_bb_drag_item!=null){window.bt_bb_dialog.hide();b(".bt_bb_toolbar_tools").css("opacity","");if(window.bt_bb_action!=null&&window.bt_bb_action.startsWith("move")){window.bt_bb_ctrl=t.ctrlKey;bt_bb_dispatch(".bt_bb_item_list","bt_bb_event")}window.bt_bb_drag_item.parent().css("height","");window.bt_bb_drag_item.parent().removeClass("bt_bb_wrap_drag");window.bt_bb_drag_item.removeClass("bt_bb_drag");window.bt_bb_drag_item.find(".bt_bb_horizontal").css("height","");window.bt_bb_drag_item.find(".bt_bb_width .bt_bb_item").css("height","");window.bt_bb_drag_item.css("position","");window.bt_bb_drag_item.css("zIndex","");window.bt_bb_drag_item.css("opacity","");window.bt_bb_drag_item.css("width","");if(!window.bt_bb_drag_item.hasClass("bt_bb_toggled")){window.bt_bb_drag_item.css("height","")}window.bt_bb_drag_item.css("top","");window.bt_bb_drag_item.css("left","")}window.bt_bb_drag_item=null});b(document).mousemove(function(t){bt_bb_mouse.x=t.clientX;bt_bb_mouse.y=t.clientY;if(window.bt_bb_drag_item!=null){window.bt_bb_drag_item.css("top",bt_bb_mouse.y-bt_bb_mouse.initOffsetY);window.bt_bb_drag_item.css("left",bt_bb_mouse.x-bt_bb_mouse.initOffsetX);var _=bt_bb_get_action();b(".bt_bb_marker").removeClass("bt_bb_marker bt_bb_marker_up bt_bb_marker_down bt_bb_marker_left bt_bb_marker_right bt_bb_marker_inside");if(window.bt_bb_action!=null){if(_[1]=="up"){_[0].addClass("bt_bb_marker bt_bb_marker_up")}else if(_[1]=="down"){_[0].addClass("bt_bb_marker bt_bb_marker_down")}else if(_[1]=="left"){_[0].addClass("bt_bb_marker bt_bb_marker_left")}else if(_[1]=="right"){_[0].addClass("bt_bb_marker bt_bb_marker_right")}else if(_[1]=="inside"){_[0].addClass("bt_bb_marker bt_bb_marker_inside")}}}});b(document).on("mouseover","#bt_bb_dialog",function(t){t.stopPropagation();window.bt_bb_dialog.is_mouseover=true;b(".bt_bb_toolbar_tools_visible").removeClass("bt_bb_toolbar_tools_visible")});b(document).on("mouseleave","#bt_bb_dialog",function(b){window.bt_bb_dialog.is_mouseover=false});b("#bt_bb_add_root").click(function(b){b.preventDefault();window.bt_bb_dialog.hide();window.bt_bb_action="add_root";bt_bb_dispatch(".bt_bb_item_list","bt_bb_event")});b("#bt_bb_main_toolbar .bt_bb_undo").click(function(b){bt_bb_undo()});b("#bt_bb_main_toolbar .bt_bb_redo").click(function(b){bt_bb_redo()});b("#bt_bb_main_toolbar .bt_bb_paste_root").click(function(b){bt_bb_paste_main_toolbar()});b("#bt_bb_main_toolbar .bt_bb_manage_clipboard").click(function(b){window.bt_bb_dialog.hide();window.bt_bb_dialog.show("manage_cb")});b("#bt_bb_main_toolbar .bt_bb_sc_mapper").click(function(b){window.bt_bb_dialog.hide();window.bt_bb_dialog.show("sc_mapper")});b("#bt_bb_editor_toolbar .bt_bb_switch_editor").click(function(t){if(window.bt_bb.editor=="bb"){window.bt_bb.editor="wp";window.bt_bb_action="update_wp_editor";bt_bb_dispatch(".bt_bb_item_list","bt_bb_event");b("#postdivrich").removeClass("bt_bb_hidden");b("#bt_bb_sectionid").hide();b("#postdivrich").hide().show(0);b(this).parent().removeClass("bt_bb_is_bb_editor");b(".bt_bb_custom_css").attr("disabled","")}else{if(confirm(window.bt_bb_text.switch_editor_confirm)){window.bt_bb.editor="bb";b("#postdivrich").addClass("bt_bb_hidden");b("#bt_bb_sectionid").show(0);b(this).parent().addClass("bt_bb_is_bb_editor");b(".bt_bb_custom_css").removeAttr("disabled")}}});b("#bt_bb_editor_toolbar .bt_bb_custom_css").on("click",function(t){window.bt_bb_dialog.hide();window.bt_bb_dialog.show("custom_css");b("#bt_bb_dialog").addClass("bt_bb_dialog_custom_css")});b("#bt_bb_main_toolbar .bt_bb_preview").on("click",function(t){b("#post-preview").click()});b("#bt_bb_main_toolbar .bt_bb_save").on("click",function(t){b("#publish").click()});window.bt_bb_toolbar=function(){b(document).unbind("keydown.bt_bb");b(document).unbind("keyup.bt_bb");b(".bt_bb_toolbar").unbind("mouseover");b(".bt_bb_toolbar").unbind("mouseout");b(".bt_bb_toolbar i").unbind("mousedown");b(".bt_bb_toolbar i").unbind("click");b(".bt_bb_toolbar i").mousedown(function(b){b.stopPropagation()});b(".bt_bb_toolbar .bt_bb_order").mousedown(function(b){b.stopPropagation()});b(".bt_bb_toolbar .bt_bb_toggle").click(function(t){if(b(this).closest(".bt_bb_item").hasClass("bt_bb_toggled")){b(this).closest(".bt_bb_item").removeClass("bt_bb_toggled");b(this).closest(".bt_bb_item").css("height","")}else{b(this).closest(".bt_bb_item").addClass("bt_bb_toggled");b(this).closest(".bt_bb_item").css("height",b(this).parent().height()+window.bt_bb.padding*2)}});b(".bt_bb_toolbar .bt_bb_delete").click(function(t){window.bt_bb_action="delete";window.bt_bb_from=b(this).closest(".bt_bb_item").parent().data("reactid");bt_bb_dispatch(".bt_bb_item_list","bt_bb_event")});b(".bt_bb_toolbar .bt_bb_add").click(function(t){t.preventDefault();window.bt_bb_dialog.hide();if(b(this).closest(".bt_bb_item").data("container")=="horizontal"){window.bt_bb_action="add_horizontal"}else{window.bt_bb_action="add"}window.bt_bb_from=b(this).closest(".bt_bb_item").parent().data("reactid");window.bt_bb_base=b(this).closest(".bt_bb_item").data("base");bt_bb_dispatch(".bt_bb_item_list","bt_bb_event")});b(".bt_bb_toolbar .bt_bb_edit").click(function(t){t.preventDefault();window.bt_bb_dialog.hide();window.bt_bb_action="edit";window.bt_bb_from=b(this).closest(".bt_bb_item").parent().data("reactid");window.bt_bb_base=b(this).closest(".bt_bb_item").data("base");bt_bb_dispatch(".bt_bb_item_list","bt_bb_event")});b(".bt_bb_toolbar .bt_bb_clone").click(function(t){t.preventDefault();window.bt_bb_action="clone";window.bt_bb_from=b(this).closest(".bt_bb_item").parent().data("reactid");bt_bb_dispatch(".bt_bb_item_list","bt_bb_event")});b(".bt_bb_toolbar .bt_bb_copy").click(function(t){t.preventDefault();window.bt_bb_action="copy";window.bt_bb_from=b(this).closest(".bt_bb_item").parent().data("reactid");bt_bb_dispatch(".bt_bb_item_list","bt_bb_event")});b(".bt_bb_toolbar .bt_bb_copy_plus").click(function(t){t.preventDefault();window.bt_bb_action="copy_plus";window.bt_bb_from=b(this).closest(".bt_bb_item").parent().data("reactid");bt_bb_dispatch(".bt_bb_item_list","bt_bb_event")});b(".bt_bb_toolbar .bt_bb_paste").click(function(t){t.preventDefault();window.bt_bb_action="paste";window.bt_bb_from=b(this).closest(".bt_bb_item").parent().data("reactid");bt_bb_dispatch(".bt_bb_item_list","bt_bb_event")});b(".bt_bb_toolbar .bt_bb_order").click(function(t){t.preventDefault();var _=b(this).find(".bt_bb_order_inner").html();b("#bt_bb_front_end_preview").show();b("#bt_bb_front_end_preview").append('
\x3c!-- /bt_bb_fe_loader --\x3e
');b("#bt_bb_front_end_preview iframe").remove();b("#bt_bb_front_end_preview").append('
');b("#bt_bb_front_end_preview iframe").css("opacity","0");b("#bt_bb_front_end_preview iframe").load(function(){var t;t=b("#bt_bb_front_end_preview iframe").contents();t.find("#wpadminbar").hide();t.find("html").attr("style","margin-top: 0px !important");t.find("body").removeClass("admin-bar");t.find("body").imagesLoaded().always(function(e){b("#bt_bb_front_end_preview .bt_bb_front_end_preview_loading").remove();var i=t.find(".bt_bb_fe_wrap");var o=[];i.each(function(b,t){if(t.closest(".menu")===null){o.push(t)}});b("#bt_bb_front_end_preview iframe").css("opacity","1");t.find("html, body").scrollTop(b(o[_-1]).offset().top)})});window.bt_bb_resize_front_end_preview();window.bt_bb_action="update_wp_editor";bt_bb_dispatch(".bt_bb_item_list","bt_bb_event");var e=b("form#post");var i=b("input#wp-preview");var o="bt_bb_front_end_preview_iframe";var n=navigator.userAgent.toLowerCase();if(wp.autosave){wp.autosave.server.tempBlockSave()}i.val("dopreview");e.attr("target",o).submit().attr("target","");if(n.indexOf("safari")!==-1&&n.indexOf("chrome")===-1){e.attr("action",function(b,t){return t+"?t="+(new Date).getTime()})}i.val("")});b(".bt_bb_front_end_preview_close").click(function(t){b("#bt_bb_front_end_preview").hide()})};window.bt_bb_toolbar();if(b("#bt_bb").length>0){window.bt_bb_init_number_items()}function e(b){var t=window.location.href;b=b.replace(/[\[\]]/g,"\\$&");var _=new RegExp("[?&]"+b+"(=([^]*)|&|#|$)");var e=_.exec(t);if(!e)return null;if(!e[2])return"";return decodeURIComponent(e[2].replace(/\+/g," "))}b(document).ready(function(){if(Number.isInteger(parseInt(e("bt_bb_order")))){var t=parseInt(e("bt_bb_order"));setTimeout(function(){b("html, body").scrollTop(b(".bt_bb_order").eq(t-1).offset().top-b("#wpadminbar").height()-24)},500)}})});window.bt_bb_get_action=function(){var t=bt_bb_mouse.x;var _=bt_bb_mouse.y;window.bt_bb_action=null;var e=null;var i=null;if(!bt_bb_point_coll(bt_bb_drag_item.parent(),t,_)){var o=bt_bb_drag_item.data("base");var n=b(".bt_bb_item").not(".bt_bb_drag").not(".bt_bb_drag .bt_bb_item");if(o=="bt_bb_section"||o=="bt_section"){n=b('.bt_bb_item[data-base="bt_bb_section"],.bt_bb_item[data-base="bt_section"]').not(".bt_bb_drag").not(".bt_bb_drag .bt_bb_item")}var a=bt_bb_get_closest(n,t,_);if(a!=null){var r=bt_bb_get_position(a);window.bt_bb_from=bt_bb_drag_item.parent().data("reactid");window.bt_bb_to=a.parent().data("reactid");if(r=="inside"){var s=a.data("base");var d=a}else{var s=a.parent().closest(".bt_bb_item").data("base");var d=a.parent().closest(".bt_bb_item")}e=a;var l=false;if(a.parent().parent().hasClass("bt_bb_item_list")&&r!="inside"){if(window.bt_bb_map[o]!==undefined&&window.bt_bb_map[o].root===true){l=true}else{l=false}}else if(window.bt_bb_map[s]===undefined||window.bt_bb_map[s].accept===undefined){l=false}else if(window.bt_bb_map[s].accept[o]===true){l=true}else if(window.bt_bb_map[s].accept[o]===false){l=false}else if(window.bt_bb_map[s].accept_all===true){l=true}else if(window.bt_bb_map[s].accept_all===false){l=false}if(d.find(".bt_bb_horizontal").length>0){if(d.find(".bt_bb_horizontal")[0].children.length>=12){l=false}}if(l){if(r=="down"){window.bt_bb_action="move_down";i="down";if(e.parent().hasClass("bt_bb_width"))i="right"}else if(r=="up"){window.bt_bb_action="move_up";i="up";if(e.parent().hasClass("bt_bb_width"))i="left"}else if(r=="left"){window.bt_bb_action="move_up";i="up";if(e.parent().hasClass("bt_bb_width"))i="left"}else if(r=="right"){window.bt_bb_action="move_down";i="down";if(e.parent().hasClass("bt_bb_width"))i="right"}else if(r=="inside"){window.bt_bb_action="move_inside";i="inside"}}}}var c=[e,i];return c};window.bt_bb_point_coll=function(t,_,e){var i=t.offset().top-b(window).scrollTop();var o=t.offset().left;var n=t.innerWidth();var a=t.innerHeight();return bt_bb_point_coll_base(i,o,n,a,_,e)};window.bt_bb_point_coll_top=function(t,_,e){var i=t.offset().top-b(window).scrollTop();var o=t.offset().left;var n=t.innerWidth();var a=t.find(".bt_bb_toolbar").height()+window.bt_bb.padding*2;return bt_bb_point_coll_base(i,o,n,a,_,e)};window.bt_bb_point_coll_base=function(b,t,_,e,i,o){var n=[t,t,t+_,t+_];var a=[b,b+e,b+e,b];var r=true;var s,d,l;for(var c=0;c<4;c++){if(c==3){s=-(a[0]-a[c]);d=n[0]-n[c];l=-(s*n[c]+d*a[c])}else{s=-(a[c+1]-a[c]);d=n[c+1]-n[c];l=-(s*n[c]+d*a[c])}if(s*i+d*o+l>0){r=false}}return r};window.bt_bb_point_dist=function(t,_,e){var i=t.offset().top-b(window).scrollTop();var o=t.offset().left;var n=i+t.innerHeight();var a=o+t.innerWidth();if(_>o&&_
i&&e
o&&_
i&&e
i){var n="down"}else if(bt_bb_mouse.x
o){var n="right"}else{var n="inside"}return n};window.bt_bb_event=function(b){window.bt_bb_action=b;bt_bb_dispatch(".bt_bb_item_list","bt_bb_event")};window.bt_bb_resize_dialog=function(t){var _=b(window).innerHeight();if(_<800){var e=Math.round(b(window).innerHeight()*.5)}else{var e=Math.round(b(window).innerHeight()*.65)}b("#bt_bb_dialog .bt_bb_dialog_content").css("max-height",e);b("#bt_bb_dialog").css("width",Math.round(b(window).width()*.5)+"px");var i=b("#bt_bb_dialog").width();b("#bt_bb_dialog").css({transform:"translateX("+Math.round(-i*.5)+"px)"})};window.bt_bb_resize_front_end_preview=function(t){b("#bt_bb_front_end_preview").css("width",Math.round(b(window).width()*.9)+"px");b("#bt_bb_front_end_preview").css("height",Math.round(b(window).innerHeight()*.8));var _=b("#bt_bb_front_end_preview").width();var e=b("#bt_bb_front_end_preview").height();b("#bt_bb_front_end_preview").css({transform:"translate("+Math.round(-_*.5)+"px,"+Math.round(-e*.5)+"px)"})};b(window).resize(function(){window.bt_bb_resize_dialog();window.bt_bb_resize_front_end_preview()})})(jQuery);var bt_bb_special_char_encode=function(b){var t=/([\s\S]*?<[a-zA-Z]+?)(\s[^<]*?)(>[\s\S]*)/;var _;while((_=t.exec(b))!==null){b=b.replace(t,"$1$3")}t=/<\/\s*([a-zA-Z]+)\s*>/g;b=b.replace(t,"$1>");var e=["address","b","big","cite","code","del","em","i","ins","pre","small","strong","sub","sup","s","u","ul","ol","li"];t=/<\/?([a-zA-Z]+)?>/g;while((_=t.exec(b))!==null){if(!e.includes(_[1])){b=b.replace(_[0],"")}}t=/<([a-zA-Z]+)?>/g;while((_=t.exec(b))!==null){if(b.indexOf(""+_[1]+">")==-1){b=b.replace(_[0],"")}}t=/<\/?([a-zA-Z]+)?>/g;while((_=t.exec(b))!==null){if(b.indexOf("<"+_[1]+">")==-1){b=b.replace(_[0],"")}}t=/<([a-zA-Z]+)?>/g;while((_=t.exec(b))!==null){var i=b.lastIndexOf("<"+_[1]+">");if(i>b.lastIndexOf(""+_[1]+">")){var o=b.substring(0,i);var n=b.substring(i+2+_[1].length);b=o+n}}t=/<([a-zA-Z]+)?>/g;var a=Array();while((_=t.exec(b))!==null){a.push(_[1])}t=/<([a-zA-Z]+)?>/g;var r=Array();while((_=t.exec(b))!==null){r.push(_[1])}a.forEach(function(t){var _=(b.match(new RegExp("<"+t+">","g"))||[]).length;var e=(b.match(new RegExp(""+t+">","g"))||[]).length;if(_>e){var i=b.indexOf("<"+t+">");var o=b.substring(0,i);var n=b.substring(i+2+t.length);b=o+n}});r.forEach(function(t){var _=(b.match(new RegExp("<"+t+">","g"))||[]).length;var e=(b.match(new RegExp(""+t+">","g"))||[]).length;if(_
");var o=b.substring(0,i);var n=b.substring(i+3+t.length);b=o+n}});var s=b.replace(/"/gim,"``");s=s.replace(/\[/gim,"`{`");s=s.replace(/\]/gim,"`}`");return s};var bt_bb_special_char_decode=function(b){var t=b.replace(/``/gim,""");t=t.replace(/`{`/gim,"[");t=t.replace(/`}`/gim,"]");return t};var bt_bb_json_encode=function(b){var t=/[\b\t\n\f\r\\\"\/\u00A1-\uFFFF]/g;var _={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\","/":"\\/"};t.lastIndex=0;return t.test(b)?'"'+b.replace(t,function(b){var t=_[b];return typeof t==="string"?t:"\\u"+("0000"+b.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+b+'"'};if(!String.prototype.startsWith){String.prototype.startsWith=function(b,t){t=t||0;return this.lastIndexOf(b,t)===t}}if(!String.prototype.endsWith){String.prototype.endsWith=function(b,t){var _=this.toString();if(typeof t!=="number"||!isFinite(t)||Math.floor(t)!==t||t>_.length){t=_.length}t-=b.length;var e=_.indexOf(b,t);return e!==-1&&e===t}}var bt_bb_create_dom_element=function(b,t){var _=document.createElement(b);var e;for(var i=0;i