1$(function () { 2 3 //ã¹ãããç»å 4 // ç½®æã®å¯¾è±¡ã¨ããclass屿§ã 5 var $elem = $('.img_switch'); 6 // ç½®æã®å¯¾è±¡ã¨ããsrc屿§ã®æ«å°¾ã®æååã 7 var sp = '_sp.'; 8 var pc = '_pc.'; 9 // ç»åãåãæ¿ããã¦ã£ã³ãã¦ãµã¤ãºã 10 var replaceWidth = 769; 11 12 function imageSwitch() { 13 // ã¦ã£ã³ãã¦ãµã¤ãºãåå¾ããã 14 var windowWidth = parseInt($(window).width()); 15 16 // ãã¼ã¸å ã«ãããã¹ã¦ã®`.js-image-switch`ã«é©å¿ãããã 17 $elem.each(function () { 18 var $this = $(this); 19 // ã¦ã£ã³ãã¦ãµã¤ãºã768px以ä¸ã§ããã°_spã_pcã«ç½®æããã 20 if (windowWidth >= replaceWidth) { 21 $this.attr('src', $this.attr('src').replace(sp, pc)); 22 // ã¦ã£ã³ãã¦ãµã¤ãºã768pxæªæºã§ããã°_pcã_spã«ç½®æããã 23 } else { 24 $this.attr('src', $this.attr('src').replace(pc, sp)); 25 } 26 }); 27 } 28 imageSwitch(); 29 // åçãªãªãµã¤ãºã¯æä½å¾0.2ç§çµã£ã¦ããå¦çãå®è¡ããã 30 var resizeTimer; 31 $(window).on('resize', function () { 32 clearTimeout(resizeTimer); 33 resizeTimer = setTimeout(function () { 34 imageSwitch(); 35 }, 50); 36 }); 37 38 //ãã³ãã¼ã¬ã¼ã¡ãã¥ã¼ 39 $('#nav_toggle,#nav_toggle2').on('click', function () { 40 $('body').toggleClass('open'); 41 }); 42 $('.icon_search,#nav_search_toggle').on('click', function () { 43 $('body').toggleClass('open2'); 44 }); 45 // $('.wrap_menu,.inner_search_menu').on('click', function () { 46 // $('body').removeClass('open open2'); 47 // }); 48 //ãã³ãã¼ã¬ã¼ã¡ãã¥ã¼ãæ¼ãããéãã(ã¢ã³ã«ã¼ãªã³ã¯ç¨) 49 $('.g_nav a[href]').on('click', function(event) { 50 $('#nav_toggle').trigger('click'); 51 }); 52 53 $(window).on('load', function() { 54 var urlHash = location.hash; 55 if(urlHash) { 56 $('body,html').stop().scrollTop(0); 57 setTimeout(function(){ 58 var target = $(urlHash); 59 var position = target.offset().top; 60 $('body,html').stop().animate({scrollTop:position}, 500); 61 }, 100); 62 } 63 $('a[href^="#"]').click(function() { 64 var href= $(this).attr("href"); 65 var target = $(href); 66 var position = target.offset().top; 67 $('body,html').stop().animate({scrollTop:position}, 500); 68 }); 69 }); 70 71 72 73 //éä¸ãããã³ãã¼ã¬ã¼ã¡ãã¥ã¼ã¨æ¤ç´¢çªã®è²ã夿´ 74 $(window).on('load', function () { 75 var navPos = $( '.wrap_fixed' ).offset().top; // ã°ãã¼ãã«ã¡ãã¥ã¼ã®ä½ç½® 76 var lang = $( '.la_select' ).offset().top; // 翻訳ã®ä½ç½® 77 var navHeight = $( '.wrap_keyimage' ).outerHeight(); // ã°ãã¼ãã«ã¡ãã¥ã¼ã®é«ã 78 var mountainHeight = $( '.wrap_famous_mountain_top' ).outerHeight(); // ã°ãã¼ãã«ã¡ãã¥ã¼ã®é«ã 79 var recommendedHeight = $( '.keyimage_recommended_route_single' ).outerHeight(); // ã°ãã¼ãã«ã¡ãã¥ã¼ã®é«ã 80 81 $( window ).on( 'scroll', function() { 82 if ( $( this ).scrollTop() > navHeight ) { 83 $( '.icon_home a' ).css('fill','#000'); 84 $( '.nav_toggle span' ).css('background','#000'); 85 $( '.icon_search' ).css('color','#000'); 86 // $( '.la_select' ).css('color','#000').addClass('on'); 87 // $( '#google_language_translator .goog-te-gadget .goog-te-combo option' ).css('background','#fff'); 88 } else if ( $( this ).scrollTop() > mountainHeight ) { 89 $( '.icon_home a' ).css('fill','#000'); 90 $( '.nav_toggle span' ).css('background','#000'); 91 $( '.icon_search' ).css('color','#000'); 92 // $( '.la_select' ).css('color','#000').addClass('on'); 93 // $( '#google_language_translator .goog-te-gadget .goog-te-combo option' ).css('background','#fff'); 94 } else if ( $( this ).scrollTop() > recommendedHeight ) { 95 $( '.icon_home a' ).css('fill','#000'); 96 $( '.nav_toggle span' ).css('background','#000'); 97 $( '.icon_search' ).css('color','#000'); 98 // $( '.la_select' ).css('color','#000').addClass('on'); 99 // $( '#google_language_translator .goog-te-gadget .goog-te-combo option' ).css('background','#fff'); 100 } else { 101 $( '.icon_home a' ).css('fill','#fff'); 102 $( '.nav_toggle span' ).css('background','#fff'); 103 $( '.icon_search' ).css('color','#fff'); 104 // $( '.la_select' ).css('color','#fff').removeClass('on'); 105 // $( '#google_language_translator .goog-te-gadget .goog-te-combo option' ).css('background','#454545'); 106 } 107 }); 108 }); 109 110 if (window.matchMedia( "(max-width: 768px)" ).matches) { 111 // ã¢ãã«ã³ã¼ã¹ã¹ã©ã¤ãã¼ 112 $('.spot_slider').slick({ 113 autoplay: true,
114 arrows: false, 115 centerMode: true, 116 centerPadding: '10%', 117 slidesToShow: 1, 118 }); 119 120 //é åã¹ã©ã¤ãã¼ 121 $('.wrap_attraction_area_slider').slick({ 122 infinite: true, 123 autoplay: true, 124 autoplaySpeed: 0, //èªååçã®ã¹ã©ã¤ãåãæ¿ãã¾ã§ã®æéãè¨å® 125 speed: 8000, //ã¹ã©ã¤ããæµããé度ãè¨å® 126 cssEase: "linear", //ã¹ã©ã¤ãã®æµãæ¹ãçéã«è¨å® 127 slidesToShow: 1, 128 slidesToScroll: 1, 129 centerMode: true, 130 centerPadding: "10%", 131 }); 132 133 //é åã¢ã³ã¼ãã£ãªã³ 134 $('.attraction_area_contents_head').on('click',function(){ 135 $(this).next().slideToggle(); 136 }); 137 $('.ac_close').on('click',function(){ 138 $(this).parent().slideToggle(); 139 }); 140 141 //é ååå£ã¢ã³ã¼ãã£ãªã³ 142 $('.img_seasons').on('click',function(){ 143 $(this).next().slideToggle(); 144 }); 145 $('.btn_close_seasons').on('click',function(){ 146 $(this).parent().slideToggle(); 147 }); 148 } 149 150 //é åãããæ£®æçå½ã¨ã¯ã¢ã³ã¼ãã£ãªã³ 151 $('.ttl_h3_about2').on('click',function(){ 152 $(this).toggleClass('on').next().slideToggle(); 153 }); 154 155 //é å財å£ã®æ¦è¦ã¢ã³ã¼ãã£ãªã³ 156 $('.ttl_foundation').on('click',function(){ 157 $(this).toggleClass('on').next().slideToggle(); 158 }); 159 160 //森æã»ã©ãã¼åè¬ã»æéæ¡å ã¿ãã¡ãã¥ã¼ 161 $('.ul_corse_tab_nav>li').click(function () { 162 console.log('click'); 163 var num = $(this).parent().children('li').index(this); 164 $('.ul_corse_tab_nav').each(function () { 165 $('>li', this).removeClass('on').eq(num).addClass('on'); 166 }); 167 $('.tab_contents').hide().eq(num).show(); 168 }).first().click(); 169 $('.ul_corse_tab_nav>li').click(function () { 170 var speed = 400; 171 var href = $(this).attr("data-url"); 172 var target = $(href == "#" || href == "" ? 'html' : href); 173 var position = target.offset().top; 174 $('body,html').animate({ 175 scrollTop: position 176 }, speed, 'swing'); 177 return false; 178 }); 179 180 //ã¤ãã³ãã¹ã©ã¤ãã¼ 181 $('.wrap_event_contents_top').slick({ 182 infinite: true, 183 autoplay: true, 184 dots: true, 185 slidesToShow: 3, 186 slidesToScroll: 1, 187 variableWidth: true, 188 189 responsive: [ 190 { 191 breakpoint: 768, 192 settings: { 193 arrows: false, 194 centerMode: true, 195 centerPadding: '10%', 196 slidesToShow: 1, 197 variableWidth: false, 198 } 199 }, 200 ] 201 }); 202 203 //ã»ã©ãã¼ãã¼ãã¹ã©ã¤ãã¼ 204 $('.wrap_therapy_road_slider').slick({ 205 infinite: true, 206 autoplay: true, 207 autoplaySpeed: 0, //èªååçã®ã¹ã©ã¤ãåãæ¿ãã¾ã§ã®æéãè¨å® 208 speed: 5000, //ã¹ã©ã¤ããæµããé度ãè¨å® 209 cssEase: "linear", //ã¹ã©ã¤ãã®æµãæ¹ãçéã«è¨å® 210 slidesToShow: 4, 211 slidesToScroll: 1, 212 responsive: [ 213 { 214 breakpoint: 768, 215 settings: { 216 slidesToShow: 2, 217 } 218 }, 219 ] 220 }); 221 222 //MW WPform ã¨ã©ã¼æ 223 $('.error').siblings().addClass('error-pink'); 224 225 //ã¤ãã³ããã©ã¼ã ï¼ã§ä¼å ´ããªã³ã©ã¤ã³ã®å ´å 226 $("#venue").on("change", function() { 227 $('.dt_terminal,.dd_terminal').hide(); 228 var shop = $(this).val(); 229 if ( shop == 'ãªã³ã©ã¤ã³' ) { 230 $('.dt_terminal,.dd_terminal').show(); 231 } 232 }).trigger('change'); 233}); 234 235// ãã¤ãããã«ã¼ 236$(function() { 237 var date = new Date;// ææ«æ¥ãã»ãã 238 date.setMonth(date.getMonth() + 1, 0); // 彿, 0æ¥ï¼1æ¥ã®åæ¥ï¼ 239 $('.calendar').datepicker({ 240 dateFormat: 'yy-mm-dd', 241 minDate: '0', 242 language: 'ja', 243 closeText: "éãã", 244 prevText: "<å", 245 nextText: "次>", 246 currentText: "仿¥", 247 monthNames: [ "1æ","2æ","3æ","4æ","5æ","6æ", 248 "7æ","8æ","9æ","10æ","11æ","12æ" ], 249 monthNamesShort: [ "1æ","2æ","3æ","4æ","5æ","6æ", 250 "7æ","8æ","9æ","10æ","11æ","12æ" ], 251 dayNames: [ "æ¥ææ¥","æææ¥","ç«ææ¥","æ°´ææ¥","æ¨ææ¥","éææ¥","åææ¥" ], 252 dayNamesShort: [ "æ¥","æ","ç«","æ°´","æ¨","é","å" ], 253 dayNamesMin: [ "æ¥","æ","ç«","æ°´","æ¨","é","å" ], 254 weekHeader: "é±", 255 dateFormat: "yy/mm/dd", 256 firstDay: 0, 257 isRTL: false, 258 showMonthAfterYear: true, 259 yearSuffix: "å¹´", 260 }); 261}); 262 263 264 265 266// ãã¤ãããã«ã¼ 267// https://shiso.or.jp/climbing_event_form1?post_id=11908 268$(function() { 269 var date = new Date;// ææ«æ¥ãã»ãã 270 date.setMonth(date.getMonth() + 1, 0); // 彿, 0æ¥ï¼1æ¥ã®åæ¥ï¼ 271 $('.calendar3').datepicker({ 272 dateFormat: 'yy-mm-dd', 273 //minDate: '0', 274 language: 'ja', 275 closeText: "éãã", 276 prevText: "<å", 277 nextText: "次>", 278 currentText: "仿¥", 279 monthNames: [ "1æ","2æ","3æ","4æ","5æ","6æ", 280 "7æ","8æ","9æ","10æ","11æ","12æ" ], 281 monthNamesShort: [ "1æ","2æ","3æ","4æ","5æ","6æ", 282 "7æ","8æ","9æ","10æ","11æ","12æ" ], 283 dayNames: [ "æ¥ææ¥","æææ¥","ç«ææ¥","æ°´ææ¥","æ¨ææ¥","éææ¥","åææ¥" ], 284 dayNamesShort: [ "æ¥","æ","ç«","æ°´","æ¨","é","å" ], 285 dayNamesMin: [ "æ¥","æ","ç«","æ°´","æ¨","é","å" ], 286 weekHeader: "é±", 287 dateFormat: "yy/mm/dd", 288 firstDay: 0, 289 isRTL: false, 290 showMonthAfterYear: true, 291 yearSuffix: "å¹´", 292 }); 293}); 294 295 296 297 298 299 300 301 302 303 304// ãã¤ãããã«ã¼ å¹³æ¥é¸æã§ããªãããã«(ã»ã©ãã¼ãã¤ã¯) 305$(function() { 306 var date = new Date; // ææ«æ¥ãã»ãã 307 date.setMonth(date.getMonth() + 1, 0); // 彿, 0æ¥ï¼1æ¥ã®åæ¥ï¼ 308 $('.calendar2').datepicker({ 309 dateFormat: 'yy-mm-dd', 310 minDate: '+1d', 311 language: 'ja', 312 closeText: "éãã", 313 prevText: "<å", 314 nextText: "次>", 315 currentText: "仿¥", 316 monthNames: [ "1æ","2æ","3æ","4æ","5æ","6æ", 317 "7æ","8æ","9æ","10æ","11æ","12æ" ], 318 monthNamesShort: [ "1æ","2æ","3æ","4æ","5æ","6æ", 319 "7æ","8æ","9æ","10æ","11æ","12æ" ], 320 dayNames: [ "æ¥ææ¥","æææ¥","ç«ææ¥","æ°´ææ¥","æ¨ææ¥","éææ¥","åææ¥" ], 321 dayNamesShort: [ "æ¥","æ","ç«","æ°´","æ¨","é","å" ], 322 dayNamesMin: [ "æ¥","æ","ç«","æ°´","æ¨","é","å" ], 323 weekHeader: "é±", 324 dateFormat: "yy/mm/dd", 325 firstDay: 0, 326 isRTL: false, 327 showMonthAfterYear: true, 328 yearSuffix: "å¹´", 329 }); 330 331 // ç¹å®ã®å¹³æ¥ã追å 332 var specialDates = [ 333 "2024-07-01", 334 "2024-09-16", 335 "2024-09-23", 336 "2024-10-14", 337 338// "2024-08-15" 339 ]; 340 341 $('.calendar2').datepicker('option', 'beforeShowDay', function(date) { 342 var day = date.getDay(); 343 var formattedDate = $.datepicker.formatDate('yy-mm-dd', date); 344 345 var isSpecialDate = specialDates.includes(formattedDate);
346 var isWeekend = (day == 0 || day == 6); // 忥 347 348 if (isSpecialDate || isWeekend) { 349 return [true]; // 鏿å¯è½ 350 } else { 351 return [false]; // 鏿ä¸å¯ 352 } 353 }); 354}); 355 356$('.wpcf7-list-item-label').each(function () { 357 var text = $(this).html(); 358 $(this).html(text.replace('<br>', '<br>')); 359});
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.