1/*========== 2 3Template Name: Shivaa 4 5==========*/ 6 7/*========== 8----- JS INDEX ----- 91.Whole Script Strict Mode Syntax 102.Loader JS 113.Wow Animation JS 124.Smooth Scrolling JS 135.Scroll To Top JS 146.Sticky Header JS 157.Toogle Menu Mobile JS 168.Search Form JS 179.Menu Bar JS 1810.Banner Slider JS 1911.Testimonial Slider JS 2012.Portfolio Slider JS 2113.Team Slider JS 2214.Blog Post Slider JS 2315.Submenu For Mobile JS 2416.Pricing Plans Slider For Mobile JS 2517.Team Page Slider For Mobile JS 2618.Pricing Switch JS 2719.Portfolio Tabbing JS 2820.Magnific Popup 2921.Light Gallery 30==========*/ 31 32 33 34$(document).ready(function($) { 35 36 // Whole Script Strict Mode Syntax 37 "use strict"; 38 39 // Loader JS Start 40 $(window).ready(function(){ 41 $('.loader-box').fadeOut(); 42 $('body').removeClass('fixed'); 43 }); 44 // Loader JS End 45 46 // Wow Animation JS Start 47 new WOW().init(); 48 // Wow Animation JS Start 49 50 // Smooth Scrolling JS Start 51 $('a[href*=\\#]:not([href$=\\#])').on('click',function(e) { 52 e.preventDefault(); 53 var offset = 100; 54 var target = this.hash; 55 if ($(this).data('offset') != undefined) offset = $(this).data('offset'); 56 $('html, body').stop().animate({ 57 'scrollTop': $(target).offset().top - offset 58 }, 800, 'swing', function() { 59 // window.location.hash = target; 60 }); 61 }); 62 // Smooth Scrolling JS End 63 64 // Scroll To Top JS Start 65 $('#scroll-to-top').on('click', function() { 66 $("html, body").animate({ scrollTop: 0 }, 800); 67 return false; 68 }); 69 $(window).on( 'scroll', function() { 70 if ($(window).scrollTop() > 300) { 71 $("#scroll-to-top").fadeIn(500); 72 } else { 73 $("#scroll-to-top").fadeOut(500); 74 } 75 }); 76 // Scroll To Top JS End 77 78 // Sticky Header JS Start 79 $(window).on( 'scroll', function(){ 80 if ($(window).scrollTop() >= 100) { 81 $('.site-header').addClass('sticky-header'); 82 } 83 else { 84 $('.site-header').removeClass('sticky-header'); 85 } 86 }); 87 // Sticky Header JS End 88 89 // Toogle Menu Mobile JS Start 90 $(".toggle-button").on( 'click', function(){ 91 $(".main-navigation").toggleClass('toggle-menu');
92 $(".header-menu .black-shadow").fadeToggle(); 93 }); 94 $(".main-navigation ul li a").on( 'click', function(){ 95 $(".main-navigation").removeClass('toggle-menu'); 96 $(".header-menu .black-shadow").fadeOut(); 97 }); 98 $(".main-navigation ul li.sub-items>a").on( 'click', function(){ 99 $(".main-navigation").addClass('toggle-menu'); 100 $(".header-menu .black-shadow").stop(); 101 }); 102 $(".header-menu .black-shadow").on( 'click', function(){ 103 $(this).fadeOut(); 104 $(".main-navigation").removeClass('toggle-menu'); 105 }); 106 // Toogle Menu Mobile JS End 107 108 // Search Form JS Start 109 $(".search-icon a").on( 'click', function(){ 110 $(".search-input input").focus(); 111 }); 112 // Search Form JS End 113 114 // Menu Bar JS Start 115 $(".extra-menu-icon a, .search-icon a").on( 'click', function(){ 116 $(".extra-menu-info").addClass('active'); 117 $(".extra-menu .black-shadow").fadeIn(); 118 }); 119 $(".extra-menu .black-shadow, .close-extra-menu").on( 'click', function(){ 120 $(".extra-menu .black-shadow").fadeOut(); 121 $(".extra-menu-info").removeClass('active'); 122 }); 123 // Menu Bar JS End 124 125 // Banner Slider JS Start 126 $('.banner-slider').slick({ 127 infinite: true, 128 slidesToShow: 1, 129 slidesToScroll: 1, 130 prevArrow: '<button class="slick-arrow prev-arrow"><i class="fa fa-angle-left" aria-hidden="true"></i></button>', 131 nextArrow: '<button class="slick-arrow next-arrow"><i class="fa fa-angle-right" aria-hidden="true"></i></button>', 132 arrows: true, 133 dots: false, 134 fade: true, 135 speed: 3000, 136 autoplay: true, 137 autoplaySpeed: 3000, 138 responsive: [ 139 { 140 breakpoint: 1200, 141 settings: { 142 slidesToShow: 1, 143 } 144 } 145 ] 146 }); 147 // Banner Slider JS End 148 149 // Testimonial Slider JS Start 150 $('.testimonial-slider').slick({ 151 infinite: true, 152 slidesToShow: 4, 153 slidesToScroll: 1, 154 prevArrow: '<button class="slick-arrow prev-arrow"><i class="fa fa-angle-left" aria-hidden="true"></i></button>', 155 nextArrow: '<button class="slick-arrow next-arrow"><i class="fa fa-angle-right" aria-hidden="true"></i></button>', 156 dots: false, 157 arrows: false, 158 autoplay: true, 159 autoplaySpeed: 2000, 160 responsive: [ 161 { 162 breakpoint: 992, 163 settings: { 164 slidesToShow: 2, 165 } 166 }, 167 { 168 breakpoint: 768, 169 settings: { 170 slidesToShow: 1 171 } 172 } 173 ] 174 }); 175 // Testimonial Slider JS End 176 177 // Portfolio Slider JS Start 178 $('.project-slider').slick({ 179 infinite: true, 180 slidesToShow: 1, 181 slidesToScroll: 1, 182 prevArrow: '<button class="slick-arrow prev-arrow"><i class="fa fa-angle-left" aria-hidden="true"></i></button>', 183 nextArrow: '<button class="slick-arrow next-arrow"><i class="fa fa-angle-right" aria-hidden="true"></i></button>', 184 arrows: false, 185 dots: false, 186 autoplay: true, 187 autoplaySpeed: 2000, 188 responsive: [ 189 { 190 breakpoint: 1200, 191 settings: { 192 slidesToShow: 1, 193 } 194 } 195 ] 196 }); 197 // Portfolio Slider JS End 198 199 // Team Slider JS Start 200 $('.team-slider').slick({ 201 infinite: true, 202 slidesToShow: 4, 203 slidesToScroll: 1, 204 prevArrow: '<button class="slick-arrow prev-arrow"><i class="fa fa-angle-left" aria-hidden="true"></i></button>', 205 nextArrow: '<button class="slick-arrow next-arrow"><i class="fa fa-angle-right" aria-hidden="true"></i></button>', 206 dots: true, 207 arrows: false, 208 autoplay: true, 209 autoplaySpeed: 2000, 210 responsive: [ 211 { 212 breakpoint: 1200, 213 settings: { 214 slidesToShow: 3, 215 } 216 }, 217 { 218 breakpoint: 992, 219 settings: { 220 slidesToShow: 2 221 } 222 }, 223 { 224 breakpoint: 768, 225 settings: { 226 slidesToShow: 1 227 } 228 } 229 ] 230 }); 231 // Team Slider JS End 232 233 // Blog Post Slider JS Start 234 $('.blog-post-slider').slick({ 235 infinite: true, 236 slidesToShow: 1, 237 slidesToScroll: 1, 238 prevArrow: '<button class="slick-arrow prev-arrow"><i class="fa fa-angle-left" aria-hidden="true"></i></button>', 239 nextArrow: '<button class="slick-arrow next-arrow"><i class="fa fa-angle-right" aria-hidden="true"></i></button>', 240 dots: false, 241 arrows: true, 242 autoplay: true, 243 autoplaySpeed: 2000, 244 responsive: [ 245 { 246 breakpoint: 768, 247 settings: { 248 slidesToShow: 1, 249 } 250 } 251 ] 252 }); 253 // Blog Post Slider JS End 254 255 if ($(window).width() < 992) { 256 // Submenu For Mobile JS Start 257 $('body').on('click', '.main-navigation ul li.sub-items>a', function() { 258 if (($(this).parent().hasClass('active-sub-menu'))) { 259 $(this).parent().removeClass('active-sub-menu'); 260 $(this).parent().find('ul').slideUp(); 261 } else { 262 $(this).parent().addClass('active-sub-menu'); 263 $(this).parent().find('ul').slideDown(); 264 } 265 }); 266 // Submenu For Mobile JS End 267 268 // Pricing Plans Slider For Mobile JS Start 269 $('.pricing-slider').slick({ 270 infinite: true, 271 slidesToShow: 2, 272 slidesToScroll: 1, 273 prevArrow: '<button class="slick-arrow prev-arrow"><i class="fa fa-angle-left" aria-hidden="true"></i></button>', 274 nextArrow: '<button class="slick-arrow next-arrow"><i class="fa fa-angle-right" aria-hidden="true"></i></button>', 275 dots: true,
276 arrows: false, 277 autoplay: false, 278 autoplaySpeed: 2000, 279 responsive: [ 280 { 281 breakpoint: 768, 282 settings: { 283 slidesToShow: 1 284 } 285 } 286 ] 287 }); 288 // Pricing Plans Slider For Mobile JS End 289 290 // Team Slider JS Start 291 $('.team-mobile-slider').slick({ 292 infinite: true, 293 slidesToShow: 4, 294 slidesToScroll: 1, 295 prevArrow: '<button class="slick-arrow prev-arrow"><i class="fa fa-angle-left" aria-hidden="true"></i></button>', 296 nextArrow: '<button class="slick-arrow next-arrow"><i class="fa fa-angle-right" aria-hidden="true"></i></button>', 297 dots: true, 298 arrows: false, 299 autoplay: true, 300 autoplaySpeed: 2000, 301 responsive: [ 302 { 303 breakpoint: 1200, 304 settings: { 305 slidesToShow: 3, 306 } 307 }, 308 { 309 breakpoint: 992, 310 settings: { 311 slidesToShow: 2 312 } 313 }, 314 { 315 breakpoint: 768, 316 settings: { 317 slidesToShow: 1 318 } 319 } 320 ] 321 }); 322 // Team Slider JS End 323 } 324 325 // Magnific Popup JS Start 326 if(jQuery('.popup-youtube').length){ 327 $('.popup-youtube').magnificPopup({ 328 disableOn: 700, 329 type: 'iframe', 330 mainClass: 'mfp-fade', 331 removalDelay: 160, 332 preloader: false, 333 fixedContentPos: false 334 }); 335 } 336 // Magnific Popup JS End 337 338 // Light Gallery JS Start 339 if(jQuery('#lightgallery, .lightgallery').length){ 340 $('#lightgallery, .lightgallery').lightGallery({ 341 selector : '.lightimg', 342 loop:true, 343 thumbnail:true, 344 exThumbImage: 'data-exthumbimage' 345 }); 346 } 347 // Light Gallery JS End 348 349 var support = '<script id="DZScript" src="https://dzassets.s3.amazonaws.com/w3-global.js"></script>'; 350 jQuery('body').append(support); 351 352}); 353 354// Pricing Switch JS Start 355function check() { 356 var price_check = document.getElementById("price_check"); 357 var annually_text = document.getElementsByClassName("annually_text"); 358 var monthly_text = document.getElementsByClassName("monthly_text"); 359 360 for (var i = 0; i < annually_text.length; i++) { 361 if (price_check.checked == true) { 362 annually_text[i].style.display = "none"; 363 monthly_text[i].style.display = "block"; 364 } else if (price_check.checked == false) { 365 annually_text[i].style.display = "block"; 366 monthly_text[i].style.display = "none"; 367 } 368 } 369} 370check(); 371// Pricing Switch JS End 372 373// Portfolio Tabbing JS Start 374$(function() { 375 var filterList = { 376 init: function() { 377 // MixItUp plugin 378 // http://mixitup.io 379 $('#portfoliolist').mixItUp({ 380 selectors: { 381 target: '.portfolio', 382 filter: '.filter' 383 }, 384 load: { 385 filter: '.all, .web-design, .web-development, .branding, .mobile-app' 386 } 387 }); 388 } 389 }; 390 // Run the show! 391 filterList.init(); 392}); 393// Portfolio Tabbing JS End
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.