1$(document).ready(function () { 2///////////////////////////////////////////////////////////////////// 3// Headline Scroller - jquery-scroller-v1.js 4 $('.horizontal_scroller').SetScroller({ 5 velocity: 76, 6 direction: 'horizontal', 7 startfrom: 'right', 8 loop: 'infinite', 9 onmouseover: 'play', 10 onmouseout: 'play', 11 onstartup: 'play', 12 cursor: 'default' 13 }); 14 15///////////////////////////////////////////////////////////////////// 16// Flash Gallery - slick.min.js 17 $('.flash-gallery').slick({ 18 infinite: true, 19 autoplay: true, 20 autoplaySpeed: 6000, 21 adaptiveHeight: true, 22 slidesToShow: 1, 23 slidesToScroll: 1, 24 asNavFor: '.flash-thumb' 25 }); 26 27 $('.flash-thumb').slick({ 28 slidesToShow: 4, 29 slidesToScroll: 1, 30 asNavFor: '.flash-gallery', 31 centerMode: false, 32 focusOnSelect: true, 33 arrows: false 34 }); 35 36 $('.flash-gallery').delay( 2000 ).removeClass('load'); 37 $('.flash-thumb').delay( 2000 ).removeClass('load-thumb'); 38 39///////////////////////////////////////////////////////////////////// 40// multifeed updates 41 /* 42 $(".multifeed .tab_content").hide(); //Hide all content 43 $(".multifeed .tabs li:first").addClass("active").show(); //Activate first tab 44 $(".multifeed .tab_content:first").show(); //Show first tab content 45 doHover = function() 46 { 47 clearTheFlipper(); 48 if($(this).hasClass('active')) { return false; } 49 $(".multifeed .tabs li").removeClass("active"); //Remove any "active" class 50 $(".multifeed .tabs li > a").removeClass("active"); //Remove any "active" class 51 $(this).addClass("active"); //Add "active" class to selected tab 52 $(this).children("a").addClass("active"); //Add "active" class to selected tab link 53 theCount = $(this).index() + 1; 54 $(".multifeed .tab_content").hide(); //Hide all tab content 55 var activeTab = $(this).find("a").attr("rel"); //Find the rel attribute value to identify the active tab + content 56 $(activeTab).fadeIn(); //Fade in the active content 57 return false; 58 } 59 60 theCount = 1; 61 tabFlip = function() 62 { 63 var tabs = $('.multifeed .tabs li'); 64 var tabCount = tabs.length; 65 var count = theCount % tabCount; 66 $(tabs).removeClass("active"); //Remove any "active" class 67 $(".multifeed .tabs li > a").removeClass("active"); //Remove any "active" class 68 $(tabs[count]).addClass("active"); //Add "active" class to selected tab 69 $(tabs[count]).children("a").addClass("active"); //Add "active" class to selected tab 70 $(".multifeed .tab_content").hide(); //Hide all tab content 71 var activeTab = $(tabs[count]).find("a").attr("rel"); //Find the rel attribute value to identify the active tab + content 72 $(activeTab).fadeIn(); //Fade in the active content 73 theCount++; 74 } 75 setTheFlipper = function() { interval = setInterval(tabFlip, flipTime); } 76 clearTheFlipper = function() { interval = clearInterval(interval); } 77 flipTime = 6000; 78 $(".multifeed .tabs li").hover(doHover, setTheFlipper); 79 $('.multifeed .tab_container').hover(clearTheFlipper, setTheFlipper); 80 setTheFlipper(); 81 82 */ 83///////////////////////////////////////////////////////////////////// 84// Flexslider - jquery.flexslider.js 85/*$(document).ready(function() { 86 $('#flexslider').flexslider({ 87 animation: "fade", 88 slideshow: true, 89 slideshowSpeed: 7000, 90 animationDuration: 600, 91 pauseOnAction: true, 92 prevText: "", 93 nextText: "", 94 controlNav: false, 95 directionNav: true 96 }); 97}); 98 99$('.slides').ready(function () { 100 $('.preload').fadeOut(1800, function () { 101 $(this).remove(); 102 }); 103 //$('#slider').delay( 2000 ).removeClass('load'); 104}); 105var loadheight = $('#flexslider').css('height'); 106$('load').css('min-height', loadheight);*/ 107 108///////////////////////////////////////////////////////////////////// 109// Find all iframes 110/*$(document).ready(function () { 111 var iframes = $("iframe"); 112 113 // Find and save the aspect ratio for all iframes 114 iframes.each(function () { 115 $(this).data("ratio", this.height / this.width) 116 // Remove the hardcoded width and height attributes 117 .removeAttr("width") 118 .removeAttr("height"); 119 }); 120 121 // Resize the iframes when the window is resized 122 $(window).resize(function () { 123 iframes.each(function () { 124 // Get the parent container's width 125 var width = $(this).parent().width(); 126 console.log(width); 127 $(this).width(width) 128 .height(width * $(this).data("ratio")); 129 }); 130 // Resize to fix all iframes on page load. 131 }).resize(); 132 133});*/ 134 135///////////////////////////////////////////////////////////////////// 136// Headlines - webticker.min.js 137/*$(document).ready(function () { 138 $('#headlines').webTicker({ 139 duplicate: true 140 }); 141});*/ 142 143}); //end document.ready
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.