1var $j = jQuery.noConflict(); 2 3$j(document).ready(function(){ 4 5 //Scroll to top 6 $j(window).scroll(function() { 7 if(jQuery(this).scrollTop() != 0) { 8 jQuery('#toTop').fadeIn(); 9 } else { 10 jQuery('#toTop').fadeOut(); 11 } 12 }); 13 14 $j('#toTop').click(function() { 15 jQuery('body,html').animate({scrollTop:0},800); 16 }); 17 18 //Top Menu 19 $j('ul.topNav').superfish({ 20 animation: {opacity:'show'}, 21 autoArrows: true, 22 dropShadows: true, 23 speed: 200, 24 delay: 10, 25 animation: {opacity:'show',height:'show'}, // fade-in and slide-down animatio 26 27 }); 28 29 //Main Menu 30 $j('ul.sf-menu').superfish({ 31 animation: {opacity:'show'}, 32 autoArrows: true, 33 dropShadows: true, 34 speed: 200, 35 delay: 10, 36 animation: {opacity:'show',height:'show'}, // fade-in and slide-down animatio 37 38 }); 39 40 // Move dropdown links on hover 41 $j(document).ready(function(){ 42 43 $j(".sf-menu ul a").css({ 44 paddingLeft: "15px", 45 backgroundPosition: "0px 12px" 46 }); 47 $j(".sf-menu ul a").hover(function() { 48 $j(this).stop().animate({ 49 paddingLeft: "25px", 50 backgroundPosition: "10px 12px" 51 }, 'fast'); 52 }, function() { 53 $j(this).stop().animate({ 54 paddingLeft: "15px", 55 backgroundPosition: "0px 12px" 56 }, 'fast'); 57 }); 58 }); 59 60 61 //Slider 62 $j('#slider').lofJSidernews({ 63 interval:6000, 64 easing:'easeInOutQuad', 65 duration:1200, 66 mainWidth: 643, 67 navigatorWidth: 315, 68 auto:true 69 }); 70 71 72 73 // Implementation of jCarouselLite 74 $j('.anyClass').each(function() { 75 var id = $j(this).attr('id'); 76 var number = id.replace('anyClass_', ''); 77 $j('#'+id).jCarouselLite({ 78 btnNext: "#next_"+number, 79 btnPrev: "#prev_"+number, 80 visible: 4, 81 scroll: 2 82 }); 83 }); 84 85 86 87 // Tabs 88 89 //When page loads... 90 $j('.tabs-wrapper').each(function() { 91 $j(this).find(".tab_content").hide(); //Hide all content 92 $j(this).find("ul.tabs li:first").addClass("active").show(); //Activate first tab 93 $j(this).find(".tab_content:first").show(); //Show first tab content 94 }); 95 96 //On Click Event 97 $j("ul.tabs li").click(function(e) { 98 $j(this).parents('.tabs-wrapper').find("ul.tabs li").removeClass("active"); //Remove any "active" class 99 $j(this).addClass("active"); //Add "active" class to selected tab 100 $j(this).parents('.tabs-wrapper').find(".tab_content").hide(); //Hide all tab content 101 102 var activeTab = $j(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content 103 $j(this).parents('.tabs-wrapper').find(activeTab).fadeIn(); //Fade in the active ID content 104 105 e.preventDefault(); 106 }); 107 108 $j("ul.tabs li a").click(function(e) { 109 e.preventDefault(); 110 }) 111 112 //Tooltips 113 tooltip($j); 114 115 $j(".toggle-content").hide(); 116 117 $j("h5.toggle").toggle(function(){ 118 $j(this).addClass("active"); 119 }, function () { 120 $j(this).removeClass("active"); 121 }); 122 123 $j("h5.toggle").click(function(){ 124 $j(this).next(".toggle-content").slideToggle(); 125 }); 126 127 //prettyPhoto 128 $j("a[rel^='prettyPhoto']").prettyPhoto(); 129 130});
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.