1//================================ 2// ! æ¤ç´¢çª 3//================================ 4$(function(){ 5 $('.l-gnav-btn .search').on('click', function () { 6 $('.l-gnav-btn .search').toggleClass('on') 7 $('.inner-menu-buttons .search').slideToggle(); 8 9 // ã¡ãã¥ã¼ãéãã 10 $('.l-gnav-btn .hamburger, .js-gnav').removeClass('f-js-open'); 11 }); 12}); 13 14 15//================================ 16// ! ãã³ãã¼ã¬ã¼ 17//================================ 18$(window).on("load", function() { 19 // var w = $(window).width(); 20 // var x = 1024; 21 // if (w <= x) { //1024pxä»¥ä¸ 22}); 23 24$(function(){ 25 console.debug('hamburger_start'); 26 $('.l-gnav-btn .hamburger').click(function(){ 27 $('.l-gnav-btn .hamburger, .js-gnav').toggleClass('f-js-open'); 28 29 // æ¤ç´¢çªãéãã 30 $('.l-gnav-btn .search').removeClass('on') 31 $('.inner-menu-buttons .search').css('display', ''); 32 }); 33 console.debug('hamburger_end'); 34 //}); 35 // } else { //1024pxä»¥ä¸ 36 // console.debug('pcview'); 37 // } 38}); 39 40 41//================================ 42// ! ã¢ã³ã¼ãã£ãªã³ 43//================================ 44$(function () { 45 $('.c-l-d-inner').on('click', function () { 46 $(this).next().slideToggle(); 47 //openã¯ã©ã¹ãã¤ãã 48 $(this).toggleClass("open"); 49 //ã¯ãªãã¯ããã¦ããªã__menuã®openã¯ã©ã¹ãåã 50 $('.c-l-d-inner').not(this).removeClass('open'); 51 // ä¸ã¤éãã¨ä»ã¯éããããã« 52 $('.c-l-d-inner').not($(this)).next('.c-l-d-inner-list').slideUp(); 53 }); 54}); 55 56 57 58//================================ 59// ! ãã³ãã çç¥ 60//================================ 61$(function () { 62 const limit = document.querySelector(".breadcrumb_last"); 63 const str = limit; 64 const len = 30; // åè§30åï¼å ¨è§ç´25åï¼ 65 if (str > len) { 66 limit = str.substring(0, len) + "â¦"; 67 } 68}); 69 70 71 72//================================ 73// ! header ã¹ã¯ãã¼ã«ãããã¯ã©ã¹ãã¤ã 74//================================ 75$(function() { 76 $(window).on('load scroll', function() { 77 if ( window.document.body.id === 'top' ) {ã// bodyã®idãtopã®æã ã 78 var scrollPos = $(this).scrollTop();ã// ã¹ã¯ãã¼ã«éåå¾ 79 var classHeight = $('.__fv').get(0).scrollHeight;ã// æå®è¦ç´ ã®é«ãåå¾ 80 if ( scrollPos > classHeight ) {ã// ã¹ã¯ãã¼ã«é>æå®è¦ç´ ã®é«ã=classä»ãå¤ã 81 $('.js-header').addClass('scroll-header'); 82 } else { 83 $('.js-header').removeClass('scroll-header'); 84 } 85 } 86 }); 87}); 88 89 90 91//================================ 92// ! aboutus ã¹ã¯ãã¼ã«ãããã¯ã©ã¹ãã¤ã 93//================================ 94$(function() { 95 $(window).on('load scroll', function() { 96 if ( window.document.body.id === 'about' ) {ã// bodyã®idãtopã®æã ã 97 var scrollPos = $(this).scrollTop();ã// ã¹ã¯ãã¼ã«éåå¾ 98 var classHeight = $('.body-sdgs').get(0).scrollHeight;ã// æå®è¦ç´ ã®é«ãåå¾ 99 if ( scrollPos > classHeight ) {ã// ã¹ã¯ãã¼ã«é>æå®è¦ç´ ã®é«ã=classä»ãå¤ã 100 $('.js-bg').addClass('scroll-bg'); 101 } else { 102 $('.js-bg').removeClass('scroll-bg'); 103 } 104 } 105 }); 106}); 107 108 109 110//================================ 111// ! footer ã¹ã¯ãã¼ã«ãããã¯ã©ã¹ãã¤ã 112//================================ 113$(function() { 114 $(window).on('load scroll', function() { 115 if ( window.document.body.id === 'top' ) {ã// bodyã®idãtopã®æã ã 116 var scrollPos = $(this).scrollTop();ã// ã¹ã¯ãã¼ã«éåå¾ 117 var classHeight = $('.js-fo-footer').get(0).scrollHeight;ã// æå®è¦ç´ ã®é«ãåå¾ 118 if ( scrollPos > classHeight ) {ã// ã¹ã¯ãã¼ã«é>æå®è¦ç´ ã®é«ã=classä»ãå¤ã 119 $('.js-banner-ad').addClass('scroll-footer'); 120 } else { 121 $('.js-banner-ad').removeClass('scroll-footer'); 122 } 123 } 124 }); 125}); 126 127 128 129//================================ 130// ! ã¯ãªãããã¼ãã¸ã®ã³ãã¼ 131//================================ 132$(function () { 133 $('.copy-url-js').click(function () { 134 // data-urlã®å¤ãåå¾ 135 const url = $(this).data('url'); 136 137 // ã¯ãªãããã¼ãã«ã³ãã¼ 138 navigator.clipboard.writeText(url); 139 140 // ãã©ãã·ã¥ã¡ãã»ã¼ã¸è¡¨ç¤º 141 $('.success-msg').fadeIn("slow", function () { 142 $(this).delay(2000).fadeOut("slow"); 143 }); 144 }); 145}); 146 147//================================ 148// ! infiniteslide ã¹ã¯ãã¼ã« 149//================================ 150$(function(){ 151 $('.infiniteslide').infiniteslide({ 152 speed: 40, 153 direction: 'left', 154 pauseonhover: false, 155 clone: 2, 156 }); 157}); 158 159 160 161//================================ 162// ! ã¹ãããã¢ãã¬ã¹ãã¼ã®é«ããåå¾ 163//================================ 164$(function() { 165 $('.sp-100vh').css('height',$(window).height()); 166}); 167 168 169//================================ 170// ! ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 171//================================ 172// ãã¼ã¸å ã®ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 173$(function () { 174 $(document).on('click', 'a[href*="#"]', function(e) { 175 const target = $(this.hash === "" ? "html" : this.hash); 176 if (target.length) { 177 e.preventDefault(); 178 const headerHeight = $("header").outerHeight(); 179 const position = target.offset().top - headerHeight; 180 $("html, body").animate({ scrollTop: position }, 500, "swing"); 181 182 if (!target.is("html")) { 183 // URLã«ããã·ã¥ãå«ãã 184 history.pushState(null, '', this.hash); 185 } 186 } 187 }); 188 189 // å¥ãã¼ã¸é·ç§»å¾ã®ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 190 const urlHash = location.hash; 191 if (urlHash) { 192 const target = $(urlHash); 193 if (target.length) { 194 // ãã¼ã¸ãããããéå§ï¼ãã©ã¦ã¶å·®ç°ãèæ ®ãã¦ä½µç¨ï¼ 195 history.replaceState(null, '', window.location.pathname); 196 $("html,body").stop().scrollTop(0); 197 198 $(window).on("load", function () { 199 const headerHeight = $("header").outerHeight(); 200 const position = target.offset().top - headerHeight; 201 $("html, body").animate({ scrollTop: position }, 500, "swing"); 202 203 // ããã·ã¥ãåè¨å® 204 history.replaceState(null, '', window.location.pathname + urlHash); 205 }); 206 } 207 } 208});
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.