1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opens = _____WB$wombat$assign$function_____("opens"); 10(function () { 11 $.fn.infiniteCarousel = function () { 12 13 14 return this.each(function () { 15 // magic! 16 var $wrapper = $('> div', this).css('overflow', 'hidden'), 17 $slider = $wrapper.find('> ul'), 18 $items = $slider.find('> li'), 19 $single = $items.filter(':first'), 20 21 singleWidth = $single.outerWidth(), 22 currentPage = 1, 23 page_size = $items.length, 24 self = this; 25 $slider.find('> li').hide(); 26 $slider.find('> li').eq(currentPage - 1).show(); 27 28 29 /* TASKS */ 30 31 32 // paging function 33 function gotoPage(obj_pages, page) { 34 currentPage = page; 35 36 if (currentPage > page_size){ 37 currentPage = 1; 38 } 39 40 if (currentPage == 0){ 41 currentPage = 6; 42 } 43 44 //animation 45 $slider.find('> li').eq(page).hide() 46 $slider.find('> li').css('zIndex',1); 47 $slider.find('> li').eq(currentPage - 1).css('zIndex', 9); 48 $slider.find('> li').eq(currentPage - 1).fadeIn('slow', function(){ 49 50 //move page number 51 obj_pages.removeClass('current'); 52 obj_pages.eq(currentPage - 1).addClass('current'); 53 $slider.find('> li').hide(); 54 $slider.find('> li').eq(currentPage - 1).show(); 55 56 //show the content 57 $(self).parent().find('.context').removeClass('active'); 58 $(self).parent().find('.context').eq(currentPage-1).addClass('active'); 59 60 }); 61 62 63 64 } 65 66 // 5. insert the back and forward link & pagination 67 68 69 var page_str ='<div class="pagination">'; 70 71 for (var p_i = 0; p_i < page_size; p_i++){ 72 if (p_i == 0){ 73 page_str += '<a href="#" class="current">'+ (p_i + 1) +'</a>'; 74 } 75 else { 76 page_str += '<a href="#">'+ (p_i + 1) +'</a>'; 77 } 78 79 } 80 81 page_str += '</div>'; 82 $wrapper.after(page_str); 83 $wrapper.after('<div class="arrow"><a href="#" class="prev">Previous</a><a href="#" class="next">Next</a></div>'); 84 85 86 var obj_pages = $('.pagination a', this); 87 88 // 6. bind the back and forward links & pagination 89 $('a.prev', this).click(function () { 90 gotoPage(obj_pages, currentPage - 1); 91 $(self).unbind('next'); 92 return false; 93 }); 94 95 $('a.next', this).click(function () { 96 gotoPage(obj_pages, currentPage + 1); 97 $(self).unbind('next'); 98 return false; 99 }); 100 101 obj_pages.each(function(i){ 102 $(this).click(function(){ 103 gotoPage(obj_pages, parseInt($(this).html())); 104 $(self).unbind('next'); 105 obj_pages.removeClass('current'); 106 $(this).addClass('current'); 107 return false;
108 }); 109 }) 110 111 $(this).bind('goto', function (event, page) { 112 gotoPage(); 113 }); 114 115 // THIS IS NEW CODE FOR THE AUTOMATIC INFINITE CAROUSEL 116 117 $(this).bind('next', function () { 118 gotoPage(obj_pages, currentPage + 1); 119 }); 120 121 122 }); 123 }; 124})(jQuery); 125 126} 127/* 128 FILE ARCHIVED ON 20:22:58 Feb 18, 2012 AND RETRIEVED FROM THE 129 INTERNET ARCHIVE ON 11:42:43 Jan 08, 2026. 130 JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. 131 132 ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. 133 SECTION 108(a)(3)). 134*/ 135/* 136playback timings (ms): 137 captures_list: 0.431 138 exclusion.robots: 0.013 139 exclusion.robots.policy: 0.007 140 esindex: 0.008 141 cdx.remote: 24.743 142 LoadShardBlock: 118.823 (3) 143 PetaboxLoader3.datanode: 111.591 (4) 144 PetaboxLoader3.resolve: 55.838 (2) 145 load_resource: 82.127 146*/
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.