6 lines
22 KiB
JavaScript
6 lines
22 KiB
JavaScript
|
|
/*!
|
||
|
|
* 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<r;l++){var o=s[l];if(HelpGuide.verifyObject(o))for(var n,d,c,p=o.slug,h=0;h<3;h++)n=o[c=0===h?"slider":1===h?"slide":"layer"],HelpGuide.verifyObject(n)&&((d={})[p]=n,i?(e="",t="extension",re(d,""),jQuery('.help-directory-menu[data-path="'+c+'_settings"]').find('.help-directory-menu[data-path="addons"]').append(e)):jQuery.extend(!0,a.editor_settings[c+"_settings"].addons,d))}}}else console.log("jQuery not available");function $(){jQuery("head").append('<link rel="stylesheet" type="text/css" href="'+RVS.ENV.plugin_url+'admin/assets/css/help.css" />'),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='<div id="help_mode_modal"><div class="help-mode-title"><span id="help_mode_title_wrap" class="help-icon-default"><i class="material-icons">touch_app</i><i class="material-icons">settings</i><i class="material-icons">gamepad</i><i class="material-icons">burst_mode</i><i class="material-icons">layers</i><span id="help_mode_title">'+r.helpMode+'</span></span><span id="help_mode_main_title">'+r.instructions+'</span><div id="help_mode_video_wrap"><video id="help_mode_video" width="520" height="292" muted loop playsinline><source src="'+RVS.ENV.plugin_url+'/admin/assets/videos/hover_tutorial.mp4" type="video/mp4" /></video></div></div><div class="help-mode-description"><div class="help-mode-section"><div id="help_mode_description"></div></div><div id="help-mode-buttons" class="help-mode-section"><div id="help_mode_documentation" class="help-mode-button"><i class="material-icons">library_books</i> '+r.viewDocs+'</div><div id="help_mode_option" class="help-mode-button"><i class="material-icons">near_me</i><i class="material-icons">settings</i><i class="material-icons">gamepad</i><i class="material-icons">burst_mode</i><i class="material-icons">layers</i> '+r.showOption+'</div><div class="tp-clearfix"></div></div></div><div id="help_mode_search_wrap"><div id="help_mode_search" class="help-mode-section"><input id="help_search_input" type="text" placeholder="'+r.search+'\'><span id=\'help_input_clear\'><i class=\'material-icons\'>close</i></span></div><div id="help_search_results"><div class="help-results-container"><div id="help-options-wrap" class="help-results-wrap"><div id="help_options_results" class="help-results"></div></div></div><div class="help-results-container"><div id="help-faqs-wrap" class="help-results-wrap"><div id="help_faq_results" class="help-results"></div></div></div><div class="tp-clearfix"></div></div></div><span id="help_modal_close"><i class="material-icons help-no-drag">close</i></span></div>';jQuery(t).prependTo(jQuery("#the_right_toolbar
|