/* Requires jQuery * * This plugin will create div.jsTooltip elements (or configure your own!) in body for every tooltip on the page. Some * basic CSS is applied automagically, but you'll want to style it on your own from there. This code will be applied to * every element in your .v_tooltip() selector, so giving it a common selector like '.tooltip' is ideal. * * Options: * - location: Where the tooltip should spawn in relation to it's parent * - offsetN: How many pixels to add * - trackMouse: Should we track the mouse cursor instead of the parent? * - suppressOnClick: Should we hide if a user clicks the target? * - suppressWhileToggled: Should we ignore events if the target has the 'toggled' class? * - tooltipClass: css class to apply to tooltip elements * - fadeSpeed: Time (in milliseconds) to spend fading in/out. Set to 0 to disable. * - allowHover: Should we keep the tooltip open if we mouse directly on to the tooltip? (Your tooltip will need to spawn inside it's owner's box for this to work) * - tooltipParent: More generally useless properties for supernav: Lets us specify which element to parent the tooltips to. YOU PROBABLY DON'T NEED THIS. * - correctForScreenSize: Adjust tooltip position to ensure it doesn't render outside of the viewport * - sizeCorrectionXPadding: How far we should keep the tooltip from the window edge * - useClickEvent: Should we use the mouse click event instead of hover? * - inheritParentMinWidth: Should we set min-width based on our parent's width? * - parentActiveCSSClass: What CSS class should we add to our parent while we're visible? * - childActiveCSSClass: What CSS class should we add to the tooltip when active (Mostly useful for triggering CSS transitions * - funcName: Global name of a function to call on hover (It searches the global window object; not safe inside "use strict" * - func: Actual JS code to run. * - responsiveMode: enable when in responsive mode/mobile/tablet, requires tooltip elements to be decorated with data-tooltip-responsive to enable in responsive mode */ /*