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 03:03:37 Aug 03, 2016 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 10:12:17 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: 1277.028 (3) esindex: 0.01 captures_list: 1422.472 CDXLines.iter: 21.226 (3) PetaboxLoader3.datanode: 929.507 (5) exclusion.robots.fetch: 117.959 (4) exclusion.robots: 118.833 exclusion.robots.policy: 0.422 RedisCDXSource: 0.621 PetaboxLoader3.resolve: 507.34 (3) load_resource: 427.255 *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 03:03:37 Aug 03, 2016 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 10:12:17 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: 1277.028 (3) esindex: 0.01 captures_list: 1422.472 CDXLines.iter: 21.226 (3) PetaboxLoader3.datanode: 929.507 (5) exclusion.robots.fetch: 117.959 (4) exclusion.robots: 118.833 exclusion.robots.policy: 0.422 RedisCDXSource: 0.621 PetaboxLoader3.resolve: 507.34 (3) load_resource: 427.255 */