1// JavaScript Document 2$(function() { 3 var images = $("img"); 4 for(var i=0; i < images.size(); i++) { 5 if(images.eq(i).attr("src").match("_off.")) { 6 $("img").eq(i).hover(function() { 7 $(this).attr('src', $(this).attr("src").replace("_off.", "_on.")); 8 }, function() { 9 $(this).attr('src', $(this).attr("src").replace("_on.", "_off.")); 10 }); 11 } 12 } 13 14 15 $('#sp_nav > a').on('click', function() { 16 $('#sp_menu').slideToggle(); 17 return false; 18 }); 19 20 21 // #ã§å§ã¾ãã¢ã³ã«ã¼ãã¯ãªãã¯ããå ´åã«å¦ç 22 $('a[href^=#]').click(function() { 23 // ã¹ã¯ãã¼ã«ã®é度 24 var speed = 400; // ããªç§ 25 // ã¢ã³ã«ã¼ã®å¤åå¾ 26 var href= $(this).attr("href"); 27 // ç§»åå ãåå¾ 28 var target = $(href == "#" || href == "" ? 'html' : href); 29 // ç§»åå ãæ°å¤ã§åå¾ 30 var position = target.offset().top; 31 // ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 32 $('body,html').animate({scrollTop:position}, speed, 'swing'); 33 return false; 34 }); 35 36 37});
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.