Journal.notificationTimer = parseInt('1500', 10); Journal.quickviewText = 'QuickView'; Journal.scrollToTop = parseInt('1', 10); Journal.searchInDescription = true; Journal.galleryZoom = true; Journal.galleryThumb = true; Journal.galleryThumbHide = false; Journal.galleryThumbWidth = parseInt('100', 10); Journal.galleryThumbHeight = parseInt('100', 10); Journal.galleryThumbSpacing = parseInt('7', 10); Journal.galleryBarsDelay = parseInt('3000', 10); Journal.infiniteScrollStatus = false; Journal.infiniteScrollLoadingText = 'Loading'; Journal.infiniteScrollNoMoreItemsText = 'No items left.'; Journal.infiniteScrollLoadMoreItemsText = 'Load more'; Journal.infiniteScrollLoadMoreItemsOffset = parseInt('0', 10); Journal.BASE_HREF = 'url(' + $('base').attr('href') + ')'; $(document).ready(function () { if ($('html').hasClass('filter-on-mobile')) { $('.journal-sf').before($('
')); $('.open-filter').on('click', function () { var $filter = $('.journal-sf .box').first(); if ($filter.hasClass('is-visible')) { $('.side-column .journal-sf .box').slideUp(300); $('.sf-reset').fadeOut(200); $filter.removeClass('is-visible'); } else { $('.side-column .journal-sf .box').slideDown(300); $('.sf-reset').fadeIn(200); $filter.addClass('is-visible'); } }); } Journal.productPage(); Journal.enableStickyHeader(0); $(window).scroll( function() { if ($(window).scrollTop() > $('.journal-cart').offset().top){ $('header').addClass('phone-sticky-cart'); } else{ $('header').removeClass('phone-sticky-cart'); } if ($(window).scrollTop() > $('.journal-cart').offset().top + 40){ $('header').addClass('phone-sticky-menu'); } else{ $('header').removeClass('phone-sticky-menu'); } }); $('.product-tabs').insertAfter('.product-info'); Journal.enableProductOptions(); Journal.updatePrice = true; Journal.enableSideBlocks(); Journal.searchAutoComplete(); Journal.enableQuickView(); Journal.quickViewStatus = true; Journal.productPageGallery(); $(window).scroll(function () { if ($(this).scrollTop() > 300) { $('.scroll-top').fadeIn(200); } else { $('.scroll-top').fadeOut(200); } }); $('.scroll-top').click(function () { $('html, body').animate({scrollTop: 0}, 700); }); $('#top-modules > .hide-on-mobile').parent().addClass('hide-on-mobile'); $('#bottom-modules > .hide-on-mobile').parent().addClass('hide-on-mobile'); $('#top-modules .gutter-on').parent().addClass('gutter'); $('#bottom-modules .gutter-on').parent().addClass('gutter'); if (Journal.infiniteScrollStatus && $('.main-products').length) { Journal.infiniteScroll(); } $(window).resize(); Journal.init(); }); /* Custom JS */