1$(function () { 2 if (window.util.isSP) { 3 var scrollStart = $('.footer').offset().top; //ãã¼ã¸ä¸é¨ããã®è·é¢ãåå¾ 4 var distance = 0; 5 6 $(window).scroll(function(){ 7 distance = $(this).scrollTop(); //ã¹ã¯ãã¼ã«ããè·é¢ãåå¾ 8 if (scrollStart <= distance) { 9 $('.js-menu-wrapper .js-menu-inner').fadeOut(); 10 } else { 11 $('.js-menu-wrapper .js-menu-inner').fadeIn(); 12 } 13 }); 14 } else { 15 var relatedArticleHeight = $('.mod-related_wrapper').offset().top + $('.mod-related_wrapper').outerHeight(); 16 var scrollBannerButtonViewHeight = $('.article-detail_mvRight .trend-CTA-wrapper').offset().top + $('.article-detail_mvRight .trend-CTA-wrapper').outerHeight(); 17 $(window).scroll(function(){ 18 if ($(window).scrollTop() > scrollBannerButtonViewHeight && $(window).scrollTop() + $(window).height() <= relatedArticleHeight) { 19 $('.js-menu-wrapper .js-menu-inner').fadeIn(); 20 } else { 21 $('.js-menu-wrapper .js-menu-inner').fadeOut(); 22 } 23 }); 24 } 25 26// ãããã¢ãããä¸åº¦è¡¨ç¤ºãããã©ããï¼ç»é¢æ´æ°ãããããªã»ãããããï¼ 27var showBreakAwayModalFlg = true; 28// ãããã¢ããéããå¦ç 29$('.js-article-modal .js-close , .popup-overlay').click(function () { 30 $('.popup-overlay, .js-article-modal').fadeOut(500, function () { 31 // ã¢ã¼ãã«éããæã¯bodyãã¹ã¯ãã¼ã«ã§ããããã«ããå¦ç 32 $('body').removeClass('fixed').css({ 33 'top': '' 34 }); 35 var scrollData = $('html').data('scroll'); 36 // ã¹ã¯ãã¼ã«ä½ç½®ãä¿æããç¶æ ã«ãã 37 $("html,body").scrollTop(scrollData); 38 $('html').removeData('scroll'); 39 return false; 40 }); 41}); 42// ç»é¢èªã¿è¾¼ã¿å¾ã®å¦ç 43window.onload = () => { 44 if (window.util.isSP) { 45 // æ»ããã¿ã³ãæ¼ä¸ãããæ 46 history.pushState(null, null, null); 47 window.addEventListener('popstate', function () { 48 if (showBreakAwayModalFlg) { 49 showBreakAwayModalFlg = false; 50 $('.popup-overlay , .js-article-modal').fadeIn(); 51 } 52 }); 53 } else { 54 // ãã¦ã¹ã«ã¼ã½ã«ãå¤ããå ´å 55 document.body.addEventListener('mouseleave', (e) => { 56 if (e.clientY <= 0 && showBreakAwayModalFlg) { 57 showBreakAwayModalFlg = false; 58 $('.popup-overlay , .js-article-modal').fadeIn(); 59 } 60 }); 61 } 62 } 63 64 // all.min.jsã®ã¯ãªãã¯ã¤ãã³ãåé¤ 65 $('a[href^="#"]').off('click'); 66 // lazyload対å¿ã¹ã ã¼ã¹ã¹ã¯ãã¼ã«å¦ç 67 const getTargetPositionY = ($this) => { 68 const href = $this.attr('href'); 69 const target = $(href == '#' || href == '' ? 'html' : href); 70 71 return Math.trunc(target.offset().top); 72 } 73 74 const scrollAnimate = ($this, positionStart, scrollSpeed) => { 75 $('html').animate({ scrollTop: positionStart }, scrollSpeed, 'swing', () => { 76 const positionEnd = getTargetPositionY($this); 77 78 // ç¾å¨ã¹ã¯ãã¼ã«ä½ç½®ãå°éãã¦ããªãå ´åãå度ã¹ã¯ãã¼ã« 79 // æ°¸ç¶ã«ã¼ãåé¿ã®ãããç¾å¨ã¹ã¯ãã¼ã«ä½ç½®å徿ã®ã¿åãä¸ã 80 const currentPosition = Math.ceil($(window).scrollTop()); 81 82 if (currentPosition < positionEnd) { 83 scrollAnimate($this, positionEnd, 100); 84 } 85 }); 86 }; 87 88 $('a[href^="#"]').click(function() { 89 const positionStart = getTargetPositionY($(this)); 90 scrollAnimate($(this), positionStart, 500); 91 92 return false; 93 }); 94 95// ã¹ã¯ãã¼ã«ããããã¼ã«ã¼å¼ãããå¦ç 96var artucle_marker = document.querySelectorAll(".js-marker"); 97document.addEventListener("scroll", ()=>{ 98 for (let i = 0; i < artucle_marker.length; i++) { 99 var element = artucle_marker[i]; 100 var distance = element.getBoundingClientRect().top; 101 if(distance < window.innerHeight * .8){ 102 element.classList.add("active"); 103 } 104 } 105}) 106 107});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.