1/*! 2 * Custom JS 3 * @package Acme Themes 4 * @subpackage SuperNews 5 */ 6jQuery(document).ready(function($) { 7 $('.header-wrapper .menu').slicknav({ 8 allowParentLinks :true, 9 duration: 500, 10 prependTo: '.header-wrapper .responsive-slick-menu', 11 easingOpen: "swing", 12 'closedSymbol': '+', 13 'openedSymbol': '-' 14 }); 15 // ticker 16 $('.bn').show().bxSlider({ 17 speed: 1000, 18 auto: true, 19 controls: false, 20 pager: false, 21 autoHover : true, 22 mode:'fade' 23 }); 24 25 /*featured slider*/ 26 $('.at-home-slider').each(function(){ 27 home_bxslider = $(this); 28 home_bxslider.show().bxSlider({ 29 autoHover : true, 30 pager: false, 31 nextText: '<i class="fa fa-angle-right"></i>', 32 prevText: '<i class="fa fa-angle-left"></i>' 33 }); 34 }); 35 36 //for menu 37 $('.header-wrapper #site-navigation .menu-main-menu-container').addClass('clearfix'); 38 jQuery('.menu-item-has-children > a').click(function(){ 39 var at_this = jQuery(this); 40 if( at_this.hasClass('at-clicked')){ 41 return true; 42 } 43 var at_width = jQuery(window).width(); 44 if( at_width > 992 && at_width <= 1230 ){ 45 at_this.addClass('at-clicked'); 46 return false; 47 } 48 }); 49 50 /*sticky menu*/ 51 var menu_sticky_height = $('#masthead').height() - $('#site-navigation').height() - $('.main-navigation.trends').height(); 52 $(window).scroll(function(){ 53 if ( $(this).scrollTop() > menu_sticky_height) { 54 $('.supernews-enable-sticky-menu').css({"position": "fixed", "top": "0","right": "0","left": "0","z-index":'999'}); 55 $('.supernews-enable-sticky-menu .header-main-menu').css('margin','0 auto'); 56 } 57 else { 58 $('.supernews-enable-sticky-menu').removeAttr( 'style' ); 59 $('.supernews-enable-sticky-menu .header-main-menu').removeAttr( 'style' ); 60 } 61 if ( $(this).scrollTop() > menu_sticky_height) { 62 $('.sm-up-container').show(); 63 } 64 else { 65 $('.sm-up-container').hide(); 66 } 67 }); 68 //Sickey Sidebar 69 var at_body = $('body'); 70 if(at_body.hasClass('at-sticky-sidebar')){ 71 if(at_body.hasClass('both-sidebar')){ 72 $('#primary-wrap, #secondary-right, #secondary-left').theiaStickySidebar(); 73 } 74 else{ 75 $('.secondary-sidebar, #primary').theiaStickySidebar(); 76 } 77 } 78});
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.