PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
themes
/
rehub
/
js
jQuery(document).ready(function($) { 'use strict'; var widthwindow = $(window).width(); if (widthwindow < 768){ var floatpanellinks = $('.float-panel-woo-info').clone(true).addClass('float-panel-top-links pt10 pl15 pr15 pb10 rh-float-panel desktabldisplaynone'); $('body').prepend(floatpanellinks); $('.float-panel-top-links').removeClass('rh-line-left ml15'); $('.float-panel-top-links .float-panel-woo-links').removeClass('font80').addClass('font90 scroll-on-mobile'); } // Cache selectors var lastId = ''; var topMenu = $(".float-panel-woo-links"); var topMenuHeight = $("#float-panel-woo-area").outerHeight()+15; // All list items var menuItems = topMenu.find("a"); // Anchors corresponding to menu items var scrollItems = menuItems.map(function(){ var elem = $(this).attr("href"); var item = $(elem); if (item.length) { return item; } }); // Bind click handler to menu items // so we can get a fancy scroll animation menuItems.click(function(e){ var href = $(this).attr("href"), offsetTop = href === "#" ? 0 : $(href).offset().top-topMenuHeight+1; $('html, body').stop().animate({ scrollTop: offsetTop }, 500); e.preventDefault(); }); $('#contents-section-woo-area .contents-woo-area a').click(function(e){ var href = $(this).attr("href"), offsetTop = href === "#" ? 0 : $(href).offset().top-topMenuHeight+1; $('html, body').stop().animate({ scrollTop: offsetTop }, 500); e.preventDefault(); }); // Bind to scroll $(window).scroll(function(){ // Get container scroll position var fromTop = $(this).scrollTop()+topMenuHeight; // Get id of current scroll item var cur = scrollItems.map(function(){ if ($(this).offset().top < fromTop) return this; }); // Get the id of the current element cur = cur[cur.length-1]; var id = cur && cur.length ? cur[0].id : ""; if (lastId !== id) { lastId = id; // Set/remove current class var currentmenuItem = menuItems.filter("[href='#"+id+"']"); var currentmenuIteml = currentmenuItem.offset(); menuItems.parent().removeClass("current"); currentmenuItem.parent().addClass("current"); if (typeof currentmenuIteml !== "undefined"){ $('.float-panel-top-links .float-panel-woo-links').stop().animate({scrollLeft: currentmenuIteml.left - 20}, 500); } } }); var lastScrollTop = 0; $(window).scroll(function() { var st = $(this).scrollTop(); var theight = $('#contents-section-woo-area').offset(); if (st>theight.top) { $('#float-panel-woo-area, .float-panel-woo-info').addClass('floating'); $('.float_p_trigger').addClass('floatactive'); } else { $('#float-panel-woo-area, .float-panel-woo-info').removeClass('floating'); $('.float_p_trigger').removeClass('floatactive'); } if (st > lastScrollTop){ $('#float-panel-woo-area, .float-panel-woo-info').addClass('scrollingDown').removeClass('scrollingUp'); } else { $('#float-panel-woo-area, .float-panel-woo-info').addClass('scrollingUp').removeClass('scrollingDown'); } lastScrollTop = st; }); });
[+]
..
[-] custom.js
[edit]
[-] masonry_init_infauto.js
[edit]
[-] masonry_init_scroll_on_click.js
[edit]
[-] customizer.js
[edit]
[-] masonry_init.js
[edit]
[-] printcoupon.js
[edit]
[-] jquery.justifiedGallery.min.js
[edit]
[-] masonry.pkgd.min.js
[edit]
[-] modulobox.min.js
[edit]
[-] theme-customizer.js
[edit]
[-] video_playlist.js
[edit]
[-] typehead.js
[edit]
[-] jquery.totemticker.js
[edit]
[-] jquery.nouislider.full.min.js
[edit]
[-] affegg_coupons.js
[edit]
[-] jquery.tablesorter.min.js
[edit]
[-] postviews.js
[edit]
[-] jquery.waypoints.min.js
[edit]
[-] meta-boxes-post.js
[edit]
[-] jquery.sticky.js
[edit]
[-] jquery.infinitescroll.min.js
[edit]
[-] comparechart.js
[edit]
[-] custom_floatpanel.js
[edit]
[-] jquery.flexslider-min.js
[edit]
[-] owl.carousel.min.js
[edit]
[-] jquery.carouFredSel-6.2.1-packed.js
[edit]
[-] clipboard.min.js
[edit]
[-] commentplus_re.js
[edit]
[-] imagesloaded.pkgd.min.js
[edit]
[-] nouislider.min.js
[edit]
[-] stickysidebar.js
[edit]
[-] html5shiv.js
[edit]
[-] jquery.touchSwipe.min.js
[edit]
[-] custom_scroll.js
[edit]
[-] jquery.lwtCountdown-1.0.js
[edit]