1var PC_FIXED = false; 2var SP_FIXED = false; 3var SP_WIDTH = 769; 4var SPEED = 500; 5var scrolled = $(window).scrollTop(); 6 7function scrollPosition(position) { 8 position -= PC_FIXED && $(window).innerWidth() >= SP_WIDTH || SP_FIXED && $(window).innerWidth() < SP_WIDTH ? $('header').innerHeight() : 0; 9 $('html, body').animate({ 10 scrollTop: position 11 }, SPEED); 12} 13 14//ï¼<a href="#top">ã®æ§ã«è¨è¿°ããã¨æ»ããã«ã¹ã¯ãã¼ã«ãããï¼ 15$(function () { 16 $('a[href^="#"]').click(function () { 17 var position = $(this.hash).length > 0 ? $(this.hash).offset().top : scrolled; 18 scrollPosition(position); 19 return false; 20 }); 21}); 22 23// ä¸å®éã¹ã¯ãã¼ã«ããã¨ãã¼ã¸ãããã«æ»ãã表示ãããï¼å ´æçã®æå®ã¯common.scssã«ã¦ï¼ 24$(function () { 25 var top_btn = $('.pagetop'); 26 top_btn.hide(); 27 $(window).scroll(function () { 28 $(this).scrollTop() > 100 ? top_btn.fadeIn() : top_btn.fadeOut(); 29 }); 30 31 top_btn.click(function () { 32 scrollPosition(0); 33 return false; 34 }); 35}); 36 37// rolloverï¼_offã¨æ«å°¾ã«ã¤ããç»åããªã³ãã¦ã¹ã§_onã¨ã¤ããç»åã«åãæ¿ããï¼ 38$(function () { 39 $('img').hover( 40 function () { 41 $(this).attr('src', $(this).attr('src').replace('_off.', '_on.')); 42 }, 43 function () { 44 $(this).attr('src', $(this).attr('src').replace('_on.', '_off.')); 45 } 46 ); 47}); 48 49$(function () { 50 var menu_btn = $('.slidemenu-btn'); 51 var body = $(document.body); 52 var top = 0; 53 var menu_open = false; 54 55 menu_btn.on('click', function () { 56 if (!menu_open) { 57 top = $(window).scrollTop(); 58 } 59 $('.tel-btn').css('display', 'block'); 60 body.toggleClass('open'); 61 menu_btn.toggleClass('active'); 62 menu_open = true; 63 if (body.hasClass('open')) { 64 $('.tel-btn').css('display', 'none'); 65 body.css({ 66 'height': window.innerHeight, 67 'top': -top 68 }); 69 } else { 70 body.removeAttr('style'); 71 $(window).scrollTop(top); 72 menu_open = false; 73 } 74 }); 75}); 76 77 78//ã¯ãªãã¯ã§ç»å夿´ 79$(function () { 80 $('.slidemenu-btn').click(function () { 81 var img = $(this).children('img'); 82 if ($(this).hasClass('active')) { 83 $(img).attr('src', $(img).attr('src').replace('menu','close')); 84 } 85 else { 86 $(img).attr('src', $(img).attr('src').replace('close','menu')); 87 } 88 }); 89}); 90 91//ãããã¼ãåºå®ã®æã¹ããã®æã®ãã¼ã¸å ãªã³ã¯ç¨ 92$(function () { 93 $(document).on('ready', function() { 94 if (location.hash != "") { 95 var pos = $(location.hash).offset().top; 96 if (PC_FIXED && $(window).innerWidth() >= SP_WIDTH || SP_FIXED && $(window).innerWidth() < SP_WIDTH) { 97 pos -= $('header').innerHeight(); 98 $("html, body").animate({ scrollTop: pos }, 1, "swing"); 99 } 100 else { 101 return false; 102 } 103 } 104 }); 105}); 106 107//ãã³ãããªã¹ã第2éå±¤ç¨ 108$(function () { 109 $('.bread-crumbs li>a').each(function () {ãããã 110 if (location.pathname == ($(this).attr('href') + 'index.html')) {ãã 111 $(this).parent('li').remove();ãã 112 } 113 if ($(this).is(':empty')) { 114 $(this).parent('li').remove(); 115 } 116 }); 117});
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.