1 (function($) { 2 "use strict"; 3 var BREAKING = BREAKING || {}; 4 /* Headline Posts 5 ----------------------------------------------------------------*/ 6 BREAKING.headline = function () { 7 if ( $().slick ) { 8 $( '.breaking-headline-posts' ).each( function () { 9 var $this = $( this ); 10 $this.slick( { 11 dots : false, 12 infinite : true, 13 speed : $this.data( 'speed' ), 14 slidesToShow : 1, 15 slidesToScroll : 1, 16 vertical : true, 17 autoplay : $this.data( 'auto' ), 18 autoplaySpeed : $this.data( 'autotime' ), 19 nextArrow : '<button type="button" class="slick-next slick-nav"><i class="fa fa-angle-right"></i></button>', 20 prevArrow : '<button type="button" class="slick-prev slick-nav"><i class="fa fa-angle-left"></i></button>' 21 } ); // slick 22 23 $this.on( 'setPosition', function ( event, slick, direction ) { 24 $(window ).load( function() { 25 BREAKING.fixheadline(); 26 $this.parent().addClass( 'loaded' ); 27 } ); 28 } ); 29 } ); 30 } 31 } 32 /* Fix margin headline 33 ----------------------------------------------------------------*/ 34 BREAKING.fixheadline = function () { 35 var $headline_title = $( '.breaking-headline .headline-title' ); 36 if ( $headline_title.length ) { 37 var headline_w = $headline_title.outerWidth() + 70; 38 $('.breaking-headline-posts' ).css( 'margin-left', headline_w + 'px' ); 39 } 40 }/* Init functions 41 ---------------------------------------------------------------*/ 42 $(document).ready(function() { 43 BREAKING.headline(); 44 }); 45 })(jQuery);
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.