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 41//Sticky Header 42$(document).ready(function () { 43 var elementPosition = $(".sticky").offset(); 44 var navHeight = $(".sticky").height(); 45 var windowWidth = $(window).width(); 46 //var stickyHeader = $(".header").background(); 47 48 $(window).scroll(function () { 49 if ($(window).scrollTop() > elementPosition.top) { 50 $("body").css("margin-top", navHeight); 51 $(".sticky").css("position", "fixed").css("top", "0"); 52 53 if (windowWidth > 992) { 54 $(".header").css("background", "rgba(81, 81, 81, 0.8)"); 55 } 56 } else { 57 $("body").css("margin-top", "0"); 58 $(".sticky").css("position", "static"); 59 60 if (windowWidth > 992) { 61 $(".header").css("background", "transparent"); 62 } 63 } 64 }); 65}); 66 67///////////////////////////////////////////////////////////////////// 68// multifeed updates 69 /* 70 $(".multifeed .tab_content").hide(); //Hide all content 71 $(".multifeed .tabs li:first").addClass("active").show(); //Activate first tab 72 $(".multifeed .tab_content:first").show(); //Show first tab content 73 doHover = function() 74 { 75 clearTheFlipper(); 76 if($(this).hasClass('active')) { return false; } 77 $(".multifeed .tabs li").removeClass("active"); //Remove any "active" class 78 $(".multifeed .tabs li > a").removeClass("active"); //Remove any "active" class 79 $(this).addClass("active"); //Add "active" class to selected tab 80 $(this).children("a").addClass("active"); //Add "active" class to selected tab link 81 theCount = $(this).index() + 1; 82 $(".multifeed .tab_content").hide(); //Hide all tab content 83 var activeTab = $(this).find("a").attr("rel"); //Find the rel attribute value to identify the active tab + content 84 $(activeTab).fadeIn(); //Fade in the active content 85 return false; 86 } 87 88 theCount = 1; 89 tabFlip = function() 90 { 91 var tabs = $('.multifeed .tabs li'); 92 var tabCount = tabs.length; 93 var count = theCount % tabCount; 94 $(tabs).removeClass("active"); //Remove any "active" class 95 $(".multifeed .tabs li > a").removeClass("active"); //Remove any "active" class 96 $(tabs[count]).addClass("active"); //Add "active" class to selected tab 97 $(tabs[count]).children("a").addClass("active"); //Add "active" class to selected tab 98 $(".multifeed .tab_content").hide(); //Hide all tab content 99 var activeTab = $(tabs[count]).find("a").attr("rel"); //Find the rel attribute value to identify the active tab + content 100 $(activeTab).fadeIn(); //Fade in the active content 101 theCount++; 102 } 103 setTheFlipper = function() { interval = setInterval(tabFlip, flipTime); } 104 clearTheFlipper = function() { interval = clearInterval(interval); } 105 flipTime = 6000; 106 $(".multifeed .tabs li").hover(doHover, setTheFlipper); 107 $('.multifeed .tab_container').hover(clearTheFlipper, setTheFlipper); 108 setTheFlipper(); 109 110 */ 111///////////////////////////////////////////////////////////////////// 112// Flexslider - jquery.flexslider.js 113/*$(document).ready(function() { 114 $('#flexslider').flexslider({ 115 animation: "fade", 116 slideshow: true, 117 slideshowSpeed: 7000, 118 animationDuration: 600, 119 pauseOnAction: true, 120 prevText: "", 121 nextText: "", 122 controlNav: false, 123 directionNav: true 124 }); 125}); 126 127$('.slides').ready(function () { 128 $('.preload').fadeOut(1800, function () { 129 $(this).remove(); 130 }); 131 //$('#slider').delay( 2000 ).removeClass('load'); 132}); 133var loadheight = $('#flexslider').css('height'); 134$('load').css('min-height', loadheight);*/ 135 136///////////////////////////////////////////////////////////////////// 137// Find all iframes 138/*$(document).ready(function () { 139 var iframes = $("iframe"); 140 141 // Find and save the aspect ratio for all iframes 142 iframes.each(function () { 143 $(this).data("ratio", this.height / this.width) 144 // Remove the hardcoded width and height attributes 145 .removeAttr("width") 146 .removeAttr("height"); 147 }); 148 149 // Resize the iframes when the window is resized 150 $(window).resize(function () { 151 iframes.each(function () { 152 // Get the parent container's width 153 var width = $(this).parent().width(); 154 console.log(width); 155 $(this).width(width) 156 .height(width * $(this).data("ratio")); 157 }); 158 // Resize to fix all iframes on page load. 159 }).resize(); 160 161});*/ 162 163///////////////////////////////////////////////////////////////////// 164// Headlines - webticker.min.js 165/*$(document).ready(function () { 166 $('#headlines').webTicker({ 167 duplicate: true 168 }); 169});*/ 170 171}); //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.