1(function($) { 2 $(function() { 3 4 /* SPã¡ãã¥ã¼éé 5 ***************************************/ 6 $('[data-js="nav-menu"]').on('click', function() { 7 if ($('.p-header').hasClass('is-open')) { 8 $('.p-header').removeClass('is-open'); 9 } else { 10 $('.p-header').addClass('is-open'); 11 } 12 }); 13 /***************************************/ 14 15 /* ã¹ã©ã¤ãã¼ 16 ***************************************/ 17 var sliderLoopFlg = false; 18 var sliderLength = $('[data-js="flexslider"]').find('ul>li').length; 19 if (sliderLength > 1) sliderLoopFlg = true; 20 $('[data-js="flexslider"]').flexslider({ 21 animation: "slide", // ã¹ã©ã¤ãã®ã¢ãã¡ã¼ã·ã§ã³ã¿ã¤ã slide/fade 22 animationLoop: sliderLoopFlg, // ã¹ã©ã¤ããã«ã¼ãããã true/false 23 pauseOnHover: true, // ãã¦ã¹ãªã¼ãã¼ã§ã¹ã©ã¤ãã·ã§ã¼ã忢 true/false 24 pauseOnAction: false, // æä½ããã¦ããéãã¹ã©ã¤ãã忢 true/false 25 directionNav: false, // 両ãµã¤ãã®ç¢å°ã表示 true/false 26 slideshowSpeed: 5000, // ã¹ã©ã¤ãã®éé(1000=1ç§) 27 initDelay: 0 // ã¹ã©ã¤ããå§ã¾ãã¾ã§ã®æé(1000=1ç§) 28 }); 29 /***************************************/ 30 31 /* ãã¼ã¸TOP㸠32 ***************************************/ 33 var showFlag = false; 34 var pageTop = $('[data-js="pageTop"]'); 35 pageTop.click(function() { 36 $('body,html').animate({ 37 scrollTop: 0 38 }, 500); 39 return false; 40 }); 41 /***************************************/ 42 43 /* ã¢ã¼ãã« 44 ***************************************/ 45 // ç»é¢å ã®ç¹å®ã®ãã¿ã³ãæ¼ä¸ãããã¢ã¼ãã«ãéã 46 $(document).on('click', '[data-js="modal-open"]', function() { 47 $('body').addClass('is-overflow-y'); 48 $('.c-modal__bg').fadeIn(function() { 49 $('.c-modal__contents').fadeIn(); 50 }); 51 }); 52 53 // ã¢ã¼ãã«å ã®ç¹å®ã®ãã¿ã³ãæ¼ä¸ãããã¢ã¼ãã«ãéãã 54 $(document).on('click', '[data-js="modal-apply"]', function() { 55 modalClose(); 56 }); 57 58 // ã¢ã¼ãã«éãããã¿ã³ 59 $(document).on('click', '.c-modal__bg,[data-js="modal-close"]', function() { 60 modalClose(); 61 }); 62 63 // ã¢ã¼ãã«è¡¨ç¤º 64 function modalOpen() { 65 $('.c-modal__bg').fadeIn(function() { 66 $('.c-modal__contents').fadeIn(); 67 }); 68 } 69 70 // ã¢ã¼ãã«é表示 71 function modalClose() { 72 $('.c-modal__contents').fadeOut(function() { 73 $('.c-modal__bg').fadeOut(); 74 $('body').removeClass('is-overflow-y'); 75 }); 76 } 77 /***************************************/ 78 79 /* ã¢ã¼ãã« 80 ***************************************/ 81 // ç»é¢å ã®ç¹å®ã®ãã¿ã³ãæ¼ä¸ãããã¢ã¼ãã«ãéã 82 $(document).on('click', '[data-js="loading-open"]', function() { 83 $('body').addClass('is-overflow-y'); 84 $('.c-modal__bg').fadeIn(function() { 85 $('.c-modal__contents--loading').fadeIn(); 86 }); 87 }); 88 /****************************************/ 89 90 /* ã¿ã 91 ***************************************/ 92 $('[data-js="change-tab"]').on('click', function() { 93 var tabNum = $(this).attr('data-tab'); 94 var tabContent = $('[data-tab-content="' + tabNum + '"]'); 95 96 // ã¿ããããæ´»æ§å 97 $('[data-js="change-tab"]').removeClass('is-active'); 98 $(this).addClass('is-active'); 99 100 // ã¿ãã®é«ããæå® 101 tabContent.css('height', tabContent.height() + 'px'); 102 103 // ã¿ãã®åæ¿ 104 $('.c-tab__content').removeClass('is-active'); 105 tabContent.addClass('is-active'); 106 }); 107 108 initTabContentHeight(); 109 110 function initTabContentHeight() { 111 var tabNum = $('[data-js="change-tab"].is-active').attr('data-tab'); 112 var tabContent = $('[data-tab-content="' + tabNum + '"]'); 113 114 // ã¿ããããæ´»æ§å 115 $(this).addClass('is-active'); 116 117 // ã¿ãã®é«ããæå® 118 tabContent.css('height', tabContent.height() + 'px'); 119 120 // ã¿ãã®åæ¿ 121 $('.c-tab__content').removeClass('is-active'); 122 tabContent.addClass('is-active'); 123 } 124 /****************************************/ 125 126 $('[data-js="toggle-globalNav"]').on('click', function() { 127 var gnav = $(this).closest('.c-globalNav'); 128 if (gnav.hasClass('is-active')) { 129 gnav.removeClass('is-active'); 130 } else { 131 gnav.addClass('is-active'); 132 } 133 $(this).closest('.c-globalNav__body').toggle(); 134 });
135 }); 136 137 $(document).ready(function(){ 138 if ($('.weeklyBTN')[0]) { 139 $('.weeklyBTN')[0].click(); 140 } 141 if ($('#mylist3')[0]) { 142 $('#mylist3')[0].click(); 143 } 144 if ($('.monthlyBTN')[0]) { 145 $( this ).off( event ); 146 $( ".monthly-tab" ).on( "click", function( event ) { 147 $('.monthlyBTN')[0].click(); 148 $( this ).off( event ); 149 }); 150 } 151 }); 152})(jQuery); 153 154function apply() { 155 $('body,html').animate({ 156 scrollTop: 0 157 }, 500); 158 return false; 159} 160 161function toc(name) { 162 $('body,html').animate({ 163 scrollTop: $('div[data-name="' + name + '"').offset().top - 170 164 }, 500); 165 return false; 166}
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.