1/* -------------------------------------------------------- 2 [Setting Option] â»å ¨ãã¼ã¸ã«é¢ãããã®ã ãè¨è¼ 3-------------------------------------------------------- */ 4$(document).ready(function() { 5 /* é»è©±çªå·ã¸ã®ãªã³ã¯æå® 6 PC â ãspanãã§å²ã (ãªã³ã¯ã«ããªã) 7 ã¹ãã â ãclass="tel-link"ããã¤ãããªã³ã¯ 8 -------------------------------------------------------- */ 9 if(!navigator.userAgent.match(/(iPhone|iPad|Android)/)){ 10 $("a.tel-link").each(function(){ 11 $(this).replaceWith('<span class="tel-link">' + $(this).html() + '</span>'); 12 }); 13 } 14 15 16 /* ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 17 -------------------------------------------------------- */ 18 $('a[href^="#"]:not(.nosmooth)').click(function(){ 19 var speed = 500; 20 var href= $(this).attr("href"); 21 var target = $(href == "#" || href == "" ? 'html' : href); 22 var hHeight = ''; 23 24 /* â½ åºå®ãããã¼ããã®å ´åã®å¦ç â½ */ 25 // // ãããã¼åºå®ãè§£é¤ãããã¦ã£ã³ãã¦å¹ 26 //var hFixSize = window.matchMedia('(max-width: 600px)'); 27 // åºå®ãããã¼ã®é«ã 28 //if(!hFixSize.matches) { 29 // åºå®ãããã¼ï¼ #header_wrap ã®ç®æã¯åºå®ãããã¼ã®idåã«åããã¦ãã ãã ï¼ 30 hHeight = $('#header').outerHeight() ; 31 //} 32 /* â³ åºå®ãããã¼ããã®å ´åã®å¦ç â½ */ 33 34 var position = target.offset().top - hHeight; 35 $("html, body").animate({scrollTop:position}, speed, "swing"); 36 return false; 37 }); 38 39 40 $('#hd_menu').on('click',function(){ 41 $(this).toggleClass('on'); 42 $('#gnav').toggleClass('on'); 43 $('body').toggleClass('noscroll'); 44 }); 45 46 $('#gn_close , #main_menu a').on('click',function(){ 47 $('#hd_menu').removeClass('on'); 48 $('#gnav').removeClass('on'); 49 $('body').removeClass('noscroll'); 50 }); 51 52}); 53 54// ãã¼ã¸ãå®å ¨ã«èªã¿è¾¼ã¾ãããå®è¡ 55$(window).on('load',function(){ 56 /* datepicker 57 -------------------------------------------------------- */ 58 59 /* ã°ãã¼ãã«ããéä¸ããä¸é¨åºå®ã«ãã 60 â»æåããä¸çªä¸ã«ãã£ã¤ãã¦ãå ´åã¯ãã®jsãããªãã®ã§æ¶ãã¦ãã ããã 61 -------------------------------------------------------- */ 62 var hnav = $('#header'); // åºå®ããããé å 63 var con = $('#main_img'); // ããé åã®æ¬¡ã®è¦ç´ ï¼ãããfixedã«ãªã£ãæã«ä½ç½®ããããªãããã«ä¸ã«paddingã確ä¿ããè¦ç´ ï¼ 64 var hnavTop = $(window).height(); 65 function hnavFix() { 66 if($(this).scrollTop() >= hnavTop) { 67 if(!hnav.hasClass('fixed')) { 68 hnav.addClass('fixed'); // fixed ã¯ã©ã¹ã追å 69 hnav.removeClass('top'); 70 } 71 } else if(hnav.hasClass('fixed')) { 72 hnav.addClass('top'); 73 hnav.removeClass('fixed').css('top',''); 74 } 75 } 76 hnavFix(); 77 78 //ã¹ã¯ãã¼ã«æã®å¦ç 79 $(window).scroll(function () { 80 var winTop = $(this).scrollTop(); 81 hnavFix(); 82 if(hnav.hasClass('fixed')){ 83 //fixedã®éã«æ¨ªã¹ã¯ãã¼ã«ããå¦ç 84 hnav.css("left", -$(window).scrollLeft()); 85 } 86 }); 87 88 89 /* ã¢ã³ã¼ãã£ãªã³ã¡ãã¥ã¼ 90 -------------------------------------------------------- */ 91 var accTrigger = $('.acc_tit'), 92 accSpSize = window.matchMedia('(max-width: 600px)'); 93 const accChange = function() { 94 accTrigger.each(function() { 95 if($(this).attr('data-size')){ 96 if(accSpSize.matches && $(this).attr('data-size') == 'sp') { 97 // 600px以ä¸ã§ã¢ã³ã¼ãã£ãªã³ã«ãããæã¯ãã£ã¡ 98 $(this).next().addClass('acc_contents').hide(); 99 return true; 100 } 101 102 $(this).next().css('display','').removeClass('acc_contents'); 103 } 104 }); 105 } 106 accSpSize.addListener(accChange); 107 accChange(); 108 $('.acc_contents').hide(); 109 $('.acc_tit').on("click",function(){ 110 var acc = $(this); 111 acc.toggleClass("active").next(".acc_contents").slideToggle(300); 112 }); 113 114 /* å¥ãã¼ã¸ããç¹å®IDç®æã¸ç§»åããã¨ãã«åºå®ãããã¼åä½ç½®ãããã 115 * aã¿ã°ã®ãªã³ã¯ãä¸è¨ã®ããã«è¨å®ãã¦ãã ããã 116 * <a href="hoge/?id=idå">hogehoge</a> 117 -------------------------------------------------------- */ 118 // // urlãã©ã¡ã¼ã¿ã®åå¾ 119 var moveArg = new Object; 120 var movePrm = location.search.substring(1).split('&'); 121 var moveFlg = false;
122 for(var i=0 ; movePrm[i] ; i++) { 123 var kv = movePrm[i].split('='); 124 moveArg[kv[0]]=kv[1]; 125 126 if(kv[0] == 'id') { 127 moveFlg = true; 128 } 129 } 130 131 if( moveFlg ) { 132 var target = $('#' + moveArg['id']); 133 var hHeight = ''; 134 135 /* â½ åºå®ãããã¼æãã®å ´åã®å¦ç â½ */ 136 // ãããã¼åºå®ãè§£é¤ãããã¦ã£ã³ãã¦å¹ 137 //var hFixSize = window.matchMedia('(max-width: 600px)'); 138 // åºå®ãããã¼ã®é«ã 139 //if(!hFixSize.matches) { 140 // åºå®ãããã¼ï¼ #header_wrap ã®ç®æã¯åºå®ãããã¼ã®idåã«åããã¦ãã ãã ï¼ 141 hHeight = $('#header').outerHeight(); 142 //} 143 /* â³ åºå®ãããã¼æãã®å ´åã®å¦ç â³ */ 144 145 var position = target.offset().top - hHeight; 146 $("html, body").animate({scrollTop:position}, 500, "swing"); 147 } 148 149 150/* ----- Setting End ----------------------------------- */ 151}); 152 153 154/* ã¡ã¼ã«ã¢ãã¬ã¹æå·å 155-------------------------------------------------------- */ 156function converter(M){ 157var str="", str_as=""; 158for(var i=0;i<M.length;i++){ 159str_as = M.charCodeAt(i); 160str += String.fromCharCode(str_as + 1); 161} 162return str; 163} 164function mail_to(k_1,k_2) 165{eval(String.fromCharCode(108,111,99,97,116,105,111,110,46,104,114,101,102,32, 16661,32,39,109,97,105,108,116,111,58) 167+ escape(k_1) + 168converter(String.fromCharCode(120,110,120,96,106,116,63,102,110,115,100,109,108,110,113,104,45,98,110,45,
168105,111, 16962,114,116,97,105,100,98,115,60)) 170+ escape(k_2) + "'");} 171
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.