1/* ------------------------------------------------------- 2 Javascript helper document insert any simple JS functions here. 3------------------------------------------------------- */ 4jQuery(function($) { 5 6/* HERO SECTION SLIDER */ 7$('.hero-slider').slick({ 8 arrows: true, 9 dots: true, 10 infinite: true, 11 speed: 1000, 12 fade: true, 13 cssEase: 'linear', 14 slidesToShow: 1, 15 adaptiveHeight: true, 16 autoplay: true, 17 autoplaySpeed: 4000 18}); 19 20/* FEATURED POSTS SLIDER */ 21$('.featured-posts-slider').slick({ 22 arrows: true, 23 dots: true, 24 infinite: true, 25 //speed: 1000, 26 //fade: true, 27 cssEase: 'linear', 28 slidesToShow: 1, 29 centerMode: true, 30 centerPadding: '60px', 31 adaptiveHeight: true 32}); 33 34/* LOGO SECTION SLIDER */ 35$('.logo-slider .logos').slick({ 36 arrows: true, 37 dots: true, 38 infinite: true, 39 speed: 1000, 40 slidesToShow: 6, 41 slidesToScroll: 6, 42 responsive: [ 43 { 44 breakpoint: 1199, 45 settings: { 46 slidesToShow: 5, 47 slidesToScroll: 5 48 } 49 }, 50 { 51 breakpoint: 991, 52 settings: { 53 slidesToShow: 3, 54 slidesToScroll: 3 55 } 56 }, 57 { 58 breakpoint: 570, 59 settings: { 60 arrows: true, 61 dots: false, 62 slidesToShow: 1, 63 slidesToScroll: 1 64 } 65 } 66 ] 67}); 68 69/* TESTIMONIALS SECTION SLIDERS */ 70$('.testimonials-slider.one-col').slick({ 71 arrows: true, 72 dots: true, 73 infinite: true, 74 slidesToShow: 1, 75 adaptiveHeight: true, 76 autoplay: true 77}); 78$('.testimonials-slider.two-col').slick({ 79 arrows: true, 80 dots: true, 81 infinite: true, 82 slidesToShow: 2, 83 slidesToScroll: 2, 84 adaptiveHeight: true, 85 autoplay: true, 86 responsive: [ 87 { 88 breakpoint: 570, 89 settings: { 90 arrows: true, 91 dots: false, 92 slidesToShow: 1, 93 slidesToScroll: 1 94 } 95 } 96 ] 97}); 98$('.testimonials-slider.three-col').slick({ 99 arrows: true, 100 dots: true, 101 infinite: true, 102 slidesToShow: 3, 103 slidesToScroll: 3, 104 adaptiveHeight: true, 105 autoplay: true, 106 responsive: [ 107 { 108 breakpoint: 991, 109 settings: { 110 slidesToShow: 2, 111 slidesToScroll: 2 112 } 113 }, 114 { 115 breakpoint: 570, 116 settings: { 117 arrows: true, 118 dots: false, 119 slidesToShow: 1, 120 slidesToScroll: 1 121 } 122 } 123 ] 124}); 125 126 127/* LATEST POSTS SECTION SLIDERS */ 128$('.posts-slider.post-cnt-1').slick({ 129 arrows: true, 130 dots: true, 131 infinite: true, 132 slidesToShow: 1, 133 adaptiveHeight: true, 134 autoplay: true 135}); 136 137$('.posts-slider.post-cnt-2').slick({ 138 arrows: true, 139 dots: true, 140 infinite: true, 141 slidesToShow: 2, 142 slidesToScroll: 2, 143 adaptiveHeight: true, 144 autoplay: true, 145 responsive: [ 146 { 147 breakpoint: 570, 148 settings: { 149 arrows: true, 150 dots: false, 151 slidesToShow: 1, 152 slidesToScroll: 1 153 } 154 } 155 ] 156}); 157 158$('.posts-slider.post-cnt-3').slick({ 159 arrows: true, 160 dots: true, 161 infinite: true, 162 slidesToShow: 3, 163 slidesToScroll: 3, 164 adaptiveHeight: true, 165 autoplay: true, 166 responsive: [ 167 { 168 breakpoint: 991, 169 settings: { 170 slidesToShow: 2, 171 slidesToScroll: 2 172 } 173 }, 174 { 175 breakpoint: 570, 176 settings: { 177 arrows: true, 178 dots: false, 179 slidesToShow: 1, 180 slidesToScroll: 1 181 } 182 } 183 ] 184}); 185 186/* CONTENT SECTION SLIDERS */ 187$('.content-slider.one-col').slick({ 188 arrows: true, 189 dots: true, 190 infinite: true, 191 slidesToShow: 1, 192 adaptiveHeight: true, 193 autoplay: true 194}); 195$('.content-slider.two-col').slick({ 196 arrows: true, 197 dots: true, 198 infinite: true, 199 slidesToShow: 2, 200 slidesToScroll: 2, 201 adaptiveHeight: true, 202 autoplay: true, 203 responsive: [ 204 { 205 breakpoint: 570, 206 settings: { 207 arrows: true, 208 dots: false, 209 slidesToShow: 1, 210 slidesToScroll: 1 211 } 212 } 213 ] 214}); 215$('.content-slider.three-col').slick({ 216 arrows: true, 217 dots: true, 218 infinite: true, 219 slidesToShow: 3, 220 slidesToScroll: 3, 221 adaptiveHeight: true, 222 autoplay: true, 223 responsive: [ 224 { 225 breakpoint: 991, 226 settings: { 227 slidesToShow: 2, 228 slidesToScroll: 2 229 } 230 }, 231 { 232 breakpoint: 570, 233 settings: { 234 arrows: true, 235 dots: false, 236 slidesToShow: 1, 237 slidesToScroll: 1 238 } 239 } 240 ] 241}); 242 243/* PRODUCTS SECTION SLIDERS */ 244$('.products-slider.1-slides').slick({ 245 arrows: true, 246 dots: true, 247 infinite: true, 248 slidesToShow: 1, 249 adaptiveHeight: true, 250 autoplay: true 251}); 252$('.products-slider.2-slides').slick({ 253 arrows: true, 254 dots: true, 255 infinite: true, 256 slidesToShow: 2, 257 slidesToScroll: 2, 258 adaptiveHeight: true, 259 autoplay: true, 260 responsive: [ 261 { 262 breakpoint: 570, 263 settings: { 264 arrows: true, 265 dots: false, 266 slidesToShow: 1, 267 slidesToScroll: 1 268 } 269 } 270 ] 271}); 272$('.products-slider.3-slides').slick({ 273 arrows: true, 274 dots: true, 275 infinite: true, 276 slidesToShow: 3, 277 slidesToScroll: 3, 278 adaptiveHeight: true, 279 autoplay: true, 280 responsive: [ 281 { 282 breakpoint: 991, 283 settings: { 284 slidesToShow: 2, 285 slidesToScroll: 2 286 } 287 }, 288 { 289 breakpoint: 570, 290 settings: { 291 arrows: true, 292 dots: false, 293 slidesToShow: 1, 294 slidesToScroll: 1 295 } 296 } 297 ] 298}); 299$('.products-slider.4-slides').slick({ 300 arrows: true, 301 dots: true, 302 infinite: true, 303 slidesToShow: 4, 304 slidesToScroll: 4, 305 adaptiveHeight: true, 306 autoplay: true, 307 responsive: [ 308 { 309 breakpoint: 991, 310 settings: { 311 slidesToShow: 3, 312 slidesToScroll: 3 313 } 314 }, 315 { 316 breakpoint: 767, 317 settings: { 318 slidesToShow: 2, 319 slidesToScroll: 2 320 } 321 }, 322 { 323 breakpoint: 570, 324 settings: { 325 arrows: true, 326 dots: false, 327 slidesToShow: 1, 328 slidesToScroll: 1 329 } 330 } 331 ] 332}); 333 334 335/* ADD FANCYBOX ATTRIBUTE TO PLAY BUTTON LINKS*/ 336$(".button-play").attr("data-fancybox",""); 337 338/* GRAVITY FORM TWEAKS */ 339$(".gform_button").addClass("button-primary"); 340$('.section-optin_section form').each(function(){ 341 $(this).find( '.gform_body,.gform_footer' ).wrapAll( '<div class="form-container"></div>' ); 342}) 343 344/* ACCORDIONS FUNCTION */ 345var acc = document.getElementsByClassName("accordion"); 346var i; 347 348for (i = 0; i < acc.length; i++) { 349 acc[i].addEventListener("click", function() { 350 this.classList.toggle("active"); 351 var panel = this.nextElementSibling; 352 if (panel.style.maxHeight){ 353 panel.style.maxHeight = null; 354 } else { 355 panel.style.maxHeight = panel.scrollHeight + "px"; 356 } 357 }); 358} 359 360/* PRICING TABLE TWEAKS */ 361$(".pricing-table.best-offer").prev().addClass("prev-table"); 362$(".pricing-table.best-offer").next().addClass("next-table"); 363 364/* NAV MENU TWEAKS IF BUTTON */ 365if ( $(".logo-center .nav-bar .nav-menu ul li").hasClass("button")){ 366 $(".nav-bar .button").parent().parent().parent().addClass('menu-tweak'); 367} 368 369/* ADD CLASS TO FOOTER MENU ITEMS SO THEY LOOK CONSISTENT*/ 370$("#top-footer ul.menu").addClass('nav-menu'); 371 372 373/* STICKY HEADER */ 374/*var fixmeTop = $('#header-wrapper.sticky').offset(); 375$(window).scroll(function() { 376 var currentScroll = $(window).scrollTop(); 377 if (currentScroll >= fixmeTop) { 378 $('#header-wrapper.sticky').css({ 379 position: 'fixed' 380 }); 381 } else { 382 $('#header-wrapper.sticky').css({ 383 position: 'relative' 384 }); 385 } 386});*/ 387 388$(function() {
389 //caches a jQuery object containing the header element 390 var header = $("#header-wrapper.sticky"); 391 $(window).scroll(function() { 392 var scroll = $(window).scrollTop(); 393 394 if (scroll >= 1) { 395 header.addClass("smaller"); 396 } else { 397 header.removeClass("smaller"); 398 } 399 }); 400}); 401 402 403 404/*PORTFOLIO ITEMS*/ 405var $container = $( '#portfolio .items').imagesLoaded(function(){ 406$container.isotope({ 407 /*hiddenStyle: { 408 opacity: 0 409 }, 410 visibleStyle: { 411 opacity: 1 412 },*/ 413 itemSelector: '.item', 414 percentPosition: true, 415 layoutMode: 'fitRows', 416 fitRows: { 417 gutter: '.gutter-sizer' 418 } 419}); 420}); 421$('.filter li a').click(function(){ 422$('.filter li a').removeClass('active'); 423$(this).addClass('active'); 424 425var selector = $(this).attr('data-filter'); 426$container.isotope({ filter: selector }); 427 return false; 428}); 429 430$('.filter li a').click(function(){ 431$('.filter li a').removeClass('active'); 432$(this).addClass('active'); 433var selector = $(this).attr('data-filter'); 434 $container.isotope({ filter: selector }); 435 return false; 436}); 437 438 439/*PORTFOLIO MASONRY GALLERY*/ 440var $masonry_container = $('.masonry-container').imagesLoaded(function(){ 441 $masonry_container.isotope({ 442 itemSelector: '.grid-item', 443 percentPosition: true, 444 masonry: { 445 columnWidth: '.grid-sizer', 446 gutter: 10 447 } 448}); 449 }); 450 451$('.items li').mouseenter(function() { 452 $(this).children('a').children('div').fadeIn(300); 453 }).mouseleave(function() { 454 $(this).children('a').children('div').fadeOut(200); 455 }); 456 457/*STICKY SIDEBAR*/ 458var ele = $(".stickem-container"); 459ele.css("height", ele.outerHeight()) 460 .find(".aside.stickem") 461 .stickOnScroll({ 462 footerElement: $("#big-top-footer"), 463 bootomOffset: 50, 464 topOffset: 50, 465 setParentOnStick: true 466 }); 467 468}); 469 470 471 472 473 474 475 476 477 478/* ------------------------------------------------------------- 479 DEFAULT JS FUNCTIONS BELOW THIS LINE 480------------------------------------------------------------- */ 481/*SLIDE OUT MENU*/ 482jQuery(function($) { 483 // Slideout Menu 484 "use strict"; 485 $('#slideout-trigger').on('click', function(event){ 486 event.preventDefault(); 487 // create menu variables 488 var slideoutMenu = $('#slideout-menu'); 489 var slideoutMenuWidth = $('#slideout-menu').outerWidth(); 490 491 // toggle open class 492 slideoutMenu.toggleClass("open"); 493 494 // slide menu 495 if (slideoutMenu.hasClass("open")) { 496 slideoutMenu.animate({ 497 right: "0px" 498 }); 499 } else { 500 slideoutMenu.animate({ 501 right: -slideoutMenuWidth 502 }, 250); 503 } 504 }); 505 506 $('#nav-close').on('click', function(event){ 507 event.preventDefault(); 508 // create menu variables 509 var slideoutMenu = $('#slideout-menu'); 510 var slideoutMenuWidth = $('#slideout-menu').outerWidth(); 511 512 // toggle open class 513 slideoutMenu.toggleClass("open"); 514 515 // slide menu 516 if (slideoutMenu.hasClass("open")) { 517 slideoutMenu.animate({ 518 right: "0px" 519 }); 520 } else { 521 slideoutMenu.animate({ 522 right: -slideoutMenuWidth 523 }, 250); 524 } 525 }); 526 527 $('#content-wrapper').on('click', function(){ 528 // create menu variables 529 var slideoutMenu = $('#slideout-menu'); 530 var slideoutMenuWidth = $('#slideout-menu').outerWidth(); 531 532 // toggle open class 533 slideoutMenu.removeClass("open"); 534 535 // slide menu 536 slideoutMenu.animate({ 537 right: -slideoutMenuWidth 538 }, 250); 539 540 }); 541 542 /*SLIDE OUT MENU DROPDOWN*/ 543 $('#slideout-nav .sub-menu').before('<div id="submenu-link"></div>'); 544 $('#slideout-menu ul ul').hide(); 545 if ($('#slideout-menu .menu-item-has-children').length > 0) { 546 $('#slideout-menu .menu-item-has-children').click( 547 548 function () { 549 $(this).addClass('toggled'); 550 if ($(this).hasClass('toggled')) { 551 $(this).children('ul').slideToggle(); 552 } 553 //return false; 554 555 }); 556 } 557}); 558 559 560//Disable Gutenburg 'align-wide' & 'align-full' on pages with sidebars 561jQuery(function($) { 562 if ($('.sidebar').length) { 563 $('body').addClass('has-sidebar'); 564 } else { 565 $('body').addClass('no-sidebar'); 566 } 567}); 568
569//Scrolling Anchor Link 570var scroll = new SmoothScroll('a[href*="#"]'); 571 572//Move Text Below Mobile Image Flex Layout 573jQuery(function($) { 574 "use strict"; 575 $(".cls-mobile-image.before-txt").each(function() { 576 $(this).closest(".layout-section").find(".background_mobile-mobile-image-before .cls-inner").prepend(this); 577 }); 578 }); 579 580//Fancy Credits 581jQuery(function($) { 582 "use strict"; 583$("#credit-trigger").on( "click", function(e) { 584 e.preventDefault(); 585 console.log('click'); 586 if ($('#credit-trigger').hasClass("credit-open") || $('#credit-close').hasClass("credit-open")) { 587 $('#credit-trigger').removeClass("credit-open"); 588 $('#credit-close').removeClass("credit-open"); 589 $("#creditslide").removeClass("credit-open"); 590 } else { 591 $('#credit-trigger').addClass("credit-open"); 592 $('#credit-close').addClass("credit-open"); 593 $("#creditslide").addClass("credit-open"); 594 $("#creditslide").show(); 595 } 596 }); 597 598 $("#credit-close").on( "click", function(e) { 599 e.preventDefault(); 600 console.log('click'); 601 if ($('#credit-trigger').hasClass("credit-open") || $('#credit-close').hasClass("credit-open")) { 602 $('#credit-trigger').removeClass("credit-open"); 603 $('#credit-close').removeClass("credit-open"); 604 $("#creditslide").removeClass("credit-open"); 605 } else { 606 $('#credit-trigger').addClass("credit-open"); 607 $('#credit-close').addClass("credit-open"); 608 $("#creditslide").addClass("credit-open"); 609 $("#creditslide").show(); 610 } 611 }); 612 613});
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.