芝麻web文件管理V1.00
编辑当前文件:/home/soundframestudio/public_html/wp-content/plugins/revslider/admin/assets/js/modules/help.js
/*! * REVOLUTION 6.0.0 HELP JS * @version: 1.0 (01.07.2019) * @author ThemePunch */ jQuery((function(){if("undefined"!=typeof jQuery){var e,t,s,a,i,r,l,o,n,d,c,p,h,u,_,f,m,v,y,g,b,k,w,j,Q,S,C,R,x,T,O,V,H,G,P,N,A,I,L,q,E,F,D,M,z,J,W,B=":checked",U=new RegExp("layerinput|actioninput"),X=new RegExp("sliderinput|navstyleinput"),K=new RegExp("slideinput|added_slide_transition"),Y="*[data-r], *[data-select], *[data-helpkey], .ddTP, .revbuilder-colorpicker, .tponoffwrap, .fake_on_button, .added_slide_transition, .lal_group_member",Z=".frame_list_title, .intelligent_buttons";RVS.DOC.on("click","#help_menu .tponoffwrap",(function(e){e.stopImmediatePropagation(),void 0!==RVS.ENV.plugin_url&&"undefined"!=typeof RVS&&"undefined"!=typeof tpGS&&(F?te():$())})),F?te():$(),showhidehelpdata.checked=!0,RVS.F.turnOnOffVisUpdate({btn:showhidehelpdata,input:showhidehelpdata}),jQuery(".help_wrap").on("mouseenter",(function(){tpGS.gsap.set("#help_mode_modal",{inset:50+help_menu.clientHeight+"px 100% auto auto"}),G=!0,j&&(I=!0,ie())})).on("mouseleave",(function(){tpGS.gsap.set("#help_mode_modal",{inset:50+help_menu.clientHeight+"px 100% auto auto"}),G=!1})),HelpGuide.toggleHelpAddOn=function(e,t){var s=t?"removeClass":"addClass";HelpGuide.allHelpPaths.find('.help-directory-menu[data-path="'+e+'"]')[s]("help-hide-addon"),oe(),D.trigger("click")},HelpGuide.extendHelpAddOns=function(s,i){for(var r=s.length,l=0;l
'),RVS.F.ajaxRequest("get_help_directory",{},(function(t){var n;if(t.success){try{n=JSON.stringify(t.data),n=JSON.parse(n)}catch(e){n=!1}n?(r=n.translations,a=n.helpindex,F=!0,function(){win=jQuery(window),l=jQuery("body");var t='
touch_app
settings
gamepad
burst_mode
layers
'+r.helpMode+'
'+r.instructions+'
library_books
'+r.viewDocs+'
near_me
settings
gamepad
burst_mode
layers
'+r.showOption+'
close
';jQuery(t).prependTo(jQuery("#the_right_toolbar")),s=jQuery("#help_mode_title"),v=jQuery("#help_mode_title_wrap"),H=jQuery("#help_mode_description"),jQuery("#help-mode-buttons"),C=jQuery("#help_faq_results"),q=jQuery("#help_search_results"),E=jQuery("#help_options_results"),jQuery("#help_mode_search"),W=jQuery("#help_search_input").on("focus",ne).on("keyup",Ne),D=jQuery("#help_input_clear").on("click",(function(){W.val("").trigger("keyup")})),s.data("origtext",s.html()),o=jQuery("#help_mode_modal").draggable({cancel:".help-no-drag, .help-mode-description, #help_mode_search_wrap"}).on("mouseenter",ke).on("mouseleave",we),jQuery("#help_modal_close").on("click",(function(){l.removeClass("help-mode-active")})),Q=jQuery("#help_mode_documentation").on("click",(function(){jQuery(".help-input-focus").removeClass("help-input-focus"),window.open(this.dataset.link)})),N=jQuery("#help_mode_option").on("click",Pe),J=jQuery(".help-results-wrap").RSScroll({wheelPropagation:!0,suppressScrollX:!0,minScrollbarLength:100}),y=jQuery("#help_mode_video"),b=jQuery("#help_mode_video_wrap"),z=jQuery(".help-mode-description"),function(){for(var e=[[".fake_on_button","slider","size.custom.d"],['*[data-r="source.woo.types"]',"slider","source.post.types"],['*[data-r="source.woo.category"]',"slider","source.post.category"],['*[data-r="source.woo.sortBy"]',"slider","source.post.sortBy"],['*[data-r="source.woo.sortDirection"]',"slider","source.post.sortDirection"],['*[data-r="source.woo.maxProducts"]',"slider","source.post.maxPosts"],['*[data-r="source.woo.excerptLimit"]',"slider","source.post.excerptLimit"],["#row_column_structure","layer","row_column_structure"],[".colselector label_bigicon","layer","row_column_structure"],[".layer_rowbreak_icons","layer","group.columnbreakat"],[".modal_hor_selector","slider","modal.horizontal"],[".modal_ver_selector","slider","modal.vertical"]],t=0;t
";for(var d=0;d
keyboard_arrow_right',b=!0!==u?r.docs:r.tutorial;if(p.description&&(y='
'+p.description+"
"),p.article&&(f='
assignment
'+b+"
"),p.section)if(Array.isArray(p.section)){m="";for(var k=p.section.length,w=0;w
'+p.section[w].replace(/\-\>/g,g)+""}else m='
'+p.section.replace(/\-\>/g,g)+"
";if(p.highlight&&HelpGuide.verifyObject(p.highlight)){var j="",Q="",S="",C="",R=p.dependency_id?' id="revhelp_'+p.dependency_id+'"':"";(v=p.highlight).menu&&(j=' data-menu="'+v.menu+'"'),v.modal&&(Q=' data-modal="'+v.modal+'"'),v.focus&&(S=' data-focus="'+v.focus+'"'),v.scrollTo&&(C=' data-scrollto="'+v.scrollTo+'"'),v.dependencies&&Array.isArray(v.dependencies)&&(C+=" data-dependencies='"+JSON.stringify(v.dependencies)+"'"),v="
settings
'+r.option+"
"}if(d===n){for(var x=0;x
";i=0}e+='
'+t+"
"+p.title+'
'+m+y+f+v+"
"+_}else{switch(c){case"general_how_to":t="help_outline";break;case"slider_settings":t="settings";break;case"navigation_settings":t="gamepad";break;case"slide_settings":t="burst_mode";break;case"layer_settings":t="layers"}var T=c.replace(/\_/g," ").replace(/\b\w/g,(function(e){return e.toUpperCase()}));e+='
folder
folder_open
'+T+"
",i++,re(p,"")}}}e+=""}function le(){var e=jQuery(this);return e.html()?e.children("li").not(".help-hide-addon").length:(e.remove(),!1)}function oe(){jQuery('.help-directory-menu[data-path="addons"]').each((function(){var e=jQuery(this);e.children("ul").filter(le).length?e.show():e.hide()}))}function ne(){w=[],HelpGuide.allHelpPaths.find(".help-directory-target").each((function(e){for(var t="",s=jQuery(this).parents(".help-directory-menu").not(".help-hide-addon").toArray().reverse(),a=s.length,i=0;i
1){var s=t.shift();return!!e.hasOwnProperty(s)&&de(e[s],t)}return!!e.hasOwnProperty(t[0])&&e[t[0]]}function ce(e,t,s){if(!u){var a,i=e.helpPath;if(i){a=(i=i.split(",")).length;for(var r=0;r
=0){var l=t.split(".");return["editor_settings.slide_settings.addons.transitionpack."+(l=l[l.length-1]),a.editor_settings.slide_settings.addons.transitionpack,"."+l]}}}return!1}function he(e,t,s){var a='
',s){case"slider":i='
settings
';break;case"nav":i='
gamepad
';break;case"slide":i='
burst_mode
';break;case"layer":i='
layers
';break;case"doc":i='
library_books
';break;default:i='
help_outline
'}return a+=i+"
"+e+"
"}function ue(){var e=this.dataset.path;me(de(a,e),e)}function _e(e,t){var s=Math.max(E.height(),C.height()),a=Math.min(RVS.WIN.height()/3,s);J.height(a),J[0].scrollTop=0,J[1].scrollTop=0,J.RSScroll("update")}function fe(e,t){return(t.match(/(^|\s)help-\icon-\S+/g)||[]).join(" ")}function me(e,t){var a=e.highlight,i=e.buttonTitle||e.title;t="general_how_to"!==(t=t.split("."))[0]?t[1].replace("_settings",""):"faq",g.text(i),s.html(t+" "+r.options),v.removeClass(fe).addClass("help-icon-"+t),H.html(e.description),z.show(),Q.attr("data-link",e.article).css("display","inline-block"),N.removeAttr("data-menu data-modal data-scrollto data-focus data-dependencies").removeClass(fe).addClass("help-icon-"+t).css("display","inline-block"),a?(a.menu&&N.attr("data-menu",a.menu),a.modal&&N.attr("data-modal",a.modal),a.scrollTo&&N.attr("data-scrollto",a.scrollTo),a.focus&&N.attr("data-focus",a.focus),a.dependencies&&Array.isArray(a.dependencies)&&N.attr("data-dependencies",JSON.stringify(a.dependencies))):N.hide(),l.addClass("help-mode-active")}function ve(){p=setTimeout((function(){h||f||G||l.removeClass("help-mode-active")}),3e3)}function ye(){var e;if(this.className&&-1!==this.className.search("frame_list_title")){var t=jQuery(this).closest(".keyframe_liste").attr("data-frame");if(!t)return;switch(t=t.replace("frame_","")){case"0":e="animation.in.from";break;case"1":e="animation.in.to";break;case"999":e="animation.out.to";break;default:e="animation.keyframe.to"}}else e=this.dataset.evt;this.dataset.helpkey=e,ge.call(this)}function ge(){var e=jQuery(this);if(!e.hasClass("opensettingstrigger")&&!e.hasClass("formcontainer")){clearTimeout(_),clearTimeout(n),jQuery(".help-input-focus").removeClass("help-input-focus");var t,s=this.dataset.helpkey||this.dataset.r;if(s||(s=(t=(t=e).attr("data-select")?jQuery(t.attr("data-select")):t.hasClass("ddTP")?t.prev("select"):t.hasClass("revbuilder-colorpicker")?t.find(".revbuilder-cpicker-component"):t.find("input[data-r]")).attr("data-helpkey")||t.attr("data-r")||""),t&&t.length||(t=e),s=function(e,t){return-1!==t.search("parallax.levels")&&3===(t=t.split(".")).length?t[0]+"."+t[1]:-1!==t.search("info.params")&&4===(t=t.split(".")).length?t[0]+"."+t[1]+"."+t[3]:e.hasClass("added_slide_transition")?"added_slide_transition":-1===t.search(/nav\.|bullets\./)?t:e.closest("#sr_bullets_styles_fieldset, #sr_tabs_styles_fieldset").length||e.closest("#sl_bullets_styles_fieldset, #sl_tabs_styles_fieldset").length?-1===t.search("def")?"navigation.styles":"navigation.styles.default":t}(t,s),s){var a=s;"radio"===this.type&&(a+="."+this.value);var i=pe(t,a,e.attr("data-helproot"));(i||("radio"===this.type&&(i=pe(t,s,e.attr("data-helproot"))),i))&&(m=!0,M=!0,n=setTimeout((function(){if(m)if(clearTimeout(p),D.trigger("click"),f=!0,se(),me(de(i[1],i[2].substr(1)),i[0]),e.hasClass("revbuilder-colorpicker")||e.hasClass("tponoffwrap")){var s=e.closest(".tponoffwrap");s.length?s.addClass("help-input-focus"):e.addClass("help-input-focus")}else e.attr("class")&&-1===e.attr("class").search(/bg_alignselector|layer_hor_selector|layer_ver_selector|layer_content_hor_selector|layer_content_ver_selector/)?t.addClass("help-input-focus"):e.addClass("help-input-focus")}),500))}}}function be(){m=!1,f=!1,ve()}function ke(){clearTimeout(p),h=!0}function we(){h=!1,M&&!G&&ve()}function je(){h||G||(M=!0,we())}function Qe(){jQuery(this).removeClass((function(e,t){return(t.match(/(^|\s)help-\hover-\S+/g)||[]).join(" ")}))}function Se(){V&&(V=!1,l.off(".helpguidehover"),jQuery(".help-hover").removeClass("help-hover").each(Qe))}function Ce(){l.off(".helpguidehover").one("click.helpguidehover",Se)}function Re(e,t){var s;clearTimeout(k),Se(),"layers"===e?(t||(t="text"),c.addClass("help-hover"),c.addClass("help-hover-"+t)):(s=c.prev().addClass("help-hover"),"slideorder"===e?s.addClass("help-hover-slideorder"):"staticlayers"===e&&s.addClass("help-hover-staticlayers")),V=!0,k=setTimeout(Ce,100)}function xe(){var e=jQuery(this);e.hasClass("tponoff")?e=e.closest(".tponoffwrap"):e.hasClass("revbuilder-cpicker-component")&&(e=e.closest(".revbuilder-colorpicker")),e.addClass("help-input-focus")}function Te(e){var t,s,a,i,r,l,o,n,d,c,p;switch((e=e.split("::"))[0]){case"layerselected":if(2===e.length&&(p=e[1]),p)for(n=p.split("||"),c="",-1!==(p=n[0]).search("{{")&&(c=" .tp-"+(o=(p=p.split("{{"))[1].split("}}")[0]),p=o),a=n.length,i="",t=0;t
0&&(i+=", "),s=n[t],c&&(s=s.split("{{")[0]),i+="._lc_type_"+s+c;else i="._lc_";try{l=jQuery(i)}catch(e){l=!1}l&&l.length?(l.hasClass("_lc_content_")&&(l=l.closest("._lc_")),(r=l.filter(".selected")).length||(r=l.eq(0).trigger("click")),d=function(e){for(var t=e[0].className.split(" "),s=t.length;s--;)if(-1!==t[s].search("_lc_type_"))return t[s].replace("_lc_type_","");return!1}(r)):Re("layers",p);break;case"addlayer":Re("layers","text");break;case"addslide":Re("slides");break;case"slideorder":Re("slideorder");break;case"staticlayers":Re("staticlayers");break;default:try{jQuery(e[0]).trigger("click")}catch(e){}}return d}function Oe(e){return"true"===e||"on"===e||"false"!==e&&"off"!==e&&e}function Ve(e){return"#layer#"===e&&void 0!==RVS.selLayers&&Array.isArray(RVS.selLayers)&&RVS.selLayers.length?void 0!==RVS.S.clickedLayer?lastClickedLayer:RVS.selLayers[0].toString():"#slide#"===e&&void 0!==RVS.S.slideId?RVS.S.slideId:"#frame#"===e&&void 0!==RVS.S.keyFrame?RVS.S.keyFrame:"#action#"===e&&void 0!==RVS.S.actionIdx?RVS.S.actionIdx:e}function He(e){if(!(e=JSON.parse(e))||!Array.isArray(e))return!1;for(var t,s,a,i,r,l,o,n,d=e.length,c=0;c
2){e=function(e,t){e=RVS.F.trim(e);for(var s,i,r,l,o,n,d="",c="",p="",h="",u="",_=w.length,f=[],m=0;m<_;m++)if(s=(i=de(a,w[m])).keywords)for(l=s.length,n=0;n