Plugin Directory

Changeset 620378


Ignore:
Timestamp:
11/02/2012 04:20:31 PM (13 years ago)
Author:
remix4
Message:

1.3.10

Location:
jquery-mega-menu
Files:
38 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • jquery-mega-menu/trunk/dcwp_jquery_mega_menu.php

    r590341 r620378  
    66        Description: Creates a widget, which allows you to turn any Wordpress custom menu into a drop down mega menu. Includes sample skins.
    77        Author: Lee Chestnutt
    8         Version: 1.3.9
     8        Version: 1.3.10
    99        Author URI: http://www.designchemical.com
    1010*/
     
    3737
    3838        wp_enqueue_script( 'jquery' );
    39         wp_enqueue_script( 'jqueryhoverintent', dc_jqmegamenu::get_plugin_directory() . '/js/jquery.hoverIntent.minified.js', array('jquery') );
    4039        wp_enqueue_script( 'dcjqmegamenu', dc_jqmegamenu::get_plugin_directory() . '/js/jquery.dcmegamenu.1.3.4.min.js', array('jquery') );
    4140
     
    4544
    4645    function get_plugin_directory(){
    47         return WP_PLUGIN_URL . '/jquery-mega-menu';
     46        return plugins_url() . '/jquery-mega-menu';
    4847    }
    4948
  • 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
    111/*
    212 * DC Mega Menu - jQuery mega menu
  • jquery-mega-menu/trunk/readme.txt

    r615323 r620378  
    55Requires at least: 3.0
    66Tested up to: 3.4.2
    7 Stable tag: 1.3.9
     7Stable tag: 1.3.10
    88
    99Creates a widget, which allows you to add drop down mega menus from any Wordpress custom menu using jQuery.
     
    6969== Changelog ==
    7070
     71= 1.3.10 =
     72* Updated: plugins_url()
     73* Updated: combine jquery scripts
     74
    7175= 1.3.9 =
    7276* Updated: wp_enqueue_script
Note: See TracChangeset for help on using the changeset viewer.