1function e(e){if("undefined"==typeof Shepherd)return;const s=new Shepherd.Tour({useModalOverlay:!0,defaultStepOptions:{classes:"shadow-md bg-purple-dark",scrollTo:!1,cancelIcon:{enabled:!0},buttons:[{action(){return this.back()},classes:"shepherd-button-secondary",text:"Back"},{action(){return this.next()},text:"Next"}],when:{show(){t()}}}});let n="Interactivity is at the heart of VisualPDE. In most simulations, clicking on the screen allows you to interact directly with the solution.<br><video autoplay loop playsinline muted disableRemotePlayback poster=\"../assets/images/demo.webp\" width=\"128\" style=\"margin-top:10px\"><source src='../assets/ani/demo.mp4' type='video/mp4'><source src='../assets/ani/demo.webm' type='video/webm'></video><br>This can even kickstart pattern formation or other exciting phenomena.";return e&&(n=n.replaceAll("clicking","tapping"),n=n.replaceAll("click","tap"),n=n.replaceAll("Clicking","Tapping"),n=n.replaceAll("Click","Tap")),s.addStep({title:"Playing with PDEs",text:n,buttons:[{action(){return this.next()},text:"Next"}]}),s.addStep({title:"Equations and definitions",text:"Customise the equations, parameters, boundary and initial conditions of the simulation.<br><video autoplay loop playsinline muted disableRemotePlayback width=\"216\" style=\"margin-top:10px\"><source src='../assets/ani/params.mp4' type='video/mp4'><source src='../assets/ani/params.webm' type='video/webm'></video>",attachTo:{element:"#equations",on:"right"},when:{show(){t(),i("/user-guide/advanced-options.html#equations")}}}),s.addStep({title:"Play/pause",text:"Play or pause the simulation. You can still draw when paused.",attachTo:{element:"#play_pause_placeholder",on:"right"}}),s.addStep({title:"Reset",text:"Click to restart the simulation. You can change the initial conditions in the equations menu.",attachTo:{element:"#erase",on:"right"},when:{show(){t(),i("/user-guide/advanced-options.html#checkpoints","Advanced")}}}),s.addStep({title:"Views",text:"The Views menu lets you customise your view of the solution. This includes everything from contours to colour bars.<br><div class=views_pics><img src='../assets/images/FHNTuringWave.webp'><img src='../assets/images/midnight_soliton.webp'><img src='../assets/images/complexGinzburgLandau.webp'></div>",attachTo:{element:"#views",on:"right"},when:{show(){t(),i("/user-guide/advanced-options.html#views")}}}),s.addStep({title:"Settings",text:"Tweak advanced options such as the equation type, the domain resolution and the timestepping scheme.",attachTo:{element:"#settings",on:"right"},when:{show(){t(),i("/user-guide/advanced-options.html#settings")}}}),s.addStep({title:"Sharing",text:"VisualPDE is built for sharing. Copy a link that leads straight to the current simulation, download snapshots of your solution or even embed your simulation in your own site.",attachTo:{element:"#share",on:"right"},when:{show(){t(),i("/user-guide/FAQ.html#sharing")}}}),s.addStep({title:"Help",text:"Help is always at hand. Access FAQs, detailed documentation and guides explaining how to do everything that's possible in VisualPDE. You can even restart this tour.",attachTo:{element:"#help",on:"right"},buttons:[{action(){return this.back()},classes:"shepherd-button-secondary",text:"Back"},{action(){return this.complete()},text:"Finish"}]}),s}function t(){if("undefined"==typeof Shepherd)return;const e=Shepherd.activeTour?.getCurrentStep(),t=e?.getElement(),i=t?.querySelector(".shepherd-header"),s=document.createElement("span");s.classList.add("shepherd-progress"),s.innerText=`${Shepherd.activeTour?.steps.indexOf(e)+1} / ${Shepherd.activeTour?.steps.length}`,i?.insertBefore(s,t.querySelector(".shepherd-cancel-icon"))}function i(e,t){if("undefined"==typeof Shepherd)return;const i=Shepherd.activeTour?.getCurrentStep(),s=i?.getElement(),n=s?.querySelector(".shepherd-footer"),a=document.createElement("a");a.setAttribute("href",e),a.setAttribute("target","_blank"),a.classList.add("shepherd-more-info"),a.innerText=t||"More info.",n?.insertBefore(a,n.firstChild)}export{e as createWelcomeTour};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.