Changeset 620378
- Timestamp:
- 11/02/2012 04:20:31 PM (13 years ago)
- Location:
- jquery-mega-menu
- Files:
-
- 38 added
- 1 deleted
- 3 edited
-
tags/1.3.10 (added)
-
tags/1.3.10/css (added)
-
tags/1.3.10/css/dcjq-mega-menu.css (added)
-
tags/1.3.10/dcwp_jquery_mega_menu.php (added)
-
tags/1.3.10/dcwp_jquery_mega_menu_widget.php (added)
-
tags/1.3.10/js (added)
-
tags/1.3.10/js/jquery.dcmegamenu.1.3.4.min.js (added)
-
tags/1.3.10/readme.txt (added)
-
tags/1.3.10/screenshot-1.png (added)
-
tags/1.3.10/screenshot-2.png (added)
-
tags/1.3.10/screenshot-3.png (added)
-
tags/1.3.10/skin.php (added)
-
tags/1.3.10/skins (added)
-
tags/1.3.10/skins/black.css (added)
-
tags/1.3.10/skins/blue.css (added)
-
tags/1.3.10/skins/green.css (added)
-
tags/1.3.10/skins/grey.css (added)
-
tags/1.3.10/skins/images (added)
-
tags/1.3.10/skins/images/arrow.png (added)
-
tags/1.3.10/skins/images/arrow_off.png (added)
-
tags/1.3.10/skins/images/arrow_on.png (added)
-
tags/1.3.10/skins/images/bg_black.png (added)
-
tags/1.3.10/skins/images/bg_blue.png (added)
-
tags/1.3.10/skins/images/bg_green.png (added)
-
tags/1.3.10/skins/images/bg_grey.png (added)
-
tags/1.3.10/skins/images/bg_light_blue.png (added)
-
tags/1.3.10/skins/images/bg_mega_hdr.png (added)
-
tags/1.3.10/skins/images/bg_mega_hdr_full.png (added)
-
tags/1.3.10/skins/images/bg_mega_hdr_on.png (added)
-
tags/1.3.10/skins/images/bg_orange.png (added)
-
tags/1.3.10/skins/images/bg_red.png (added)
-
tags/1.3.10/skins/images/bg_sub.png (added)
-
tags/1.3.10/skins/images/bg_sub_left.png (added)
-
tags/1.3.10/skins/images/bg_white.png (added)
-
tags/1.3.10/skins/light_blue.css (added)
-
tags/1.3.10/skins/orange.css (added)
-
tags/1.3.10/skins/red.css (added)
-
tags/1.3.10/skins/white.css (added)
-
trunk/dcwp_jquery_mega_menu.php (modified) (3 diffs)
-
trunk/js/jquery.dcmegamenu.1.3.4.min.js (modified) (1 diff)
-
trunk/js/jquery.hoverIntent.minified.js (deleted)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jquery-mega-menu/trunk/dcwp_jquery_mega_menu.php
r590341 r620378 6 6 Description: Creates a widget, which allows you to turn any Wordpress custom menu into a drop down mega menu. Includes sample skins. 7 7 Author: Lee Chestnutt 8 Version: 1.3. 98 Version: 1.3.10 9 9 Author URI: http://www.designchemical.com 10 10 */ … … 37 37 38 38 wp_enqueue_script( 'jquery' ); 39 wp_enqueue_script( 'jqueryhoverintent', dc_jqmegamenu::get_plugin_directory() . '/js/jquery.hoverIntent.minified.js', array('jquery') );40 39 wp_enqueue_script( 'dcjqmegamenu', dc_jqmegamenu::get_plugin_directory() . '/js/jquery.dcmegamenu.1.3.4.min.js', array('jquery') ); 41 40 … … 45 44 46 45 function get_plugin_directory(){ 47 return WP_PLUGIN_URL. '/jquery-mega-menu';46 return plugins_url() . '/jquery-mega-menu'; 48 47 } 49 48 -
jquery-mega-menu/trunk/js/jquery.dcmegamenu.1.3.4.min.js
r461944 r620378 1 /** 2 * hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+ 3 * <http://cherne.net/brian/resources/jquery.hoverIntent.html> 4 * 5 * @param f onMouseOver function || An object with configuration options 6 * @param g onMouseOut function || Nothing (use configuration options object) 7 * @author Brian Cherne <brian@cherne.net> 8 */ 9 (function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery); 10 1 11 /* 2 12 * DC Mega Menu - jQuery mega menu -
jquery-mega-menu/trunk/readme.txt
r615323 r620378 5 5 Requires at least: 3.0 6 6 Tested up to: 3.4.2 7 Stable tag: 1.3. 97 Stable tag: 1.3.10 8 8 9 9 Creates a widget, which allows you to add drop down mega menus from any Wordpress custom menu using jQuery. … … 69 69 == Changelog == 70 70 71 = 1.3.10 = 72 * Updated: plugins_url() 73 * Updated: combine jquery scripts 74 71 75 = 1.3.9 = 72 76 * Updated: wp_enqueue_script
Note: See TracChangeset
for help on using the changeset viewer.