Our shop

Our local products

.menu-nav { border: 1px solid #3B3B3B; border-radius: 7px; } .menu-nav p { font-size: 18px; padding-top: 15px; padding-bottom: 15px; } .menu-nav .separateur { border-top: 1px solid #3B3B3B; } .move_nav .nav_item.active { background-color: #863D16; font-weight: bold; } .move_nav .nav_item.active a { color: white; } .move_nav a { color: #863D16; } jQuery(document).ready(function(){ jQuery('#section-scroll').waypoint(function() { jQuery('#section-scroll').toggleClass('section-scroll-large'); }, {offset: '10%'}); }); jQuery(window).scroll(function(event){ var currentScrollPosition = jQuery(window).scrollTop(); var itemPosition = jQuery(window).scrollTop(); var navFixedBlock = jQuery('.section-scroll-large'); if(typeof(lastScrollPosition) === 'undefined'){ lastScrollPosition = 0; } if(navFixedBlock.length > 0){ var navFixedPosition = navFixedBlock.position().top; if(typeof(moveContentList) === 'undefined'){ moveContentList = {}; jQuery('.content_move').each(function(){ var item = jQuery(this); var name = item.attr('data-name'); if((typeof(name) !== 'undefined') && (name != null)){ moveContentList[name] = item.offset().top; } }); } var activeName = ''; for(itemName in moveContentList){ var itemPosition = moveContentList[itemName]; var consPost = 60; var isDown = (currentScrollPosition >= lastScrollPosition); if(isDown){ if(currentScrollPosition >= (itemPosition - navFixedPosition - consPost)){ activeName = itemName; } }else{ if(currentScrollPosition >= (itemPosition - navFixedPosition - consPost - 200)){ activeName = itemName; } } } navFixedBlock.find('.nav_item').removeClass('active'); /*if(currentScrollPosition + jQuery(window).height() == jQuery(document).height()){}*/ if(currentScrollPosition + jQuery(window).height() > jQuery(document).height() - 80){ navFixedBlock.find('.nav_item:last-child').addClass('active'); }else{ if(activeName == ''){ navFixedBlock.find('.nav_item:first-child').addClass('active'); }else{ navFixedBlock.find('.nav_item[data-name='+activeName+']').addClass('active'); } } }else{ navFixedBlock.find('.nav_item').removeClass('active'); navFixedBlock.find('.nav_item:first-child').addClass('active'); } lastScrollPosition = currentScrollPosition; });
0
    0
    Votre panier
    Votre panier est videRetour boutique