Skip to main content
2013/12/10

SORALUCEk NASOSENERGOMASHen produkzio prosezua optimizatu du

SORALUCEk NASOSENERGOMASHen produkzio prosezua optimizatu du
NASOSENERGOMASH Pump & Power Engineering Works Sumy Ukrainako konpainia industrial garrantzitsuenetakoa da, eta honako sektore hauetako ponpen fabrikazioan espezializatuta dago: nuklearra, petrolioa, gasa, termikoa eta hidroelektrikoa. Ponpen diseinu abangoardista, euren fabrikazio, transformazio eta instalazio probak diseinurako eta ponpa modelo berriak merkaturatzeko oinarri dira; horrela, hornitzen dituen sektoreetako eskaera zorrotzenak asetzen ditu. NASOSENERGOMASHek DANOBATGROUPeko hiru makina erosi ditu: = sectionTop && scrollPosition < sectionBottom) { item.classList.add("active"); } else { item.classList.remove("active"); } } }); mobilemenuItems.forEach((item) => { // const targetId = item.getAttribute("href").substring(2); const targetId = item.getAttribute("href").split('#')[1] console.log(targetId) const targetSection = document.getElementById(targetId); if (targetSection) { const sectionTop = (targetSection.offsetTop+$('.tm-toolbar').outerHeight()) - ( $('.tm-header-mobile').outerHeight() + $('.tm-top').outerHeight()); const sectionBottom = sectionTop + targetSection.offsetHeight; if (scrollPosition >= sectionTop && scrollPosition < sectionBottom) { item.classList.add("active"); } else { item.classList.remove("active"); } } }); } // window.addEventListener('scroll', setActiveMenuItem); function attachScrollEvent() { window.addEventListener('scroll', setActiveMenuItem); } function detachScrollEvent() { window.removeEventListener('scroll', setActiveMenuItem); } $(window).scroll(function () { // Check if the user has scrolled down 100 pixels if ($(this).scrollTop() > 35) { if (!$('header.tm-header').hasClass('top-zero')) { $('header.tm-header').addClass('top-zero') } // $('.sticky').slideDown(); // You can use .show() if you don't want a slide effect // scrollClassAdded = true; } else { $('header.tm-header').removeClass('top-zero') // $('.sticky').slideUp(); // You can use .hide() if you don't want a slide effect // scrollClassAdded = false; } }); // $('html').css('overflow', 'hidden'); // $(window).on('load', function() { // }); function handlerIn() { // body... if (!$(this).hasClass('uk-parent') ) { $('.top-sub-menu').addClass('hide-nav-stripe') } } function handlerOut() { // body... if (!$(this).hasClass('uk-parent') ) { $('.top-sub-menu').removeClass('hide-nav-stripe') } } $(document).ready(function() { // $('.uk-active').off('mouseover mouseenter mouseleave'); $('.uk-navbar-center .uk-active a').on('mouseover', function (e) { $('.top-sub-menu').css('z-index','9999') }) $('.uk-navbar-center .uk-active a').on('mouseout', function (e) { $('.top-sub-menu').removeAttr("style") }) $('.uk-navbar-center .uk-navbar-nav li').on( "mouseenter", handlerIn ).on( "mouseleave", handlerOut ); // top-zero $('html').css('overflow', 'auto'); $("#tm-dialog-mobile").find("li.uk-parent").prepend(''); $('.parent-item-arrow').on('click', function(event) { $(this).toggleClass('up') $(this).parent().find('.uk-nav-sub').toggleClass('show') // debugger }) // Smooth scroll to section on menu item click $('.top-sub-menu ul li a').on('click', function(event) { // console.log('here clicked') var href = $(this).attr('href'); if (href.includes('#')) { event.preventDefault(); var target = null var _this = $(this) let _trgtId = $(this).attr('href'); if (_trgtId) { target = $('#'+_trgtId.split('#')[1]); } // Remove the scroll event listener temporarily detachScrollEvent(); // debugger // setTimeout(function() { $('.top-sub-menu ul li a').removeClass('active'); if (target && target.length) { let tgetOffset = target.offset().top - ($('.tm-toolbar-default').outerHeight() + $('.tm-headerbar-top').outerHeight()); $('html, body').animate({ scrollTop: tgetOffset }, 1000, function() { _this.addClass('active'); // Reattach the scroll event listener after the animation completes setTimeout(function() { attachScrollEvent(); }, 800); }); } else { // Reattach the scroll event listener if there is no target attachScrollEvent(); } } }); $('.mobile-sub-menu ul li a').on('click', function(event) { console.log('here click') event.preventDefault(); var target = null var _this = $(this) let _trgtId = $(this).attr('href'); if (_trgtId) { target = $('#'+_trgtId.split('#')[1]); } // Remove the scroll event listener temporarily detachScrollEvent(); // debugger // setTimeout(function() { $('.mobile-sub-menu ul li a').removeClass('active'); if (target && target.length) { let tgetOffset = (target.offset().top+$('.tm-toolbar').outerHeight()) - ( $('.tm-header-mobile').outerHeight() + $('.tm-top').outerHeight()); debugger $('html, body').animate({ scrollTop: tgetOffset }, 1000, function() { _this.addClass('active'); // Reattach the scroll event listener after the animation completes setTimeout(function() { attachScrollEvent(); }, 800); }); } else { // Reattach the scroll event listener if there is no target attachScrollEvent(); } }); // $('.mobile-sub-menu').closest('.uk-section-default').hide() // Get all the parent
  • elements with the uk-active class const activeParentItems = document.querySelectorAll('.uk-active'); // Loop through the active parent
  • elements activeParentItems.forEach(parentItem => { // Find the submenu
  • elements within this parent const submenuAnchors = parentItem.querySelectorAll('.uk-nav-sub li a'); // Loop through the submenu
  • elements and add a custom class submenuAnchors.forEach(submenuAnchor => { if (submenuAnchor.getAttribute('href').includes('#')) { // Add a custom class to the anchor element submenuAnchor.classList.add('hide-hash-submenu'); // Replace 'your-custom-class' with the class you want to add } }); }); }); // $('.mobile-sub-menu').closest('.uk-section-default').hide() attachScrollEvent() if (hashValue) { // Remove the scroll event listener temporarily // disableScroll(); // Get the hashed value from the current URL // hashValue = window.location.hash; // history.replaceState({}, document.title, window.location.pathname); // history.replaceState(null, document.title, window.location.pathname + window.location.search); // debugger // Remove the "#" symbol if it's present if (hashValue.charAt(0) === '#') { var target = null hashValue = hashValue.substring(1); if (hashValue) { target = $('#'+hashValue); } detachScrollEvent(); // setTimeout(function() { $('.mobile-sub-menu ul li a').removeClass('active'); if (target && target.length) { // debugger // enableScroll() let _path = window.location.pathname.split("/"); let _trgetId = '/'+_path[2]+'#'+target.attr('id'); let _trgrtmenu = $('.top-sub-menu ul li a[href="'+_trgetId+'"]') let _trgrtmbilemenu = $('.mobile-sub-menu ul li a[href="'+_trgetId+'"]') if (_trgrtmenu.length) { // disableScroll() setTimeout(function() { // disableScroll() let _tmTopHeght = 0 let _tmMobHederpHeght = 0 let _tmTop = $('.tm-top') let _tmMobHeder = $('.tm-header-mobile') if (_tmTop.length) { _tmTopHeght = $('.tm-top').outerHeight() } if (_tmMobHeder.length) { _tmMobHederpHeght = $('.tm-header-mobile').outerHeight() } let tgetOffset = (target.offset().top+$('.tm-toolbar').outerHeight()) - (_tmMobHederpHeght + _tmTopHeght); // enableScroll() console.log(tgetOffset) // debugger $('html, body').animate({ scrollTop: tgetOffset // scrollTop: 6000 }, 1000, function() { // Reattach the scroll event listener after the animation completes if (_trgrtmenu) { _trgrtmenu.addClass('active') } if (_trgrtmbilemenu) { _trgrtmbilemenu.addClass('active') } setTimeout(function() { attachScrollEvent(); }, 400); }); },500) } else { // debugger // debugger setTimeout(function() { let _tmTopHeght = 0 let _tmMobHederpHeght = 0 let _tmToolBarHederpHeght = 0 let _tmTop = $('.tm-top') let _tmMobHeder = $('.tm-header-mobile') let _tmToolBar= $('.tm-toolbar') if (_tmTop.length) { _tmTopHeght = $('.tm-top').outerHeight() } if (_tmMobHeder.length) { _tmMobHederpHeght = $('.tm-header-mobile').outerHeight() } if (_tmToolBar.length) { _tmToolBarHederpHeght = _tmToolBar.outerHeight() } let tgetOffset = (target.offset().top + _tmToolBarHederpHeght) - (_tmMobHederpHeght + _tmTopHeght) + 135; // console.log(tgetOffset) // debugger $('html, body').animate({ scrollTop: tgetOffset // scrollTop: 6000 }); }, 700); } } else { // Reattach the scroll event listener if there is no target attachScrollEvent(); } } } // console.log('here used')