1var $ = jQuery; 2$(document).ready(function () { 3 'use strict'; 4 // Ticker 5 if ($('#mb-newsTicker').length > 0) { 6 $('#mb-newsTicker').bxSlider({ 7 minSlides: 1, 8 maxSlides: 1, 9 speed: 3000, 10 mode: 'vertical', 11 auto: true, 12 controls: false, 13 pager: false 14 }); 15 } 16 17 var breaking_news_args = { 18 auto: true, 19 pager: false, 20 minSlides: 3, 21 maxSlides: 3, 22 speed: 3000, 23 moveSlides:1, 24 controls: true 25 }; 26 $('.breaking-news-slider').each(function () { 27 var duration, direction; 28 direction = $(this).data('direction'); 29 duration = $(this).data('duration'); 30 breaking_news_args.speed = duration; 31 breaking_news_args.mode = direction; 32 $(this).bxSlider(breaking_news_args); 33 }); 34 35 // Slider 36 if ($('.mantranewsSlider').length > 0) { 37 $('.mantranewsSlider').bxSlider({ 38 pager: false, 39 controls: true, 40 prevText: '<i class="fa fa-arrow-left"> </i>', 41 nextText: '<i class="fa fa-arrow-right"> </i>' 42 }); 43 } 44 //$('.mb-carousel-section').removeClass('mb-before-carousel-js-load'); 45 var mantranews_carousel = $('.mantranews-carousel'); 46 var mantranews_carousel_args = { 47 navigation: true, // Show next and prev buttons 48 slideSpeed: 300, 49 paginationSpeed: 400, 50 singleItem: true, 51 mouseDrag: false, 52 touchDrag: true, 53 margin: 10, 54 controls: true, 55 loop: true, 56 nav: false, 57 autoplayTimeout: 2200, 58 autoplay: true, 59 navText: ['<i class="fa fa-arrow-left"> </i>', '<i class="fa fa-arrow-right"> </i>'] 60 }; 61 if (mantranews_carousel.length > 0) { 62 mantranews_carousel.each(function () { 63 var items = $(this).parent().width() / 300; 64 mantranews_carousel_args.items = (items > 3) ? 3 : (items < 1) ? 1 : Math.floor(items); 65 var data_timer = undefined !== $(this).attr('data-timer') ? $(this).attr('data-timer') : 2200; 66 mantranews_carousel_args.autoplayTimeout = data_timer; 67 $(this).owlCarousel(mantranews_carousel_args); 68 }); 69 } 70 //Search toggle 71 $('.header-search-wrapper .search-main').click(function () { 72 $('.search-form-main').toggleClass('active-search'); 73 $('.search-form-main .search-field').focus(); 74 }); 75 76 //responsive menu toggle 77 $('.bottom-header-wrapper .menu-toggle').click(function () { 78 $('.bottom-header-wrapper #site-navigation').slideToggle('slow'); 79 }); 80 //responsive sub menu toggle 81 $('#site-navigation .menu-item-has-children').append('<span class="sub-toggle"> <i class="fa fa-angle-right"></i> </span>'); 82 $('#site-navigation .sub-toggle').click(function () { 83 $(this).parent('.menu-item-has-children').children('ul.sub-menu').first().slideToggle('1000'); 84 $(this).children('.fa-angle-right').first().toggleClass('fa-angle-down'); 85 }); 86 // Scroll To Top 87 $(window).scroll(function () { 88 if ($(this).scrollTop() > 700) { 89 $('#mb-scrollup').fadeIn('slow'); 90 } else { 91 $('#mb-scrollup').fadeOut('slow'); 92 } 93 }); 94 $('#mb-scrollup').click(function () { 95 $('html, body').animate({scrollTop: 0}, 600); 96 return false; 97 }); 98 //column block wrap js 99 var divs = $('section.mantranews_block_column'); 100 for (var i = 0; i < divs.length;) { 101 i += divs.eq(i).nextUntil(':not(.mantranews_block_column').andSelf().wrapAll('<div class="mantranews_block_column-wrap"> </div>').length; 102 } 103});
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.