jQuery(document).ready(function() { slide(".sidebar-box", 4, 0, 150, .6); }); function slide(navigation_id, pad_out, pad_in, time, multiplier) { // creates the target paths var list_elements = navigation_id + " li"; var link_elements = list_elements + " a"; // initiates the timer used for the sliding animation var timer = 0; // creates the slide animation for all list elements jQuery(list_elements).each(function(i) { // margin left = - ([width of element] + [total vertical padding of element]) jQuery(this).css("margin-left","-180px"); // updates timer timer = (timer*multiplier + time); jQuery(this).animate({ marginLeft: "0" }, timer); jQuery(this).animate({ marginLeft: "10px" }, timer); jQuery(this).animate({ marginLeft: "0" }, timer); }); // creates the hover-slide effect for all link elements jQuery(link_elements).each(function(i) { jQuery(this).hover( function() { jQuery(this).animate({ paddingLeft: pad_out }, 150); }, function() { jQuery(this).animate({ paddingLeft: pad_in }, 150); }); }); } /* FILE ARCHIVED ON 02:42:58 Jan 23, 2015 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 10:21:38 Jul 19, 2018. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): LoadShardBlock: 93.791 (3) esindex: 0.007 captures_list: 208.838 CDXLines.iter: 13.013 (3) PetaboxLoader3.datanode: 103.97 (4) exclusion.robots.fetch: 91.14 (4) exclusion.robots: 91.835 exclusion.robots.policy: 0.341 RedisCDXSource: 7.596 PetaboxLoader3.resolve: 118.844 load_resource: 174.515 *lide(".sidebar-box", 4, 0, 150, .6); }); function slide(navigation_id, pad_out, pad_in, time, multiplier) { // creates the target paths var list_elements = navigation_id + " li"; var link_elements = list_elements + " a"; // initiates the timer used for the sliding animation var timer = 0; // creates the slide animation for all list elements jQuery(list_elements).each(function(i) { // margin left = - ([width of element] + [total vertical padding of element]) jQuery(this).css("margin-left","-180px"); // updates timer timer = (timer*multiplier + time); jQuery(this).animate({ marginLeft: "0" }, timer); jQuery(this).animate({ marginLeft: "10px" }, timer); jQuery(this).animate({ marginLeft: "0" }, timer); }); // creates the hover-slide effect for all link elements jQuery(link_elements).each(function(i) { jQuery(this).hover( function() { jQuery(this).animate({ paddingLeft: pad_out }, 150); }, function() { jQuery(this).animate({ paddingLeft: pad_in }, 150); }); }); } /* FILE ARCHIVED ON 02:42:58 Jan 23, 2015 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 10:21:38 Jul 19, 2018. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): LoadShardBlock: 93.791 (3) esindex: 0.007 captures_list: 208.838 CDXLines.iter: 13.013 (3) PetaboxLoader3.datanode: 103.97 (4) exclusion.robots.fetch: 91.14 (4) exclusion.robots: 91.835 exclusion.robots.policy: 0.341 RedisCDXSource: 7.596 PetaboxLoader3.resolve: 118.844 load_resource: 174.515 */