1$(function(){ 2 3 /*======================================== 4 component 5 ========================================*/ 6 7 /*== hamburger ====================*/ 8 $('.menu-trigger').click(function(){ 9 $(this).toggleClass('active'); 10 $('.toggle-menu').slideToggle(); 11 }); 12 // ãã¼ã¸å ãªã³ã¯ãã¯ãªãã¯ãããã¡ãã¥ã¼ãéãã 13 $('.toggle-menu a[href^="#"]').click(function(){ 14 $('.menu-trigger').removeClass('active'); 15 $('.toggle-menu').slideUp(); 16 }); 17 18 /*== smooth scroll ====================*/ 19 var headerHeight = $('.header').outerHeight(); 20 var urlHash = location.hash; 21 if(urlHash) { 22 $('body,html').stop().scrollTop(0); 23 setTimeout(function(){ 24 var target = $(urlHash); 25 var position = target.offset().top - headerHeight; 26 $('body,html').stop().animate({scrollTop:position}, 500); 27 }, 100); 28 } 29 $('a[href^="#"]').click(function() { 30 var href= $(this).attr("href"); 31 var target = $(href); 32 var position = target.offset().top - headerHeight; 33 $('body,html').stop().animate({scrollTop:position}, 500); 34 }); 35 36 /*== link-disabled ====================*/ 37 $('a.link-disabled').click(function() { 38 return false; 39 }); 40 41 /*== map ====================*/ 42 var map = $('.map'); 43 map.css('pointer-events', 'none'); 44 $('.map-wrap').click(function() { 45 map.css('pointer-events', 'auto'); 46 }); 47 map.mouseout(function() { 48 map.css('pointer-events', 'none'); 49 }); 50 51 /*== object fit img ====================*/ 52 objectFitImages('ofi'); 53 54 55 /*======================================== 56 header 57 ========================================*/ 58 59 60 /*======================================== 61 home 62 ========================================*/ 63 64 /*== slick ====================*/ 65 // slick 66 $('.slider').slick({ 67 dots: true, 68 arrows: false, 69 speed: 100, 70 autoplay: true, 71 slidesToShow: 1, 72 slidesToScroll: 1, 73 }); 74 75// end function 76}); 77 78/*== table-tab ====================*/ 79$(function(){ 80 // ã¯ãªãã¯ããã¨ãã®é¢æ° 81 $('.tab-btn').click(function() { 82 //ã¯ãªãã¯ãããã¿ãã®çªå·ãindexã«æ ¼ç´ã 83 var index = $('.tab-btn').index(this); 84 //ã³ã³ãã³ãã䏿¦å ¨ã¦é表示ã«ã 85 $('.tab-content').css('display','none'); 86 // ã¯ãªãã¯ãããçªå·ã®ã³ã³ãã³ãã表示ã 87 $('.tab-content').eq(index).fadeIn(); 88 // ä¸åº¦ã¿ãã«ã¤ãã¦ãã'tab_current'ãæ¶ã 89 $('.tab-btn').removeClass('tab-btn--current'); 90 //ã¯ãªãã¯ãããã¿ãã®ã¿ã«'tab_current'ãã¤ããã 91 $(this).addClass('tab-btn--current'); 92 }); 93}); 94 95$(function(){ 96 $('.tab-btn2').click(function() { 97 //ã¯ãªãã¯ãããã¿ãã®çªå·ãindexã«æ ¼ç´ã 98 var index = $('.tab-btn2').index(this); 99 //ã³ã³ãã³ãã䏿¦å ¨ã¦é表示ã«ã 100 $('.tab-area').css('display','none'); 101 // ã¯ãªãã¯ãããçªå·ã®ã³ã³ãã³ãã表示ã 102 $('.tab-area').eq(index).fadeIn(); 103 // ä¸åº¦ã¿ãã«ã¤ãã¦ãã'tab_current'ãæ¶ã 104 $('.tab-btn2').removeClass('tab-btn--current'); 105 //ã¯ãªãã¯ãããã¿ãã®ã¿ã«'tab_current'ãã¤ããã 106 $(this).addClass('tab-btn--current'); 107 }); 108}); 109 110
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.