1 2/*** 3 Simple jQuery Slideshow Script 4 Released by Jon Raasch (jonraasch.com) under FreeBSD license: free to use or modify, not responsible for anything, etc. Please link out to me if you like it :) 5***/ 6 7function slideSwitch() { 8 var $active = $('#slideshow IMG.active'); 9 if ( $active.length == 0 ) $active = $('#slideshow IMG:last'); 10 // use this to pull the images in the order they appear in the markup 11 var $next = $active.next().length ? $active.next() 12 : $('#slideshow IMG:first'); 13 // uncomment the 3 lines below to pull the images in random order 14 // var $sibs = $active.siblings(); 15 // var rndNum = Math.floor(Math.random() * $sibs.length ); 16 // var $next = $( $sibs[ rndNum ] ); 17 $active.addClass('last-active'); 18 $next.css({opacity: 0.0}) 19 .addClass('active') 20 .animate({opacity: 1.0}, 1500, function() { 21 $active.removeClass('active last-active'); 22 }); 23} 24 25$(function() { 26 setInterval( "slideSwitch()", 4000 ); 27}); 28 29 30 31 32$(function(){ 33 // #ã§å§ã¾ãã¢ã³ã«ã¼ãã¯ãªãã¯ããå ´åã«å¦ç 34 $('a[href^=#]').click(function() { 35 // ã¹ã¯ãã¼ã«ã®é度 36 var speed = 200;// ããªç§ 37 // ã¢ã³ã«ã¼ã®å¤åå¾ 38 var href= $(this).attr("href"); 39 // ç§»åå ãåå¾ 40 var target = $(href == "#" || href == "" ? 'html' : href); 41 // ç§»åå ãæ°å¤ã§åå¾ 42 var position = target.offset().top; 43 // ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 44 $($.browser.safari ? 'body' : 'html').animate({scrollTop:position}, speed, 'swing'); 45 return false; 46 }); 47});
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.