1$(function () { 2 3 var isSp = window.matchMedia('(max-width:768px)').matches; 4 5 // ------ Load template ----------- 6 $('[data-parts]').each(function(index, element) { 7 loadTemplate($(this)); 8 }) 9 10 // ------ load web fonts ----------- 11 WebFont.load({ 12 google: { 13 families: ['Noto+Sans+JP:400,500,700', 'Noto+Serif+JP:300,400,500,700'] 14 } 15 }); 16 17 // ------ object fit ----------- 18 objectFitImages(); 19 20 21 // ------ header ----------- 22 // ãããããã¦ã³ã¡ãã¥ã¼ã®è¡¨ç¤ºå¶å¾¡ 23 const trigger = document.querySelector('.dropdown'); 24 const menuber = document.querySelector('.menuber'); 25 const dropdown = document.querySelector('.dropdown_detail'); 26 27 // 表示ä½ç½®ãã¡ãã¥ã¼ãã¼ç´ä¸å·¦ç«¯å§ç¹ã«ãã 28 if (trigger && menuber && dropdown) { 29 trigger.addEventListener('mouseenter', () => { 30 const rect = menuber.getBoundingClientRect(); 31 dropdown.style.top = `${rect.bottom}px`; // â ç»é¢ä¸ããã®çµ¶å¯¾ä½ç½® 32 dropdown.style.left = `0`; 33 dropdown.style.position = 'fixed'; 34 dropdown.style.display = 'block'; 35 }); 36 37 // ã¡ãã¥ã¼ã®è¡¨ç¤º 38 dropdown.addEventListener('mouseleave', () => { 39 setTimeout(() => { 40 if (!dropdown.matches(':hover') && !trigger.matches(':hover')) { 41 dropdown.style.display = 'none'; 42 } 43 }, 50); 44 }); 45 // ã¡ãã¥ã¼ã®é表示 46 trigger.addEventListener('mouseleave', () => { 47 setTimeout(() => { 48 if (!dropdown.matches(':hover') && !trigger.matches(':hover')) { 49 dropdown.style.display = 'none'; 50 } 51 }, 50); 52 }); 53 } 54 55 // // ------ TOP MV ----------- 56 // $('.slide').slick({ 57 // dots: true, 58 // dotsClass: 'top-mv-dots', 59 // arrows: !isSp, 60 // prevArrow: '<img src="/asset/img/top/icon-arrow-prev.png" alt="æ»ã" class="slide-arrow slide-prev">', 61 // nextArrow: '<img src="/asset/img/top/icon-arrow-next.png" alt="次ã¸" class="slide-arrow slide-next">', 62 // // autoplay: true, 63 // centerMode: true, 64 // variableWidth: !isSp, 65 // }); 66 67 68 // ------ SCROLL EVENT ----------- 69 $(window).scroll(function () { 70 onScroll(); 71 }); 72 73 // ------ SERVICE FAQ -------- 74 $('.q').click(function () { 75 $(this).toggleClass('open'); 76 $(this).next().slideToggle(); 77 return false; 78 }); 79 80 81 // $('.tip-baloon .btn-close').click(function () { 82 // $('.tip-baloon').fadeOut(); 83 // return false; 84 // }); 85 86 // ------ ABOUT US MODAL -------- 87 // $('.toggle-modal').click(function () { 88 // $(this).next().fadeIn(); 89 // $('body').addClass('lock'); 90 // return false; 91 // }); 92 93 // ------ MODAL -------- 94 // $('.close-modal').click(function () { 95 // $('.mordal').fadeOut(); 96 // $('body').removeClass('lock'); 97 // return false; 98 // }); 99 100 // ------ CONTENS SEARCH -------- 101 // $('.regx-list input').change(function () { 102 103 // var showCnt = 0; 104 // $('input').each(function() { 105 106 // var val = $(this).val(); 107 // var target = $('.contents-item[data-tag="' + val + '"]'); 108 109 // if($(this).prop('checked')) { 110 // target.fadeIn(); 111 // showCnt++; 112 // } else { 113 // target.fadeOut(); 114 // } 115 // }); 116 117 // if(showCnt == 0) { 118 // $('.contents-item').fadeIn(); 119 // } 120 // }); 121 122 // ------ RECRUIT TAB -------- 123 // $('#tab li').click(function() { 124 // var index = $('#tab li').index(this); 125 // $('#tab li').removeClass('active'); 126 // $(this).addClass('active'); 127 // $('.tabbody .content_wrap').removeClass('show').eq(index).addClass('show'); 128 129 // }); 130 131 132 // -----------SP MENU----------- 133 $(document).on("click", ".menu-trigger", function () { 134 $(this).toggleClass('active'); 135 $('.sp-nav-wrap nav').toggleClass('active'); 136 $('body').toggleClass('lock'); 137 return false; 138 }); 139 140 141// .s_01 .accordion_one 142$(function(){ 143 //.accordion_oneã®ä¸ã®.accordion_headerãã¯ãªãã¯ãããã 144 $('.s_01 .accordion_one .accordion_header').click(function(){ 145 //ã¯ãªãã¯ããã.accordion_oneã®ä¸ã®.accordion_headerã«é£æ¥ãã.accordion_innerãéãããéãããããã
146 $(this).next('.accordion_inner').slideToggle(); 147 $(this).toggleClass("open"); 148 }); 149}); 150 151 152 153 154 155 156 157 // -----------SP FOOTER----------- 158 // if(isSp){ 159 // $(document).on("click", ".toggle-footer", function () { 160 // $(this).toggleClass('open'); 161 // $('.link-list-second ul:nth-of-type(n+2)').slideToggle(); 162 // return false; 163 // }); 164 // } 165 166 167 168 // ------ SMOOTH SCROLL -------- 169 $(document).on("click", 'a[href^="#"]', function () { 170 var href = $(this).attr("href"); 171 var target = $(href == "#" || href == "" ? 'html' : href); 172 var position = target.offset().top; 173 $("html, body").animate({ scrollTop: position }, 550, "swing"); 174 return false; 175 }); 176 177 178}); 179 180function loadTemplate(jqueryObj) { 181 var rootDir = jqueryObj.data('root') 182 $.ajax({ 183 type: 'get', 184 url: rootDir + jqueryObj.data('parts'), 185 dataType: 'html', 186 success: function(data) { 187 data = data.replace(/\{\$root\}/g, rootDir); 188 jqueryObj.append(data); 189 } 190 }); 191} 192 193function onScroll() { 194 195 var scroll = $(window).scrollTop(); 196 var windowHeight = $(window).height(); 197 198 // ããããã¼ã¸ãããã¼ 199 if (scroll > 50) { 200 $('.top header').addClass('invert'); 201 } else { 202 $('.top header').removeClass('invert'); 203 } 204} 205 206$(function() { 207 $('[name="tab_item"]:radio').change( function() { 208 if($('[id=tab01]').prop('checked')){ 209 $('.topic').fadeOut(); 210 $('.topics_page01').fadeIn(800); 211 } else if ($('[id=tab02]').prop('checked')) { 212 $('.topic').fadeOut(); 213 $('.topics_page02').fadeIn(800); 214 } else if ($('[id=tab03]').prop('checked')) { 215 $('.topic').fadeOut(); 216 $('.topics_page03').fadeIn(800); 217 } 218 }); 219}); 220 221$(function() { 222 $('[name="tab_item"]:radio').change( function() { 223 if($('#tab1').prop('checked')){ 224 $('.tab_content').hide(); 225 $('#tab1_content').fadeIn(); 226 } else if ($('#tab2').prop('checked')) { 227 $('.tab_content').hide(); 228 $('#tab2_content').fadeIn(); 229 } else if ($('#tab3').prop('checked')) { 230 $('.tab_content').hide(); 231 $('#tab3_content').fadeIn(); 232 } else if ($('#tab4').prop('checked')) { 233 $('.tab_content').hide(); 234 $('#tab4_content').fadeIn(); 235 } else if ($('#tab5').prop('checked')) { 236 $('.tab_content').hide(); 237 $('#tab5_content').fadeIn(); 238 } else if ($('#tab6').prop('checked')) { 239 $('.tab_content').hide(); 240 $('#tab6_content').fadeIn(); 241 } else if ($('#tab7').prop('checked')) { 242 $('.tab_content').hide(); 243 $('#tab7_content').fadeIn(); 244 } else if ($('#tab8').prop('checked')) { 245 $('.tab_content').hide(); 246 $('#tab8_content').fadeIn(); 247 } else if ($('#tab9').prop('checked')) { 248 $('.tab_content').hide(); 249 $('#tab9_content').fadeIn(); 250 } else if ($('#tab10').prop('checked')) { 251 $('.tab_content').hide(); 252 $('#tab10_content').fadeIn(); 253 } else if ($('#tab11').prop('checked')) { 254 $('.tab_content').hide(); 255 $('#tab11_content').fadeIn(); 256 } else if ($('#tab12').prop('checked')) { 257 $('.tab_content').hide(); 258 $('#tab12_content').fadeIn(); 259 } 260 }); 261}); 262 263//-------------çµãè¾¼ã¿------------------ 264var searchItem = '.search_item'; 265var listItem = '.list_item'; 266var hideClass = 'is-hide'; 267var activeClass = 'is-active'; 268var getCategory = '.category'; 269var categoryClass = 'category'; 270 271 272search_filter('all'); // ååèªã¿è¾¼ã¿æ 273$(function() { 274 275 $(searchItem).on('click', function() { 276 $(searchItem).removeClass(activeClass); 277 var group = $(this).addClass(activeClass).data('group'); 278 search_filter(group); 279 }); 280}); 281 282/** 283 * 284 * @param {String} group 285 */ 286function search_filter(group) { 287 // $(listItem).removeClass(hideClass); 288 // if(group === '') { 289 // return; 290 // } 291 // //allã®å ´å 292 // if(group === 'all') { 293 // for (var i = 0; i < $(getCategory).length; i++) { 294 // var categoryCheck = $(getCategory).eq(i).data('group'); 295 // if(categoryCheck !== 'all') { 296 // $(getCategory).eq(i).addClass(hideClass); 297 // } 298 // } 299 // return; 300 // }else{ 301 // for (var i = 0; i < $(listItem).length; i++) { 302 // var itemData = $(listItem).eq(i).data('group'); 303 // if(itemData !== group) { 304 // $(listItem).eq(i).addClass(hideClass); 305 // } 306 // } 307 // } 308 309 if(group == 'all') { 310 $(getCategory).hide(); 311 $(listItem + ':not(' + getCategory + ')').fadeIn(); 312 $(getCategory + '[data-group="all"]').fadeIn(); 313 } else { 314 $(listItem).hide(); 315 $(listItem + '[data-group *="' + group + '"]').fadeIn(); 316 } 317 318 319 320} 321 322 323//------------------------------------- 324 325 document.addEventListener('DOMContentLoaded', function () { 326 var $tab__link = $('.tab4__link') 327 var $tab_body_item = $('.tab4-body__item') 328 $tab__link.on('click', function (e) { 329 var target = $(e.currentTarget) 330 $tab__link.removeClass('on') 331 target.addClass('on') 332 var num = target.data('tab-body') 333 $tab_body_item.removeClass('on')
334 $('.tab4-body__item--' + num).addClass('on') 335 }) 336 }) 337 338// ãã¼ã¸ãªãã¼ããé²ãã§å°å·ãã¤ã¢ãã°ãéã 339function sim_print(event) { 340 event.preventDefault(); 341 window.print(); 342}
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.