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