How to quit menu tab
Rate this topic: 1.00 out of 6 based on 1 vote(s)
- GK User
- Sun Aug 31, 2014 8:13 pm
- Reply with quote
- Report this post
Hello!
I need one of two things:
1. The menu does not appear when I scroll on the web
2 Do not display the logo image in the menu
How I can do?
Can you check it? http://www.viubasquet.com/portal
Thanks.
I need one of two things:
1. The menu does not appear when I scroll on the web
2 Do not display the logo image in the menu
How I can do?
Can you check it? http://www.viubasquet.com/portal
Thanks.
-
- Junior Boarder
- GK User
- Wed Sep 03, 2014 10:47 am
- Reply with quote
- Report this post
Hello,
In order to remove the fixed menu effect please remove the following fragment from the js/gk.menu.js file:
In order to remove the fixed menu effect please remove the following fragment from the js/gk.menu.js file:
- Code: Select all
//
// fixed menu
//
// create container for the fixed menu
var menuWrap = new Element('div', {'id': 'gkFixedMenu'});
menuWrap.set('html', '<div class="gkPage"></div>');
menuWrap.inject(document.body, 'bottom');
var menupos = document.id('gkTopNav').getCoordinates().top + 80;
var menucontent = document.id('gkTopNav');
var logo = document.id('gkLogo');
if(logo) {
logo.clone(true).setProperty('id', 'gkLogoSmall').inject(menuWrap.getElement('div'), 'top');
}
window.addEvent('scroll', function() {
var currentPosition = window.getScroll().y;
if(currentPosition > menupos && !menuWrap.hasClass('active')) {
menuWrap.addClass('active');
menucontent.inject(menuWrap.getElement('div'), 'bottom');
} else if(currentPosition < menupos && menuWrap.hasClass('active')) {
menuWrap.removeClass('active');
if(document.id('gkToolbar')) {
menucontent.inject(document.id('gkToolbar'), 'before');
} else {
menucontent.inject(document.id('gkTopBar'), 'bottom');
}
}
});
-
- Administrator
2 posts
• Page 1 of 1