Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2013 Ben Kamens

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ _Play with the above example full of fun monkey pictures by opening example/exam

## FAQ

1. What's the license? [MIT](http://en.wikipedia.org/wiki/MIT_License).
1. What's the license? [MIT](LICENSE).
2. Does it support horizontal menus or submenus that open to the left? Yup. Check out the submenuDirection option above.
3. I work at a big company that requires a version number on this third party code before I can use it. Do you have a version number? Sure, current version: 1.1
4. I'm not nearly bored enough. Got anything else? [Read about this plugin's creation](http://bjk5.com/post/44698559168/breaking-down-amazons-mega-dropdown).
17 changes: 13 additions & 4 deletions jquery.menu-aim.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@
* // Function to call when mouse exits a menu row.
* exit: function() {},
*
* // Function to call when mouse exits the entire menu. If this returns
* // true, the current row's deactivation event and callback function
* // will be fired. Otherwise, if this isn't supplied or it returns
* // false, the currently activated row will stay activated when the
* // mouse leaves the menu entirely.
* exitMenu: function() {},
*
* // Selector for identifying which elements in the menu are rows
* // that can trigger the above events. Defaults to "> li".
* rowSelector: "> li",
Expand All @@ -62,13 +69,15 @@
* // this selector. Defaults to "*" (all elements).
* submenuSelector: "*",
*
* // Direction the submenu opens relative to the main menu. Can be
* // left, right, above, or below. Defaults to "right".
* // Direction the submenu opens relative to the main menu. This
* // controls which direction is "forgiving" as the user moves their
* // cursor from the main menu into the submenu. Can be one of "right",
* // "left", "above", or "below". Defaults to "right".
* submenuDirection: "right"
* });
*
* https://github.com/kamens/jQuery-menu-aim
*/
*/
/*! jQuery-menu-aim | Copyright 2013 Ben Kamens | Released under the MIT license | http://www.opensource.org/licenses/mit-license.php */
(function($) {

$.fn.menuAim = function(opts) {
Expand Down