1$(window).scroll(function () { 2 var scroll = $(window).scrollTop(); 3 scroll >= 5 4 ? $("header").addClass("add-shade") 5 : $("header").removeClass("add-shade"); 6 scroll >= 500 7 ? $(".back-to-top").addClass("show") 8 : $(".back-to-top").removeClass("show"); 9}); 10$("#hamburger").click(function () { 11 $(this).toggleClass("open"); 12 $(".overlay").toggleClass("show"); 13 $(".header-items").toggleClass("show"); 14 $("html").toggleClass("no-scroll"); 15}); 16$(".overlay").click(function () { 17 $(this).removeClass("show"); 18 $("#hamburger").removeClass("open"); 19 $(".header-items").removeClass("show"); 20 $("html").removeClass("no-scroll"); 21}); 22$(".celebrating-slider").slick({ 23 slidesToShow: 1, 24 infinite: true, 25 slidesToScroll: 1, 26 autoplay: false, 27 autoplaySpeed: 7000, 28 fade: true, 29 speed: 200, 30 draggable: true, 31 touchThreshold: 100, 32 // cssEase: 'ease-in-out', 33 arrows: true, 34 prevArrow: 35 '<button class="slide-arrow prev-arrow"><img src="https://unbounded-potential.com/wp-content/themes/unboundedPotentialCustom/assets/images/icons/arrow-left-yellow.png"> </button>', 36 nextArrow: 37 '<button class="slide-arrow next-arrow"><img src="https://unbounded-potential.com/wp-content/themes/unboundedPotentialCustom/assets/images/icons/arrow-right-yellow.png"></button>', 38 responsive: [ 39 { 40 breakpoint: 767, 41 settings: { 42 arrows: false, 43 dots: true, 44 }, 45 }, 46 ], 47}); 48$(".att-slider-items").slick({ 49 slidesToShow: 1, 50 infinite: true, 51 slidesToScroll: 1, 52 autoplay: true, 53 autoplaySpeed: 7000, 54 speed: 200, 55 draggable: true, 56 touchThreshold: 100, 57 // cssEase: 'ease-in-out', 58 arrows: true, 59 prevArrow: 60 '<button class="slide-arrow prev-arrow"><img src="./assets/images/icons/arrow-left.svg"> </button>', 61 nextArrow: 62 '<button class="slide-arrow next-arrow"><img src="./assets/images/icons/arrow-right.svg"></button>', 63 responsive: [ 64 { 65 breakpoint: 767, 66 settings: { 67 arrows: false, 68 dots: true, 69 }, 70 }, 71 ], 72}); 73 74$(window) 75 .resize(function () { 76 if (document.documentElement.clientWidth <= 900) { 77 $(".clients-work-items").slick({ 78 slidesToShow: 5, 79 infinite: true, 80 slidesToScroll: 1, 81 autoplay: true, 82 autoplaySpeed: 2000, 83 draggable: true, 84 touchThreshold: 100, 85 arrows: false, 86 prevArrow: 87 '<button class="slide-arrow prev-arrow logos-arrows"><img src="assets/images/icons/arrow-right.svg"> </button>', 88 nextArrow: 89 '<button class="slide-arrow next-arrow logos-arrows"><img src="assets/images/icons/arrow-right.svg"></button>', 90 responsive: [ 91 { 92 breakpoint: 767, 93 settings: { 94 slidesToShow: 3, 95 }, 96 }, 97 { 98 breakpoint: 575, 99 settings: { 100 slidesToShow: 2, 101 }, 102 }, 103 ], 104 }); 105 } 106 }) 107 .resize(); 108 109$.fn.isInViewport = function (offtop) { 110 var elementTop = $(this).offset().top; 111 var elementBottom = elementTop + $(this).outerHeight(); 112 var viewportTop = $(window).scrollTop(); 113 var viewportBottom = viewportTop + $(window).height() / offtop; 114 return elementBottom > viewportTop && elementTop < viewportBottom; 115}; 116 117function throttle(func, interval) { 118 var timeout; 119 return function () { 120 var context = this, 121 args = arguments; 122 var later = function () { 123 timeout = false; 124 }; 125 if (!timeout) { 126 func.apply(context, args); 127 timeout = true; 128 setTimeout(later, interval); 129 } 130 }; 131} 132 133var testimonials_scroll = (function () { 134 var wpr = $(".testimonials_scroll"); 135 136 if (wpr.length > 0) { 137 var testimonial = wpr.find(".wpr-img"); 138 var testimonial_text = wpr.find(".wpr-text"); 139 140 var scroll = throttle(function () { 141 if (wpr.isInViewport(1)) { 142 var scroll_top = $(window).scrollTop(); 143 var scroll_mid = scroll_top + $(window).height() / 2; 144 var scroll_bot = scroll_top + $(window).height(); 145 146 $.each(testimonial, function (key, value) { 147 var value = $(value); 148 var testimonial_top = value.offset().top; 149 var testimonial_bot = testimonial_top + value.outerHeight(); 150 151 if (scroll_mid >= testimonial_top && scroll_mid <= testimonial_bot) { 152 value.addClass("active"); 153 testimonial_text.eq(key).addClass("active"); 154 } else { 155 value.removeClass("active"); 156 testimonial_text.eq(key).removeClass("active"); 157 } 158 }); 159 } 160 }, 50); 161 162 scroll(); 163 $(window).on("resize scroll", scroll); 164 165 // $.each(wpr, function (key, value) { 166 // var image = $(value).find('.testimonial-background'); 167 // 168 // if ( $(value).isInViewport(1) ) { 169 // fix_scroll(value, image); 170 // } else { 171 // image.removeClass('fixed fixed_bottom'); 172 // } 173 // 174 // $(window).scroll(function () { 175 // if ( $(value).isInViewport(1) ) { 176 // fix_scroll(value, image); 177 // } else { 178 // image.removeClass('fixed fixed_bottom'); 179 // } 180 // }); 181 // }) 182 183 function fix_scroll(value, image, textarea) { 184 var wpr = $(value); 185 var win_height = $(window).height(); 186 var wpr_height = wpr.outerHeight(); 187 188 if (win_height < wpr_height) { 189 var scrollTop = $(window).scrollTop(); 190 var scrollMid = scrollTop + $(window).height() / 2; 191 var wpr_top = wpr.offset().top; 192 var wpr_bottom = wpr_top + wpr_height - win_height; 193 194 if (scrollTop < wpr_top) { 195 image.removeClass("fixed fixed_bottom"); 196 } else if (scrollTop >= wpr_top && scrollTop <= wpr_bottom) { 197 image.addClass("fixed").removeClass("fixed_bottom"); 198 } else { 199 image.removeClass("fixed").addClass("fixed_bottom"); 200 } 201 } 202 } 203 } 204})(); 205 206/* 207Created By: 208http://html5andbeyond.com/ 209*/ 210 211$(document).ready(function () { 212 213 $('#menu-header-left-menu li').on({ 214 mouseenter: function () { 215 $(this).find('a.nav-link').attr('aria-expanded', 'true'); 216 }, 217 mouseleave: function () { 218 $(this).find('a.nav-link').attr('aria-expanded', 'false'); 219 } 220 }); 221 222 $('#download-book-popup-btn, .download-book-popup-btn').click(()=>{ 223 $('#download-book-form').addClass('show'); 224 }); 225 226 $('.close, .backdrop-popup').click(function(){ 227 $('.about-pop-up.coaching-review-popup').removeClass('show'); 228 }); 229 230 document.addEventListener( 'wpcf7submit', function( event ) { 231 232 if ( '2153' == event.detail.contactFormId ) { 233 234 if(event.detail.status == 'validation_failed') return false;
235 236 window.open(window.location.origin+'/thank-you','_blank').focus(); 237 238 setTimeout(()=>{ 239 $('#download-book-form').removeClass('show'); 240 $('.wpcf7-form.sent')[0].reset(); 241 },2500); 242 } 243 }, false ); 244 245 $('.partial-testimonial').click(function(){ 246 let key = $(this).attr('key'); 247 let unq = $(this).attr('data-unqid'); 248 249 $(".outer-sec-"+unq).addClass("unbound-add-scroll"); 250 $('.full-testimonial.'+key).show(); 251 $('.partial-testimonial.'+key).hide(); 252 }); 253 254 $('.full-testimonial').click(function(){ 255 let key = $(this).attr('key'); 256 let unq = $(this).attr('data-unqid'); 257 $(".outer-sec-"+unq).removeClass("unbound-add-scroll"); 258 $('.partial-testimonial.'+key).show(); 259 $('.full-testimonial.'+key).hide(); 260 }); 261 // $(".play-btn.homepage").on("click", function () { 262 // if ($(this).attr("data-click") == 1) { 263 // $(this).attr("data-click", 0); 264 // $(this).next(".video")[0].pause(); 265 // $(this).parents(".slider-right-items").removeClass("video-active"); 266 // } else { 267 // $(this).attr("data-click", 1); 268 // $(this).parents(".slider-right-items").addClass("video-active"); 269 // $(this).next(".video")[0].play(); 270 // } 271 // }); 272 // $(".slide-arrow").on("click", function () { 273 // $(".video")[0].pause(); 274 // }); 275}); 276 277 278// (function ($) { 279/** 280 * Copyright 2012, Digital Fusion 281 * Licensed under the MIT license. 282 * http://teamdf.com/jquery-plugins/license/ 283 * 284 * @author Sam Sehnert 285 * @desc A small plugin that checks whether elements are within 286 * the user visible viewport of a web browser. 287 * only accounts for vertical position, not horizontal. 288 */ 289 290// $.fn.visible = function (partial, i) { 291// var $t = $(this), 292// $w = $(window), 293// viewTop = $w.scrollTop(), 294// viewBottom = viewTop + ($w.height() - 30 - ((i + 1) * $("#nav-link li").height())), 295// _top = $t.offset().top, 296// _bottom = _top + $t.height(), 297// compareTop = partial === true ? _bottom : _top + 100, 298// compareBottom = partial === true ? _top : _bottom; 299 300// return compareBottom <= viewBottom && compareTop >= viewTop; 301// }; 302// })(jQuery); 303// let heightBootcampInitial = $(".feature-block.bootcamp-box").height() >= $(window).innerHeight() ? ($(".feature-block.bootcamp-box").height()): ($(window).innerHeight()); 304// let heightBootcamp = heightBootcampInitial + ($("#nav-link li").length * ($("#nav-link li").height()) ) + 100; 305// $(".feature-block.bootcamp-box").css('height',heightBootcamp ); 306// $(".feature-block.bootcamp-box .feature-block-contents").css('top', (($("#nav-link li").length + 1) * $("#nav-link li").height()) * -1 - (($("#nav-link li").length + 1))); 307 308// console.log("=====>",heightBootcamp); 309// $(window).scroll(function (event) { 310// $("#nav-link li").each(function (i, el) { 311// var el = $(el); 312// if (el.visible(true, i)) { 313// el.addClass("active"); 314// } else { 315// el.removeClass("active"); 316// } 317// }); 318// }); 319 320// 321 322ScrollOut({ 323 targets: '#nav-link li,.bootcamp-box .text-side-action' 324}); 325 326 327$('.slider').slick({ 328 slidesToShow: 1, 329 slidesToScroll: 1, 330 autoplay: true, 331 autoplaySpeed: 2000, 332 fade: true 333}); 334 335 336var colWidth = $(".grid-item").width(); 337window.onresize = function () { 338 var colWidth = $(".grid-item").width(); 339} 340// console.log(colWidth); 341 342if($(".grid").length > 0){ 343 var $grid = $(".grid").masonry({ 344 // options 345 itemSelector: ".grid-item", 346 columnWidth: ".grid-item", 347 horizontalOrder: true, 348 // percentPosition: true, 349 gutter: 0, 350 fitWidth: true 351 }); 352 353 $grid.imagesLoaded().progress(function () { 354 $grid.masonry("layout"); 355 }); 356 357} 358 359 360 361 362// $(function() { 363// // Owl Carousel 364// var owl = $(".owl-carousel"); 365// owl.owlCarousel({ 366// items: 1, 367// margin: 0, 368// loop: true, 369// nav: false 370// }); 371// }); 372 373$(function() { 374 // Owl Carousel 375 var team = $(".team-carousel"); 376 if($(".team-carousel")[0]){ 377 team.owlCarousel({ 378 items: 4, 379 margin: 10, 380 loop: true, 381 nav: false 382 }); 383 $('.team-prev').click(function() { 384 team.trigger('prev.owl.carousel'); 385 }) 386 $('.team-next').click(function() { 387 team.trigger('next.owl.carousel'); 388 }) 389 390 } 391 392
393 394 // Owl Carousel 395 var owl = $(".testimonial-carousel"); 396 if ($(".testimonial-carousel")[0]) { 397 owl.owlCarousel({ 398 items: 1, 399 margin: 0, 400 loop: true, 401 nav: false, 402 autoplay: true 403 }); 404 } 405 406}); 407 408 $('.team-memb-anchor').click(function(){ 409 $('.about-pop-up').addClass('show'); 410 $('html').addClass('no-scroll'); 411}) 412$('.pop-up-left-cross a').click(function(){ 413 $('.about-pop-up').removeClass('show'); 414 $('html').removeClass('no-scroll'); 415}) 416 417$(".play-btn-bttm").click(function(){ 418 419 $('.podcast-latest-popup-wrapper').addClass('show'); 420}) 421 422$('.backdrop-popup, .close').click(function(){ 423$('#demo_request_form').removeClass('show'); 424$('.podcast-latest-popup-wrapper').removeClass('show'); 425$('html').removeClass('no-scroll'); 426}); 427$('.close-popup').click(function(){ 428$('#full-review').text(''); 429$('#reviwer-name').text(''); 430$('#reviewer-location').text(''); 431$('.podcast-popup-wrapper').removeClass('show'); 432$('.podcast-latest-popup-wrapper').removeClass('show'); 433}); 434 435$('.faqs-acc-heading').click(function(){ 436 // if($(this).parent('.faqs-acc-item').hasClass('open')){ 437 // $('.faqs-acc-item').addClass('open'); 438 // $(this).parent('.faqs-acc-item').find('.faqs-acc-body').slide
438Up(); 439 // } 440 // else{ 441 442 // } 443 $(this).parent('.faqs-acc-item').toggleClass('open'); 444 $(this).parent('.faqs-acc-item').find('.faqs-acc-body').slideToggle(); 445}) 446if($('main').hasClass('add-light-header')){ 447 $('header').addClass('light-header'); 448}else{ 449 $('header').removeClass('light-header'); 450} 451 452 453$('.podcast-test-wrapper').slick({ 454 slidesToShow: 6, 455 slidesToScroll: 1, 456 autoplay: false, 457 autoplaySpeed: 2000, 458 responsive: [ 459 { 460 breakpoint: 3000, 461 settings: { 462 slidesToShow: 5 463 } 464 }, 465 { 466 breakpoint: 2400, 467 settings: { 468 slidesToShow: 4 469 } 470 }, 471 { 472 breakpoint: 1500, 473 settings: { 474 slidesToShow: 3 475 } 476 }, 477 { 478 breakpoint: 767, 479 settings: { 480 slidesToShow: 1 481 } 482 }, 483 ] 484 }); 485 486 $('.togetherness-cards').slick({ 487 slidesToShow: 6, 488 slidesToScroll: 1, 489 autoplay: false, 490 autoplaySpeed: 2000, 491 responsive: [ 492 { 493 breakpoint: 3000, 494 settings: { 495 slidesToShow: 5 496 } 497 }, 498 { 499 breakpoint: 2400, 500 settings: { 501 slidesToShow: 4 502 } 503 }, 504 { 505 breakpoint: 1500, 506 settings: { 507 slidesToShow: 3 508 } 509 }, 510 { 511 breakpoint: 767, 512 settings: { 513 slidesToShow: 1 514 } 515 }, 516 ] 517 }); 518 519 520 $('.coaching_client_sec').slick({ 521 slidesToShow: 3, 522 slidesToScroll: 1, 523 autoplay: false, 524 autoplaySpeed: 2000, 525 dots: true, 526 responsive: [ 527 { 528 breakpoint: 1500, 529 settings: { 530 slidesToShow: 3 531 } 532 }, 533 { 534 breakpoint: 1023, 535 settings: { 536 slidesToShow: 2 537 } 538 }, 539 { 540 breakpoint: 767, 541 settings: { 542 slidesToShow: 1 543 } 544 }, 545 ] 546 }); 547 548 549// $('#cs-video-slider').lightSlider({ 550// gallery: true, 551// item: 1, 552// loop:true, 553// slideMargin: 0, 554// thumbItem: 3, 555// vertical:true, 556// }); 557// $('#cs-video-slider').lightSlider({ 558// gallery:true, 559// item:1, 560// vertical:true, 561// vThumbWidth:330, 562// thumbItem:3, 563// thumbMargin:20, 564// slideMargin:0, 565// arrows: true, 566// responsive : [ 567// { 568// breakpoint:991, 569// settings: { 570// thumbItem:4, 571// vThumbWidth:100, 572// vThumbHeight:100, 573// verticalHeight:400, 574// } 575// }, 576// { 577// breakpoint:900, 578// settings: { 579// verticalHeight:345, 580// vThumbWidth:100, 581// } 582// }, 583// { 584// breakpoint:575, 585// settings: { 586// verticalHeight:220, 587// vThumbWidth:50, 588// thumbItem:4, 589// } 590// } 591// ] 592// }); 593 594 595var social_links_wpr = (function () { 596 var wpr = $('.blog-details'); 597 598 if (wpr.length > 0) { 599 var content = wpr.find('.details-faq-content'); 600 var social = wpr.find('.social_links_wpr'); 601 602 fix_scroll(); 603 $(window).scroll(fix_scroll); 604 605 function fix_scroll() { 606 var scrollTop = $(window).scrollTop(); 607 var content_top = content.offset().top; 608 var content_bottom = content_top + content.outerHeight() - social.outerHeight(); 609 610 if ( scrollTop < content_top - 60) { 611 social.removeClass('fixed fixed-bottom'); 612 } else if ( scrollTop >= content_top - 60 && scrollTop <= content_bottom - 60 ) { 613 social.addClass('fixed').removeClass('fixed-bottom'); 614 } else { 615 social.removeClass('fixed').addClass('fixed-bottom'); 616 } 617 } 618 } 619}) 620 621();
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.