1(function($) { 2 'use strict'; 3 //Header Search 4 if($('.zk-search').length) { 5 $('.zk-search').on('click', function() { 6 $('body').addClass('search-active'); 7 }); 8 $('.zk-search-close').on('click', function() { 9 $('body').removeClass('search-active'); 10 }); 11 } 12 13 14 15 /* Portfolio Isotope */ 16 $('.image_load').imagesLoaded(function() { 17 18 if ($.fn.isotope) { 19 20 var $portfolio = $('.image_load'); 21 22 $portfolio.isotope({ 23 24 itemSelector: '.grid-item', 25 26 filter: '*', 27 28 resizesContainer: true, 29 30 layoutMode: 'masonry', 31 32 transitionDuration: '0.8s' 33 34 }); 35 $('.menu-filtering li').on('click', function() { 36 37 $('.menu-filtering li').removeClass('current_menu_item'); 38 39 $(this).addClass('current_menu_item'); 40 41 var selector = $(this).attr('data-filter'); 42 43 $portfolio.isotope({ 44 45 filter: selector, 46 47 }); 48 49 }); 50 51 }; 52 53 }); 54 55 // Venubox 56 57 $('.venobox').venobox({ 58 59 numeratio: true, 60 61 infinigall: true 62 63 }); 64 65 // to wow Jquery 66 new WOW().init(); 67 68 69 70 // slider Active 71 $('.scren_list').owlCarousel({ 72 loop: true, 73 autoplay: true, 74 autoplayTimeout: 10000, 75 dots: true, 76 dotsEach: true, 77 nav: false, 78 navText: ["<i class='fa fa-long-arrow-left''></i>", "<i class='fa fa-long-arrow-right''></i>"], 79 responsive: { 80 0: { 81 items: 1 82 }, 83 768: { 84 items: 3 85 }, 86 992: { 87 items: 4 88 }, 89 1000: { 90 items: 5 91 }, 92 1920: { 93 items: 5 94 } 95 } 96 }) 97 98 99 // slider Active 100 $('.brand_list').owlCarousel({ 101 loop: true, 102 autoplay: true, 103 autoplayTimeout: 10000, 104 dots: true, 105 dotsEach: true, 106 nav: false, 107 navText: ["<i class='fa fa-long-arrow-left''></i>", "<i class='fa fa-long-arrow-right''></i>"], 108 responsive: { 109 0: { 110 items: 1 111 }, 112 768: { 113 items: 3 114 }, 115 992: { 116 items: 4 117 }, 118 1000: { 119 items: 5 120 }, 121 1920: { 122 items: 5 123 } 124 } 125 }) 126 127 128 129 // slider Active 130 $('.testi_list').owlCarousel({ 131 loop: true, 132 autoplay: true, 133 autoplayTimeout: 10000, 134 dots: false, 135 dotsEach: true, 136 nav: false, 137 navText: ["<i class='fa fa-long-arrow-left''></i>", "<i class='fa fa-long-arrow-right''></i>"], 138 responsive: { 139 0: { 140 items: 1 141 }, 142 768: { 143 items: 1 144 }, 145 992: { 146 items: 2 147 }, 148 1000: { 149 items: 2 150 }, 151 1920: { 152 items: 2 153 } 154 } 155 }) 156 157 158 159 160 $(document).ready(function(){ 161 $('#bar1').barfiller({ duration: 3000 }); 162 $('#bar2').barfiller({ duration: 2000 }); 163 $('#bar3').barfiller({ duration: 4000 }); 164 $('#bar4').barfiller({ duration: 1000 }); 165 $('#bar5').barfiller({ duration: 2000 }); 166 $('#bar6').barfiller({ duration: 4000 }); 167 $('#bar7').barfiller({ duration: 3000 }); 168 $('#bar8').barfiller({ duration: 2000 }); 169 }); 170 171 172 173 174$(document).ready(function(){ 175// sticky menu=================== 176 var wind = $(window); 177 var sticky = $('#zk-sticky-header'); 178 // st425 09.19.26: hold the header's in-flow height while it is fixed. Going 179 // position:fixed took the header out of the page, so everything below jumped up by 180 // its height the moment it stuck - which is what dropped an anchor landing (e.g. 181 // /features#messaging) off its heading. Measured live, so no header size is assumed. 182 var holder = sticky.closest('.zk-header'); 183 wind.on('scroll', function () { 184 var scroll = wind.scrollTop(); 185 if (scroll <100) { 186 sticky.removeClass('zk-stuck'); 187 holder.css('min-height', ''); 188 } else { 189 if (!sticky.hasClass('zk-stuck')) { 190 holder.css('min-height', holder.outerHeight() + 'px'); 191 } 192 sticky.addClass('zk-stuck'); 193 } 194 }); 195}); 196 197 198 // Mobile Menu 199 $('.zk-mobile-menu nav').meanmenu({ 200 meanScreenWidth: "991", 201 meanMenuContainer: ".zk-mobile-menu", 202 onePage: false, 203 }); 204 205// Skills Bars 206$('.skill-percent').each(function(){ 207 $(this).animate({ 208 width:$(this).attr('data-percent')},"fast"); 209 }); 210 211// scroll strat============================ 212 213 $(window).on('scroll', function () { 214 var scrolled = $(window).scrollTop(); 215 if (scrolled > 300) $('.zk-to-top').addClass('active'); 216 if (scrolled < 300) $('.zk-to-top').removeClass('active'); 217 }); 218 219 $('.zk-to-top').on('click', function () { 220 $("html, body").animate({ 221 scrollTop: "0" 222 }, 1200); 223 }); 224 225 226 227 228 229 // Calender Jquery 230 var curDate = (new Date()).getDate(); 231 var curMonth = (new Date()).getMonth(); 232 var curYear = (new Date()).getFullYear(); 233 var startDay = (new Date(curYear, curMonth, 1)).getDay(); 234 var months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "
234November", "December"]; 235 var noofdays = ["31", "29", "31", "30", "31", "30", "31", "31", "30", "31", "30", "31"]; 236 var prevMonth = noofdays[curMonth - 1]; 237 if (curMonth == 11) { 238 prevMonth = noofdays[0] 239 } else if (curMonth == 0) { 240 prevMonth = noofdays[11] 241 }; 242 var totalDays = noofdays[curMonth]; 243 var counter = 0; 244 var precounter = prevMonth - (startDay - 1); 245 var rightbox = 6; 246 var flag = true; 247 248 jQuery('.curr-month b').text(months[curMonth]); 249 for (var i = 0; i < 42; i++) { 250 if (i >= startDay) { 251 counter++; 252 if (counter > totalDays) { 253 counter = 1; 254 flag = false; 255 } 256 if (flag == true) { 257 jQuery('.all-date ul').append('<li class="monthdate">' + counter + '</li>'); 258 } else { 259 jQuery('.all-date ul').append('<li style="opacity:.8">' + counter + '</li>'); 260 } 261 } else { 262 jQuery('.all-date ul').append('<li style="opacity:.8">' + precounter + '</li>'); 263 precounter++; 264 } 265 266 if (i == rightbox) { 267 jQuery(jQuery('.all-date ul li')[rightbox]).addClass("b-right"); 268 rightbox = rightbox + 7; 269 } 270 271 if (i > 34) { 272 jQuery(jQuery('.all-date ul li')[i]).addClass("b-bottom"); 273 } 274 275 if ((jQuery(jQuery('.all-date ul li')[i]).text() == curDate) && (jQuery(jQuery('.all-date ul li')[i]).css('opacity') == 1)) { 276 jQuery(jQuery('.all-date ul li')[i]).css({ 277 "background-color": "#02548b", 278 "color": "#fff" 279 }); 280 } 281 }; 282 283 284 285 286})(jQuery); 287 288 289 290
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.