visibilityChangeActions()

This function essentially does the following: If a prerender was detected, send an event to Google Analytics and prevent videos from playing. If the page was hidden, trigger nebula_page_hidden, add a class to the body, and pause all videos. Otherwise, if the page has become visible, trigger nebula_page_visible and remove the from the body. Note: This does Read More »

mmenus()

Use the ID  on the navigation , and the class  on the tag parent of the icon (if using one) to toggle the open/close icon change. Refer to the Mmenu documentation for customization of the offcanvas menu itself. Read More »

subnavExpanders()

This function looks for any menu inside the sidebar class with a child UL. It then adds a  class to it, and when appropriate (if it is an ancestor menu-item) clicks the expander to show the sub-menu items. Read More »

addressAutocomplete()

Note that this requires a paid API key for Google Maps to work. Otherwise the user will be presented with an alert message when filling it out.   Updates the nebula.user.address object and then triggers nebula_address_selected (which passes the event, raw place object, sanitized place object, and input field jQuery Object as parameters). Note: If the same Read More »