• Vantage has a javascript called “jquery.theme-main.js” which contains this function:

    $(‘#masthead’)
    .on(‘mouseenter’,’.main-navigation ul li’,function(){
    var $$=$(this);
    var $ul=$$.find(‘> ul’);
    $ul.css({
    ‘display’:’block’,
    ‘opacity’:1
    }).clearQueue().animate({opacity:1},250);
    $ul.data(‘final-opacity’,1);
    })

    .on(‘mouseleave’,’.main-navigation ul li’,function(){
    var $$=$(this);
    var $ul=$$.find(‘> ul’);
    $ul.clearQueue().animate({opacity:1},250,function(){
    if($ul.data(‘final-opacity’)==0){
    $ul.css(‘display’,’none’);
    }
    });
    $ul.data(‘final-opacity’,1);
    });

    Is there any way to change the values inside this function without touching the main js file?

The topic ‘Changing value of a jquery function’ is closed to new replies.