var scrollpos = window.scrollY; var header = document.getElementById("crumb"); function add_class_on_scroll() { crumb.classList.add("fixed-crumb"); } function remove_class_on_scroll() { crumb.classList.remove("fixed-crumb"); } window.addEventListener('scroll', function(){ //Here you forgot to update the value scrollpos = window.scrollY; if(scrollpos > 2){ add_class_on_scroll(); } else { remove_class_on_scroll(); } console.log(scrollpos); }); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-5Q8LJWW');

우리의 카탈로그

솔루션의 세계

카탈로그 살펴보기

Rich Korea Company Catalogue 2023
   
LIASA Catalogue