1 2// ã¹ã ã¼ãºã¹ã¯ãã¼ã« 3$(function () { 4 var headerHeight = $('#header').outerHeight(); 5 var urlHash = location.hash; 6 if(urlHash) { 7 $('body,html').stop().scrollTop(0); 8 setTimeout(function(){ 9 var target = $(urlHash); 10 var position = target.offset().top - headerHeight; 11 $('body,html').stop().animate({scrollTop:position}, 500); 12 }, 100); 13 } 14 $('a[href^="#"]').click(function () { 15 var headerHight = $("#header").outerHeight(); 16 var speed = 500; 17 var href = $(this).attr("href"); 18 var target = $(href == "#" || href == "" ? 'html' : href); 19 var position = target.offset().top - headerHight; 20 $("html, body").animate({ scrollTop: position }, speed, "swing"); 21 return false; 22 }); 23 24}); 25 26// ç»åã®ãªã³ãªã 27function smartRollover() { 28 if (document.getElementsByTagName) { 29 var images = document.getElementsByTagName("img"); 30 for (var i = 0; i < images.length; i++) { 31 if (images[i].getAttribute("src").match("_off.")) { 32 images[i].onmouseover = function () { 33 this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on.")); 34 } 35 images[i].onmouseout = function () { 36 this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off.")); 37 } 38 } 39 } 40 } 41} 42if (window.addEventListener) { 43 window.addEventListener("load", smartRollover, false); 44} 45else if (window.attachEvent) { 46 window.attachEvent("onload", smartRollover); 47} 48 49 50// é«ãèª¿æ´ 51$(function () { 52 var hcss = $('header.header').css('position'); 53 var nH1 = (hcss != 'fixed') ? $('header.header').innerHeight() : 0;// ããã®é«ããåå¾ 54 var nH2 = $('footer.footer').innerHeight();// ããã®é«ããåå¾ 55 var wH = $(window).height();// 表示ç»é¢ã®é«ããåå¾ 56 var hH = wH - nH1 - nH2;// 表示ç»é¢ã¨ããã¨ãªã¢ã®å·®åãç®åº 57 $('.page-form .section').css('min-height', hH + 'px');// ç®åºããå·®åããããã¼ã¨ãªã¢ã®é«ãã«æå® 58}); 59 60// æåãµã¤ãºå¤æ´ãã¿ã³è¡¨ç¤ºé表示 61$(function () { 62 // ãid="jQueryBox"ããé表示 63 $("#jQueryBox").css("display", "none"); 64 65 // ãid="jQueryPush"ããã¯ãªãã¯ãããå ´å 66 $("#jQueryPush").click(function () { 67 // ãid="jQueryBox"ãã®è¡¨ç¤ºãé表示ãåãæ¿ãã 68 $("#jQueryBox").toggle(); 69 }); 70}); 71 72 73// æåãµã¤ãºå¤æ´ 74// jQuery(function($){ 75// //夿°ã«ã¯ããã¼åãå ¥ãã 76// var history = $.cookie('fontSize'); 77// 78// //é©ç¨ããç®æãæå®ãä»åã¯é¨åçã«#testå ã®pã« 79// var elm = $('p','#test'); 80// 81// //夿°ã空ãªãfontMãã空ã§ãªããã°ã¯ããã¼ã«ä¿åãã¦ããããã®ãé©ç¨ 82// (!history)? elm.addClass('fontM'):elm.addClass(history); 83// 84// //ã¯ãªãã¯ãããå®è¡ 85// $('li','#fontChange').click(function(){ 86// 87// //ã¯ãªãã¯ããè¦ç´ ã®IDåã夿°ã«ã»ãã 88// var setFontSize = this.id; 89// 90// //ã¯ããã¼ã«å¤æ°ãä¿å 91// $.cookie('fontSize', setFontSize); 92// 93// //ä¸åº¦classãé¤å»ãã¦ã夿°ãclassã¨ãã¦è¿½å 94// elm.removeClass().addClass(setFontSize); 95// }); 96// }); 97 98 99jQuery(function ($) { 100 //夿°ã«ã¯ããã¼åãå ¥ãã 101 var history = $.cookie('fontSize'); 102 //é©ç¨ããç®æãæå®ãä»åã¯é¨åçã«#testå ã®pã« 103 var elm = $('body'); 104 //夿°ã空ãªãfontMãã空ã§ãªããã°ã¯ããã¼ã«ä¿åãã¦ããããã®ãé©ç¨ 105 if (!history) { 106 elm.addClass('fontM'); 107 $('#fontM').addClass('active'); 108 } else { 109 elm.addClass(history); 110 $('#' + history).addClass('active'); 111 } 112 //ãã¿ã³ãã¯ãªãã¯ãããå®è¡ 113 $('li a', '.mod_headerbox_size').click(function () { 114 //activeã§ãªããã¿ã³ã ã£ãå ´åã®ã¿åä½ 115 if (!$(this).hasClass('active')) { 116 //ç¾å¨activeã®ã¤ãã¦ããclassãåé¤ 117 $('.active').removeClass('active'); 118 //ã¯ãªãã¯ãããã¿ã³ãactive 119 $(this).addClass('active'); 120 //ã¯ãªãã¯ããè¦ç´ ã®IDåã夿°ã«ã»ãã 121 var setFontSize = this.id; 122 //ã¯ããã¼ã«å¤æ°ãä¿å 123 $.cookie('fontSize', setFontSize); 124 //ä¸åº¦classãé¤å»ãã¦ã夿°ãclassã¨ãã¦è¿½å 125 elm.removeClass().addClass(setFontSize); 126 } 127 }); 128}); 129 130 131// ã¹ãããã°ã« 132$(function () { 133 $(".menu").css("display", "none"); 134 $(".button-toggle").on("click", function () { 135 $(".menu").slideToggle(); 136 $(this).toggleClass("active"); 137 }); 138 $(".menu > .navigation-01 li a ").on("click", function () { 139 $(".menu").slideToggle(); 140 $(".button-toggle").toggleClass("active"); 141 }); 142}); 143 144 145// ããã¿ã¼ãã°ã« 146var $box = $('.box'); 147var $button = $('.button'); 148 149$button.on('click', function () { 150 $box.toggleClass('active'); 151}); 152 153 154// å°å·ãããã¿ã³ 155$(function () { 156 157 //åå¥å°å·ãã¿ã³ãã¯ãªãã¯ããæ 158 $('.print-btn').on('click', function () { 159 //ããªã³ããããã¨ãªã¢ã®åå¾ 160 var printPage = $(this).closest('.print-page').html(); 161 162 //ããªã³ãç¨ã®è¦ç´ ã#printãã使 163 $('body').append('<div id="print"></div>'); 164 $('#print').append(printPage); 165 166 //ã#printã以å¤ã®è¦ç´ ã«é表示ç¨ã®classãprint-offããæå® 167 $('body > :not(#print)').addClass('print-off'); 168 window.print(); 169 170 //window.print()ã®å®è¡å¾ã使ããã#printãã¨ãé表示ç¨ã®classãprint-offããåé¤ 171 $('#print').remove(); 172 $('.print-off').removeClass('print-off'); 173 }); 174 175 //䏿¬å°å·ãã¿ã³ãã¯ãªãã¯ããæ 176 $('.print-all').on('click', function () { 177 window.print(); 178 }); 179 180}); 181 182 183// ã¹ã©ã¤ãã¼ 184// $(function() { 185// $('.center-item').slick({
186// infinite: true, 187// dots:true, 188// slidesToShow: 1, 189// centerMode: true, //è¦ç´ ãä¸å¤®å¯ã 190// centerPadding:'100px', //両ãµã¤ãã®è¦ãã¦ããé¨åã®ãµã¤ãº 191// autoplay:true, //èªååç 192// responsive: [{ 193// breakpoint: 480, 194// settings: { 195// centerMode: false, 196// } 197// }] 198// }); 199// }); 200$(function () { 201 $('.center').slick({ 202 centerMode: true, 203 centerPadding: '60px', 204 slidesToShow: 1, 205 responsive: [ 206 { 207 breakpoint: 768, 208 settings: { 209 arrows: false, 210 centerMode: true, 211 centerPadding: '40px', 212 slidesToShow: 3 213 } 214 }, 215 { 216 breakpoint: 480, 217 settings: { 218 arrows: false, 219 centerMode: true, 220 centerPadding: '40px', 221 slidesToShow: 1 222 } 223 } 224 ] 225 }); 226}); 227 228$(function () { 229 $('.multiple-items').slick({ 230 infinite: true, 231 slidesToShow: 3, 232 slidesToScroll: 1, 233 autoplay: true, 234 autoplaySpeed: 5000, 235 responsive: [ 236 { 237 breakpoint: 768, 238 settings: { 239 slidesToShow: 2, 240 dots: true, 241 } 242 }, 243 { 244 breakpoint: 480, 245 settings: { 246 dots: true, 247 slidesToShow: 1 248 } 249 } 250 ] 251 }); 252 $('.main-images-slider__items').slick({ 253 infinite: true, 254 slidesToShow: 1, 255 slidesToScroll: 1, 256 autoplay: true, 257 autoplaySpeed: 5000, 258 dots: true, 259 }); 260 261 262}); 263 264 265 266// ã¯ãªãã«ãã«ããã 267$(function () { 268 $('img[usemap]').rwdImageMaps(); 269}); 270 271 272// ä¸ã«æ»ããã¿ã³ 273$(function () { 274 var topBtn = $('#pageTop'); 275 topBtn.hide(); 276 277 //âãã¿ã³ã®è¡¨ç¤ºè¨å® 278 $(window).scroll(function () { 279 if ($(this).scrollTop() > 80) { 280 281 //---- ç»é¢ã80pxã¹ã¯ãã¼ã«ãããããã¿ã³ã表示ãã 282 topBtn.fadeIn(); 283 284 } else { 285 286 //---- ç»é¢ã80pxããä¸ãªãããã¿ã³ã表示ããªã 287 topBtn.fadeOut(); 288 289 } 290 }); 291 292 // âãã¿ã³ãã¯ãªãã¯ããããã¹ã¯ãã¼ã«ãã¦ä¸ã«æ»ã 293 topBtn.click(function () { 294 $('body,html').animate({ 295 scrollTop: 0 296 }, 500); 297 return false; 298 299 }); 300}); 301 302 303//ã¢ã¼ãã«ã¦ã£ã³ãã¦ã®ä½æ 304//glayLayerãã¯ãªãã¯ãããã 305$("#glayLayer").click(function () { 306 //glayLayerãæ¶ã 307 $(this).hide(); 308 //overLayerãæ¶ã 309 $("#overLayer").hide(); 310}); 311 312//ç»åãã¯ãªãã¯ãããã 313$("a.modal").click(function () { 314 //glayLayerã表示ãã 315 $("#glayLayer").show(); 316 //ã¯ãªãã¯ãããç»åãoverLayerã§è¡¨ç¤ºããã 317 $("#overLayer").show(); 318 //clickã¤ãã³ããå®è¡ããå¾ã«ãªã³ã¯å ã«ç§»åãã¦ãã¾ãã®ãé²ã 319 return false; 320}); 321 322 323$(function(){ 324 325 var pageBaseURL = location.protocol + '//' + location.hostname; 326 var pageURL = location.pathname, 327 pageURLArr = pageURL.split('/'), //ãã¹ãåå²ãã¦é ååãã 328 pageURLArrCategory = pageURLArr[1]; //ãã¹ãã第1é層ãåå¾ 329 330 $('#header > .header-wrap02 > .header-inner > .navigation-02 > ul > li > a').each(function (i, v) { 331 var selfhref = $(v).attr('href'), 332 selfhref = selfhref.replace(pageBaseURL, ''); 333 hrefArr = selfhref.split('/'), //href屿§ã®å¤ãåå²ãã¦é ååãã 334 hrefArrCategory = hrefArr[1]; //href屿§ã®ç¬¬1é層ãåå¾ 335 336 //ãã¹ã®ç¬¬1é層ã¨href屿§ã®ç¬¬1éå±¤ãæ¯è¼ãã¦åãå¤ã§ããã°currentãä»ä¸ãã 337 if (pageURLArrCategory === hrefArrCategory) { 338 $(v).addClass('current'); 339 } 340 console.log(pageURLArrCategory + 'ï¼' + selfhref); 341 342 }); 343 344}); 345 346
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.