0) {divOffset = $('.pages-content').offset().top; } } if (($(window).scrollTop() > divOffset)) { $('.festive-strip').animate({top: 0}, 100).addClass('fixed-header'); var z = $('.festive-strip.fixed-header').innerHeight(); $('.main-header').animate({top: z+'px'}, 100).addClass('fixed-header'); } else { $('.main-header, .festive-strip').removeClass('fixed-header').removeAttr('style'); } } }); $(function(){ $('.work-video-bg-iframe').click(function(e) { e.stopImmediatePropagation();…' />

Website Design

Website Design | Buy Professional Website Designs Online 0){ divOffset = $(‘.fixedHeaderDiv’).offset().top; } else if(wallDiv){ divOffset = $(‘.dashboard-wrapper’).offset().top; } else{ if($(‘.pages-content’).length > 0) {divOffset = $(‘.pages-content’).offset().top; } } if (($(window).scrollTop() > divOffset)) { $(‘.festive-strip’).animate({top: 0}, 100).addClass(‘fixed-header’); var z = $(‘.festive-strip.fixed-header’).innerHeight(); $(‘.main-header’).animate({top: z+’px’}, 100).addClass(‘fixed-header’); } else { $(‘.main-header, .festive-strip’).removeClass(‘fixed-header’).removeAttr(‘style’); } } }); $(function(){ $(‘.work-video-bg-iframe’).click(function(e) { e.stopImmediatePropagation(); $(this).html(‘ 0){ cartHeight = $(‘.cart–header’).height(); }else if($(‘.root_header’).length > 0){ cartHeight = $(‘.root_header’).height(); } $(‘#user_toggle_menu’).css(‘top’, cartHeight + parseInt($(‘.festive-strip’).height()) + ‘px’); }else{ $(‘#topMenuList’).css({‘top’: $(‘#root_header’).height() + ‘px’, ‘height’:”calc(100% – ” + $(‘#root_header’).height() + “px)”}); // $(‘#topMenuList’).css({‘top’:’54px’, ‘height’:”calc(100% – 54px)”}); if($(‘.cart–header’).length > 0){ var cartHeight = $(‘.cart–header’).height(); $(‘#user_toggle_menu’).css(‘top’, cartHeight + ‘px’); }else if($(‘.root_header’).length > 0){ var cartHeight = $(‘.root_header’).height(); $(‘#user_toggle_menu’).css(‘top’, cartHeight + ‘px’); } } if($(‘#notification_count’).attr(‘rel’)>0){ $(‘#notification_count’).html(‘ ‘); $(‘#notification_count’).css(‘font-size’, ‘6px’); }else{ $(‘#notification_count’).removeClass(‘counting’); } }else{ if($(‘#notification_count’).attr(‘rel’)>0){ $(‘#notification_count’).text($(‘#notification_count’).attr(‘rel’)); $(‘#notification_count’).css(‘font-size’, ‘9px’); }else{ $(‘#notification_count’).addClass(‘counting’); $(‘#notification_count’).text(0); } $(‘#user_toggle_menu’).css(‘top’, parseInt($(‘#root_header’).height()) + ‘px’); } }); } }; function lazy_loading_header_menu(){ var containers = document.querySelectorAll(“.dh_pic_lazy”); containers.forEach( function(container) { const images = container.querySelectorAll(‘source, img’); const config = {rootMargin: ‘400px 400px 50px 400px’, threshold: 0.01}; let observer; let preloadImage = function(element){ if(element.dataset && element.dataset.src) { element.src = element.dataset.src; } if(element.dataset && element.dataset.srcset) { element.srcset = element.dataset.srcset } }; let onIntersection = function(entries) { entries.forEach(entry => { if (entry.intersectionRatio > 0) { observer.unobserve(entry.target); preloadImage(entry.target); } }); }; if (!(‘IntersectionObserver’ in window)) { Array.from(images).forEach(function(image) { preloadImage(image) }); } else { observer = new IntersectionObserver(onIntersection, config); images.forEach(function(image) { observer.observe(image); }); } }); } window.onresize = function (event) { setTimeout(function(){ var width = (navigator.userAgent.match(/iPad/i) != null) ? 992 : window.innerWidth; if(width != $(‘#hd_window_current_width’).val() && (($(‘#hd_window_width’).val()>991 && width <= 991) || ($('#hd_window_width').val()991))) { $.ajax({ url: DH.baseURL + '/dh_ajax.php?action=header_menu', data : {url:'website-design', node : '754', width:width}, type: 'post', }).done(function (data) { $('.new-desktop-header').html(data.html); lazy_loading_header_menu(); $('#hd_window_width').val(width); $('.hamburger').removeClass('open'); $('.burger-menu').removeClass('active'); if(data.is_mobile==1){ if($('#designFiltering').length == 1){ if($('#designFiltering').css('top')== '0px'){ $('#designFiltering').css('top', '0px'); if($('.festive-strip').length==0 && $('.hover-menus-section').length==0){ $('#hd_shop_top').val(54); } else if($('.festive-strip').length==0 && $('.hover-menus-section').length==1){ $('#hd_shop_top').val(114); } else if($('.festive-strip').length==1 && $('.hover-menus-section').length==0){ $('#hd_shop_top').val(114); } else { $('#hd_shop_top').val(154); } }else { if($('.festive-strip').length==0 && $('.hover-menus-section').length==0){ $('#designFiltering').css('top', '54px'); $('.leftBaPanel').css('top', '54px'); $('#hd_shop_top').val(54); } else if($('.festive-strip').length==0 && $('.hover-menus-section').length==1){ $('#designFiltering').css('top', '114px'); $('.leftBaPanel').css('top', '114px'); $('#hd_shop_top').val(114); } else if($('.festive-strip').length==1 && $('.hover-menus-section').length==0){ $('#designFiltering').css('top', '114px'); $('.leftBaPanel').css('top', '114px'); $('#hd_shop_top').val(114); } else { $('#designFiltering').css('top', '154px'); $('.leftBaPanel').css('top', '154px'); $('#hd_shop_top').val(154); } } } var headerHeight = $('#root_header').height(); if($('.festive-strip ').length && parseInt($('.festive-strip').height())>0){ $(‘#user_toggle_menu’).css(‘top’, headerHeight + ‘px’); $(‘#topMenuList’).css({‘top’:’94px’, ‘height’:”calc(100% – 94px)”}); }else{ $(‘#topMenuList’).css({‘top’:’54px’, ‘height’:”calc(100% – 54px)”}); $(‘#user_toggle_menu’).css(‘top’, headerHeight + ‘px’); } if($(‘#notification_count’).attr(‘rel’)>0){ $(‘#notification_count’).html(‘ ‘); $(‘#notification_count’).css(‘font-size’, ‘6px’); }else{ $(‘#notification_count’).removeClass(‘counting’); } }else{ if($(‘#designFiltering’).length == 1){ if($(‘#designFiltering’).css(‘top’)== ‘0px’){ $(‘#designFiltering’).css(‘top’, ‘0px’); $(‘.leftBaPanel’).css(‘top’, ‘0px’); if($(‘.festive-strip’).length==0 && $(‘.hover-menus-section’).length==0){ $(‘#hd_shop_top’).val(94); } else if($(‘.festive-strip’).length==0 && $(‘.hover-menus-section’).length==1){ $(‘#hd_shop_top’).val(154); } else if($(‘.festive-strip’).length==1 && $(‘.hover-menus-section’).length==0){ $(‘#hd_shop_top’).val(154); } else { $(‘#hd_shop_top’).val(194); } }else { if($(‘.festive-strip’).length==0 && $(‘.hover-menus-section’).length==0){ $(‘#designFiltering’).css(‘top’, ’94px’); $(‘.leftBaPanel’).css(‘top’, ’94px’); $(‘#hd_shop_top’).val(94); } else if($(‘.festive-strip’).length==0 && $(‘.hover-menus-section’).length==1){ $(‘#designFiltering’).css(‘top’, ‘154px’); $(‘.leftBaPanel’).css(‘top’, ‘154px’); $(‘#hd_shop_top’).val(154); } else if($(‘.festive-strip’).length==1 && $(‘.hover-menus-section’).length==0){ $(‘#designFiltering’).css(‘top’, ‘154px’); $(‘.leftBaPanel’).css(‘top’, ‘154px’); $(‘#hd_shop_top’).val(154); } else { $(‘#designFiltering’).css(‘top’, ‘194px’); $(‘.leftBaPanel’).css(‘top’, ‘194px’); $(‘#hd_shop_top’).val(194); } } } if($(‘#notification_count’).attr(‘rel’)>0){ $(‘#notification_count’).text($(‘#notification_count’).attr(‘rel’)); $(‘#notification_count’).css(‘font-size’, ‘9px’); }else{ $(‘#notification_count’).addClass(‘counting’); $(‘#notification_count’).text(0); } $(‘#user_toggle_menu’).css(‘top’, headerHeight + ‘px’); } }); } $(‘#hd_window_current_width’).val(window.innerWidth); }, 1000); }; ]]>

Source

Leave a Comment

Your email address will not be published. Required fields are marked *

Get 15% off your membership plan, use Coupon Code [ 15OFF ]

X