1$.fn.extend({ 2 slidebreadcrumbslist: function(options) { 3 4 //optionsã®ããã©ã«ãå¤ 5 var optionsDefaults = { 6 speed: 500, 7 delay: 50, 8 interval: 200, 9 fadein: "slow" 10 } 11 12 //optionsããªãå ´åããã©ã«ãå¤ã«ç½®ãæãã 13 for (var key in options){ 14 if(!options[key] && options[key] != 0){ 15 options[key] = optionsDefaults[key]; 16 } 17 } 18 19 //liè¦ç´ ãåå¾ 20 var list = $(this).find("li"); 21 22 //æå¤§ã®é«ãç¨å¤æ°ãå®ç¾© 23 var maxHeight = list.first().outerHeight(); 24 25 //liè¦ç´ ã®é ç½®ã¨éãªãé ãè¨å®ããæå¤§ã®é«ããæ±ãã 26 list.each(function(i){ 27 $(this).css("z-index",list.length - i) 28 .css("position","absolute") 29 .css("left", -$(this).width()) 30 .css("margin-top", -$(this).height()/2) 31 .css("top", "50%"); 32 if($(this).height() > maxHeight) { 33 maxHeight = $(this).height(); 34 } 35 }); 36 37 //ulè¦ç´ ã®positionè¨å® 38 if($(this).css("position") != "absolute" && $(this).css("position") != "relative"){ 39 $(this).css("position","relative"); 40 } 41 //ulè¦ç´ ã®é«ãã®è¨å® 42 if($(this).height() < 1){ 43 $(this).css("height",maxHeight+"px"); 44 } 45 $(this).css("overflow","hidden"); 46 47 //ã«ã¹ã¿ã ã¤ãã³ããbindãã 48 list.unbind("slideComplete"); 49 list.bind("slideComplete",function(event, time){ 50 51 //ã¹ã©ã¤ãçµäºã®åº§æ¨ãæ±ãã 52 var offset; 53 if($(this).prev().size()){ 54 offset = $(this).prev().position().left + $(this).prev().outerWidth(); 55 }else{ 56 offset = 0; 57 } 58 59 //ã¹ã©ã¤ãéå§ä½ç½®ã¸ç§»å 60 $(this).css("left", offset - $(this).outerWidth()); 61 62 //ã¹ã©ã¤ãéå§ 63 $(this).delay(time).animate({ 64 left: offset + "px" 65 }, options.speed, options.easing, function(){ 66 if($(this).next().size()){ 67 $(this).next().trigger("slideComplete",[options.interval]); 68 } else { 69 //ã¹ã©ã¤ãããã¹ã¦çµäºãããã¨ã®å¦ç; 70 } 71 }); 72 }); 73 74 //ååå®è¡ 75 list.first().trigger("slideComplete",[options.delay]); 76 77 } 78}); 79 80$(document).ready(function() { 81 $("#breadcrumbslist").slidebreadcrumbslist({ 82 speed: 700, 83 delay: 0, 84 interval: 0, 85 easing: "swing" 86 }); 87});
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.