Initial Commit
This commit is contained in:
1
assets/js/tours.min.js
vendored
Normal file
1
assets/js/tours.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(t){t(document).ready((function(){_.each(wu_tours,(function(n,u){window[u]=new Shepherd.Tour({useModalOverlay:!0,includeStyles:!1,styleVariables:{arrowSize:1.1},defaultStepOptions:{classes:"wu-p-2 wu-bg-white wu-shadow-sm wu-rounded wu-text-left wu-text-gray-700",scrollTo:{block:"center",behavior:"smooth"},tippyOptions:{zIndex:999999,onCreate(t){t.popper.classList.add("wu-styling");const n=t.popperChildren.content.children[0].children[0].children;n[0].children[0]&&n[0].children[0].classList.add("wu-p-2","wu-pb-0","wu-m-0","wu--mb-1","wu-text-gray-800"),n[1].classList.add("wu-p-2"),n[2].classList.add("wu--mt-1","wu-p-2","wu-bg-gray-200","wu-rounded","wu-text-right")}}}}),window[u].on("complete",(function(){t.ajax({url:ajaxurl,data:{action:"wu_mark_tour_as_finished",tour_id:u,nonce:wu_tours_vars.nonce}})})),_.each(n,(function(t,e){const o=e+1===n.length;t.buttons=_.isArray(t.buttons)?t.buttons:[],t.buttons=_.map(t.buttons,(function(t){return t.action=function(t,n="_blank"){return()=>{window.open(t,n)}}(t.url,t.target),t})),window[u].addStep({...t,buttons:[...t.buttons,{classes:"button button-primary wu-text-xs sm:wu-normal-case",text:o?wu_tours_vars.i18n.finish:wu_tours_vars.i18n.next,action:window[u].next}]})})),window[u].start()}))}))}(jQuery);
|
Reference in New Issue
Block a user