1/* ãã¼ã¸å ãªã³ã¯ã®å¦ç */ 2$(function(){ 3 // #ã§å§ã¾ãã¢ã³ã«ã¼ãã¯ãªãã¯ããå ´åã«å¦ç 4 $('a.pagelink[href^=#]').click(function() { 5 // ã¹ã¯ãã¼ã«ã®é度 6 var speed = 400; // ããªç§ 7 // ã¢ã³ã«ã¼ã®å¤åå¾ 8 var href= $(this).attr("href"); 9 // ç§»åå ãåå¾ 10 var target = $(href == "#" || href == "" ? 'html' : href); 11 // ç§»åå ãæ°å¤ã§åå¾ 12 var position = target.offset().top; 13 // ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 14 $('body,html').animate({scrollTop:position}, speed, 'swing'); 15 return false; 16 }); 17}); 18 19/* .imghover ããã¼ããæã®å¦ç */ 20$(function(){ 21 $('.imghover').live('mouseenter',function(){ 22 $(this).not(':animated').animate({'opacity':'0.7'},{duration:200}); 23 }); 24 $('.imghover').live('mouseleave',function(){ 25 $(this).animate({'opacity':'1'},{duration:200}); 26 }); 27}); 28 29/* .imgchange ããã¼ããæã®å¦çï¼ç»å夿´ï¼ */ 30//ç»åã«ç´æ¥ä»ããå ´å 31 32$(function(){ 33 $('.imgchange').mouseenter(function(){ 34 if(!$(this).hasClass('active')){ 35 $(this).attr('src',$(this).attr('src').replace('.jpg','_on.jpg')); 36 $(this).attr('src',$(this).attr('src').replace('.gif','_on.gif')); 37 $(this).attr('src',$(this).attr('src').replace('.png','_on.png')); 38 }; 39 }); 40 $('.imgchange').mouseleave(function(){ 41 if(!$(this).hasClass('active')){ 42 $(this).attr('src',$(this).attr('src').replace('_on.jpg','.jpg')); 43 $(this).attr('src',$(this).attr('src').replace('_on.gif','.gif')); 44 $(this).attr('src',$(this).attr('src').replace('_on.png','.png')); 45 }; 46 }); 47}); 48 49/*ãããã¼ã®è¿½å°¾*/ 50$(function(){ 51 $(".header-menu").hide(); 52 $(".header-gnav").hover(function(){ 53 $(this).find(".header-menu").stop().show(); 54 },function(){ 55 $(this).find(".header-menu").stop().hide(); 56 }); 57}); 58 59/*ãµã¤ãã¢ã³ã¼ãã£ãªã³*/ 60$(function(){ 61 $("#m-accordion dt").on("click", function() { 62 $(this).next().slideToggle(); 63 $(this).toggleClass("active");//追å é¨å 64 }); 65}); 66 67 68$(document).ready(function(){ 69 70 $(".m-pagetop").hide(); 71 // âãã¼ã¸ããããã¿ã³ãé表示ã«ãã 72 73 $(window).on("scroll", function() { 74 75 if ($(this).scrollTop() > 100) { 76 // â ã¹ã¯ãã¼ã«ä½ç½®ã100ãããå°ããå ´åã«ä»¥ä¸ã®å¦çããã 77 $('.m-pagetop').slideDown("fast"); 78 // â (100ããå°ããæã¯)ãã¼ã¸ããããã¿ã³ãã¹ã©ã¤ããã¦ã³ 79 } else { 80 $('.m-pagetop').slideUp("fast"); 81 // â ãã以å¤ã®å ´åã®å ´åã¯ã¹ã©ã¤ãã¢ããããã 82 } 83 84 // ããã¿ã¼åºå®ãã 85 86 scrollHeight = $(document).height(); 87 // ããã¥ã¡ã³ãã®é«ã 88 scrollPosition = $(window).height() + $(window).scrollTop(); 89 //ãã¦ã£ã³ãã¦ã®é«ã+ã¹ã¯ãã¼ã«ããé«ãâãç¾å¨ã®ãããããã®ä½ç½® 90 footHeight = $("footer").innerHeight(); 91 // ããã¿ã¼ã®é«ã 92 93 if ( scrollHeight - scrollPosition <= footHeight ) { 94 // ç¾å¨ã®ä¸ããä½ç½®ããããã¿ã¼ã®é«ãã®ä½ç½®ã«ã¯ãã£ãã 95 // ".m-pagetop"ã®positionãabsoluteã«å¤æ´ããããã¿ã¼ã®é«ãã®ä½ç½®ã«ãã 96 $(".m-pagetop").css({ 97 "position":"fixed", 98 "right" : "4%" , 99 "bottom": "0" 100 }); 101 } else { 102 // ãã以å¤ã®å ´åã¯å ã®cssã¹ã¿ã¤ã«ãæå® 103 $(".m-pagetop").css({ 104 "position":"fixed", 105 "right" : "4%" , 106 "bottom": "0px" 107 }); 108 } 109 }); 110 111 // ãããã¸ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 112 $('.m-pagetop a').click(function () { 113 $('body,html').animate({ 114 scrollTop: 0 115 }, 500); 116 // ãã¼ã¸ã®ããã㸠500 ã®ã¹ãã¼ãã§ã¹ã¯ãã¼ã«ãã 117 return false; 118 }); 119 120}); 121 122$(function(){ 123 // ãããã¸ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 124 $('.m-pagetop a').click(function () { 125 $('body,html').animate({ 126 scrollTop: 0 127 }, 500); 128 // ãã¼ã¸ã®ããã㸠500 ã®ã¹ãã¼ãã§ã¹ã¯ãã¼ã«ãã 129 return false;
130 }); 131});
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.