1/** 2PowerMag custom js 3version 1.0.0 4*/ 5//Stickybar 6(function($) { 7 8 "use strict"; 9 10//Submenu Dropdown Toggle 11if($('li.menu-item-has-children ul').length){ 12 $('li.menu-item-has-children').append('<div class="cl_drop_menu"><i class="fa fa-angle-down"></i></div>'); 13 14 //Dropdown Button 15 $('.cl_drop_menu').on('click', function() { 16 $(this).prev('ul').slideToggle(500); 17 if($(this).children('.fa').hasClass('fa-angle-up')) 18 { 19 $(this).children('.fa').removeClass('fa-angle-up'); 20 $(this).children('.fa').addClass('fa-angle-down'); 21 } 22 else{ 23 $(this).children('.fa').removeClass('fa-angle-down'); 24 $(this).children('.fa').addClass('fa-angle-up'); 25 } 26 27 }); 28 29 30} 31 32 33/*$('.featured_fullwidth_layout_thumbnail_wrapper').hover(function(){ 34 $(this).find('.pm_featured_fullwidth_title').slideToggle('normal'); 35});*/ 36if($('.main-navigation').length){ 37 var stickyNavTop = $('.main-navigation').offset().top; 38 var stickyNav = function(){ 39 var scrollTop = $(window).scrollTop(); 40 if (scrollTop > stickyNavTop) { 41 $('.main-navigation').addClass('sticky'); 42 } else { 43 $('.main-navigation').removeClass('sticky'); 44 } 45 }; 46 stickyNav(); 47 $(window).scroll(function() { 48 stickyNav(); 49 }); 50 } 51 52// Search Toggle 53$(function() { 54 $(".pm_header_search i").hover(function() { 55 $(".pm_header_search .search-form .search-field").fadeIn("fast"); 56 $(".pm_header_search").addClass('hover_active'); 57 }); 58}); 59 60
61 $(document).click(function(event) { 62 if(!$(event.target).closest('.pm_header_search').length && !$(event.target).is('.pm_header_search')) { 63 if($('.pm_header_search').hasClass('hover_active')) { 64 $(".pm_header_search .search-form .search-field").fadeIn("fast"); 65 $('.pm_header_search').removeClass('hover_active') 66 } 67 } 68}); 69 70$('.featured_fullwidth_layout_thumbnail_wrapper').hover(function() { 71 //alert('test'); 72 //$(this).find('.pm_featured_fullwidth_title>h6>a').slideToggle(300); 73}); 74 75 76// News Ticker 77 $('.newsticker').newsTicker({ 78 row_height: 28, 79 max_rows: 1, 80 speed: 1000, 81 direction: 'down', 82 duration: 4000, 83 autostart: 1, 84 pauseOnHover: 1 85 }); 86 87 88 89 90$('.pm_footer_wrapper .pm_footer .power_mag_featured_fullwidth .widget_fullwidth_featured_layout_container .owl-carousel').owlCarousel({ 91 autoplay:true, 92 items: 1, 93 loop:false, 94 margin:24, 95 nav:false, 96 dots:false, 97 smartSpeed: 1000 98}); 99 100 101$('.pm_home_top_sidebar .power_mag_featured_fullwidth .widget_fullwidth_featured_layout_container .owl-carousel').owlCarousel({ 102 autoplay:true, 103 items: 1, 104 loop:false, 105 margin:24, 106 nav:false, 107 dots:false, 108 smartSpeed: 1000 109}); 110 111 112$('.pm_home_header_right_area .power_mag_featured_fullwidth .widget_fullwidth_featured_layout_container .owl-carousel').owlCarousel({ 113 autoplay:true, 114 items: 1, 115 loop:false, 116 margin:24, 117 nav:false, 118 dots:false, 119 smartSpeed: 1000 120}); 121 122 123$('.pm_home_both_column_wrapper .power_mag_featured_fullwidth .widget_fullwidth_featured_layout_container .owl-carousel').owlCarousel({ 124 autoplay:true, 125 items: 1, 126 loop:false, 127 margin:24, 128 nav:false, 129 dots:false, 130 smartSpeed: 1000 131}); 132$('#secondary .owl-carousel').owlCarousel({ 133 items:1, 134 autoplay:true, 135 smartSpeed: 1000 136}); 137 138$('.pm_footer .owl-carousel').owlCarousel({ 139 items:1, 140 autoplay:true, 141 smartSpeed: 1000 142}); 143 144 145$('.owl-carousel').owlCarousel({ 146 autoplay:true, 147 items: 3, 148 loop:false, 149 margin:24, 150 nav:false, 151 dots:false, 152 smartSpeed: 1000, 153 responsive:{ 154 0:{ 155 items:1 156 }, 157 300:{ 158 items:1 159 }, 160 600:{ 161 items:1 162 }, 163 1000:{ 164 items:3 165 } 166 } 167}); 168 169//post tabs 170 171$('.cc-tabs li').click(function(event) { 172 var tabClass = $(this).attr('data-tab'); 173 174 $(this).parents('.cc_recent_popular_post1').children('.tab-content').hide(); 175 $(this).parents('.cc_recent_popular_post1').children('.content-'+tabClass).slideDown(700); 176 $(this).parents('.cc_recent_popular_post1').find('.cc-widget-title').children('li').removeClass('current'); 177 $(this).addClass('current'); 178 }); 179 180 181 182 //wow 183 var wow = new WOW({ 184 animateClass: 'animated' 185 }); 186 wow.init(); 187 188})(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.