1/** 2 * Copyright (c) SYNALABO inc. All Rights Reserved. 3 * http://www.synalabo.com/ 4 */ 5 6jQuery(function($){ 7 // formã§éµä¾¿çªå·ãã使ãèªååºåãã 8 $('#zip').on('change', function(event) { 9 AjaxZip3.zip2addr(this, '', 'pref', 'addr1'); 10 }); 11 12 // Googleãããã.googlemapã«æ¿å ¥ 13 if ($('.googlemap').length){ 14 $('.googlemap').append(swp_vars.google_map_tag); 15 } 16 17 // ãã¼ã¸å ã¹ã¯ãã¼ã« 18 $('a.scroll').on('click', function(){ 19 $('html,body').animate({scrollTop: $($(this).attr('href')).offset().top }, {'duration': 400, 'easing': 'easeOutCubic', 'queue': false}); 20 return false; 21 }); 22 23 // å¤é¨ãªã³ã¯ã«ãtarget="_blank"ãä»ä¸ï¼ã¯ã©ã¹ãa.noblank以å¤ãï¼ 24 $('a[href^=http]').not('[href*="'+location.hostname+'"]').not('a.noblank').attr('target', '_blank'); 25 26 // ç»åã«ãªã³ã¯ããå ´åãlightboxã§éã 27 $('a[href$="jpg"], a[href$="jpeg"], a[href$="JPG"], a[href$="JPEG"], a[href$="png"], a[href$="gif"]').not('.lightbox-group-item').addClass('lightbox'); 28 29 // lightbox 30 $('.lightbox').lightGallery({ 31 selector: 'this', 32 autoplayFirstVideo: false, // inlineä½¿ç¨æã«ã¨ã©ã¼ãåºãã®ã§è¨å® 33 getCaptionFromTitleOrAlt: false, // titleãaltã使ã£ã¦ãã£ãã·ã§ã³ã表示ãããã©ãã 34 fullScreen: false, 35 share: false, // shareãã¿ã³ã®è¡¨ç¤ºã»é表示 36 download: false // downloadãã¿ã³ã®è¡¨ç¤ºã»é表示 37 }); 38 39 // lightbox-group 40 $('.lightbox-group').lightGallery({ 41 selector: '.lightbox-group-item', 42 showThumbByDefault: true, // ããã©ã«ãã§ãµã ãã¤ã«ä¸è¦§ã表示ãããã©ãã 43 getCaptionFromTitleOrAlt: false, // titleãaltã使ã£ã¦ãã£ãã·ã§ã³ã表示ãããã©ãã 44 fullScreen: false, 45 share: false, // shareãã¿ã³ã®è¡¨ç¤ºã»é表示 46 download: false // downloadãã¿ã³ã®è¡¨ç¤ºã»é表示 47 }); 48 49 // slick: ç»é¢å¹ 100%ã®ã¹ã©ã¤ãã¼ 50 $('.slideshow-fullwidth').slick({ 51 dots: false, 52 arrows: true, 53 slidesToShow: 3, 54 slidesToScroll: 1, 55 variableWidth: true, 56 centerMode: true, 57 infinite: swp_vars.infinite_loop, 58 speed: swp_vars.speed, 59 autoplay: swp_vars.auto, 60 autoplaySpeed: swp_vars.pause 61 }); 62 63 // slick: paginationããµã ãã¤ã«ã«ãã 64 $('.slideshow-thumbpager').slick({ 65 dots: true, 66 arrows: false, 67 fade: true, 68 infinite: swp_vars.infinite_loop, 69 speed: swp_vars.speed, 70 autoplay: swp_vars.auto, 71 autoplaySpeed: swp_vars.pause, 72 customPaging : function(slider, i) { 73 var thumb = $(slider.$slides[i]).find('img').attr('src'); 74 return '<a><img src="'+thumb+'"></a>'; 75 } 76 }); 77 78 // slick: ticker mode 79 $('.slideshow-ticker').slick({ 80 arrows: false, 81 slidesToShow: 3, 82 slidesToScroll: 1, 83 autoplay: true, 84 autoplaySpeed: 0, 85 speed: 2000, 86 cssEase:'linear' 87 }); 88 89 // NEWS: carousel 90 $('.main-news-carousel').slick({ 91 arrows: false, 92 slidesToShow: 1, 93 slidesToScroll: 1, 94 autoplay: true, 95 96 // ã¹ããæãªãã·ã§ã³ 97 responsive: [ 98 { 99 breakpoint: 768, 100 settings: { 101 slidesToShow: 1 102 } 103 } 104 ] 105 }); 106 107 // IMAGE: carousel 108 $('.main-images-carousel').slick({ 109 arrows: false, 110 slidesToShow: 2, 111 slidesToScroll: 1, 112 autoplay: true, 113 }); 114 115 // GALLERY: carousel 116 $('.main-gallery-carousel').slick({ 117 arrows: true, 118 slidesToShow: 8, 119 slidesToScroll: 1, 120 autoplay: true, 121 122 // ã¹ããæãªãã·ã§ã³ 123 responsive: [ 124 { 125 breakpoint: 768, 126 settings: { 127 slidesToShow: 1 128 } 129 } 130 ] 131 }); 132 133 // slick: carousel 134 $('.slideshow-carousel').slick({ 135 arrows: true, 136 slidesToShow: 3, 137 slidesToScroll: 1, 138 autoplay: true, 139 140 // ã¹ããæãªãã·ã§ã³ 141 responsive: [ 142 { 143 breakpoint: 768, 144 settings: { 145 slidesToShow: 1 146 } 147 } 148 ] 149 }); 150 151 // slick: carousel 152 $('.slideshow-carousel-col2').slick({ 153 arrows: true, 154 slidesToShow: 3, 155 slidesToScroll: 1, 156 autoplay: false, 157 158 // ã¹ããæãªãã·ã§ã³ 159 responsive: [ 160 { 161 breakpoint: 768, 162 settings: { 163 slidesToShow: 2 164 } 165 } 166 ] 167 }); 168 169 // jquery.datetimepicker 170 jQuery.datetimepicker.setLocale('en'); 171 172 // æ¥ä» + æéæå® 173 174$('.datetimepicker').datetimepicker({ 175 allowTimes: [ 176 '11:30', '12:00', '12:30', '13:00','13:30', '14:00','14:30', '15:00','15:30', '16:00','16:30', '17:00','17:30', '8:00','18:30', '19:00','19:30' 177 ], 178 minDate: 0, // 仿¥ã®æ¥ä»ã¨ãã以åã®æ¥ä»ãç¡å¹ã«ãã 179 onGenerate: function(ct) { 180 var today = new Date(), 181 day = today.getDay(); 182 183 // 彿¥ä»¥åã®æ¥ä»ãç¡å¹ã«ãã 184 $(this).find('.xdsoft_date.xdsoft_day').each(function(){ 185 var date = parseInt($(this).attr('data-date')); 186 if(date < today.getDate() && today.getMonth() == new Date(ct).getMonth()) { 187 $(this).addClass('xdsoft_disabled'); 188 } 189 }); 190 191 // ç«ææ¥ã®å ´åãç¿æ¥ãç¡å¹ã«ãã 192 //if (day === 2) { // 2ã¯ç«ææ¥ã示ãã¾ã 193 // $(this).find('.xdsoft_date.xdsoft_day_of_week3').addClass('xdsoft_disabled'); 194 //} 195 }, 196 beforeShowDay: function(date){ 197 var day = date.getDay(); 198 var today = new Date(); 199 var currentWeekWednesday = new Date(today.getFullYear(), today.getMonth(), today.getDate() + (3 - today.getDay() + 7) % 7); // 仿¥ãå«ãé±ã®æ°´ææ¥ 200 // 彿¥ã¯é¸æã§ããªã 201 if(date.setHours(0,0,0,0) == new Date().setHours(0,0,0,0)){ 202 return [false]; 203 } 204 // 彿¥ä»¥åã®æ¥ä»ã鏿ã§ããªã 205 if(date < today){ 206 return [false]; 207 } 208 // æ¯é±ç«ææ¥ã¯é¸æã§ããªã 209 if (day === 2) { 210 return [false]; 211 } 212 // 仿¥ãå«ãé±ã®æ°´ææ¥ã¯é¸æã§ããªã 213 //if (date.getTime() === currentWeekWednesday.getTime()) { 214 // return [false]; 215 //} 216 // 次ã®é±ä»¥éã®æ°´ææ¥ã¯é¸æå¯è½ 217 //if (day === 3 && date > currentWeekWednesday) { 218 // return [true]; 219 //} 220 return [true]; 221 } 222}); 223 224 225 226 227 228 229 // æ¥ä»æå® 230 $('.datetimepicker-day').datetimepicker({ 231 timepicker: false, 232 format: 'Y/m/d' 233 }); 234 235 // jquery.simple.accordion.js 236 $('.accordion').simpleAccordion({ 237 useAnimation: true, // ã¢ãã¡ã¼ã·ã§ã³ã® on, off 238 useLinks: false // ãªã³ã¯ãå©ç¨ãããã©ãã 239 }); 240 241 // simplebar 242 $('.scroll-area').each(function(index,el) { 243 new SimpleBar(el, { 244 autoHide: false, 245 }) 246 }); 247
248 // EC 詳細ãä¸è¦§ã³ã¡ã³ãæ¬ã§ tableãã¯ã¿åºãªãããã«ãã 249 $('.detailpage-list-comment table, .detailpage-main-comment table').each(function() { 250 if ($(this).parent().width() < $(this).width()) { 251 $(this).width('100%'); 252 } 253 }); 254});
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.