1// :: 0.0 Clients SLIDER ACTIVE CODE 2$('.clients-slider.owl-carousel').owlCarousel({ 3 loop: true, 4 margin: 0, 5 nav: false, 6 dots: true, 7 smartSpeed: 3000, 8 autoplay: true, 9 autoplayTimeout: 5000, 10 responsive: { 11 0: { 12 items: 1, 13 }, 14 576: { 15 items: 1 16 }, 17 768: { 18 items: 1 19 }, 20 992: { 21 items: 1 22 }, 23 1140: { 24 items: 1 25 } 26 } 27}); 28 29// :: 0.0 Clients SLIDER ACTIVE CODE 30$('.mob-clients-slider.owl-carousel').owlCarousel({ 31 loop: true, 32 margin: 0, 33 nav: true, 34 dots: false, 35 smartSpeed: 3000, 36 autoplay: true, 37 autoplayTimeout: 5000, 38 navText: ["<i class='fa fa-chevron-left'></i>", "<i class='fa fa-chevron-right'></i>"], 39 responsive: { 40 0: { 41 items: 1, 42 }, 43 576: { 44 items: 1 45 }, 46 768: { 47 items: 1 48 }, 49 992: { 50 items: 1 51 }, 52 1140: { 53 items: 1 54 } 55 } 56}); 57 58 59 60// :: 0.0 Clients SLIDER ACTIVE CODE 61$('.module-testimonial-slider.owl-carousel').owlCarousel({ 62 loop: true, 63 margin: 0, 64 nav: true, 65 dots: false, 66 smartSpeed: 3000, 67 autoplay: true, 68 autoplayTimeout: 5000, 69 navText: ["<i class='fa fa-chevron-left'></i>", "<i class='fa fa-chevron-right'></i>"], 70 responsive: { 71 0: { 72 items: 1, 73 }, 74 576: { 75 items: 1 76 }, 77 768: { 78 items: 1 79 }, 80 992: { 81 items: 2 82 }, 83 1140: { 84 items: 2 85 } 86 } 87}); 88 89 90// :: 0.0 Course SLIDER ACTIVE CODE 91$('.course-slider.owl-carousel').owlCarousel({ 92 loop: true, 93 margin: 0, 94 nav: false, 95 dots: true, 96 smartSpeed: 3000, 97 autoplay: true, 98 autoplayTimeout: 5000, 99 responsive: { 100 0: { 101 items: 1, 102 }, 103 576: { 104 items: 1 105 }, 106 768: { 107 items: 1 108 }, 109 992: { 110 items: 2 111 }, 112 1140: { 113 items: 3 114 } 115 } 116}); 117 118// :: 12.0 TEAM SLIDER ACTIVE CODE 119$('.banner-content.owl-carousel').owlCarousel({ 120 loop: true, 121 margin: 10, 122 nav: false, 123 dots: false, 124 smartSpeed: 2000, 125 autoplay: true, 126 autoplayTimeout: 4000, 127 responsive: { 128 0: { 129 items: 1 130 }, 131 576: { 132 items: 1 133 }, 134 768: { 135 items: 1 136 }, 137 992: { 138 items: 1 139 } 140 } 141}); 142 143 144// :: 12.0 TEAM SLIDER ACTIVE CODE 145$('.stmarys-placement-box.owl-carousel').owlCarousel({ 146 loop: true, 147 margin: 10, 148 nav: false, 149 dots: true, 150 smartSpeed: 2000, 151 autoplay: true, 152 autoplayTimeout: 4000, 153 responsive: { 154 0: { 155 items: 1 156 }, 157 576: { 158 items: 2 159 }, 160 768: { 161 items: 2 162 }, 163 992: { 164 items: 3 165 } 166 } 167}); 168 169 170// :: 12.0 TEAM SLIDER ACTIVE CODE 171$('.stmarys-placement-box-mobile.owl-carousel').owlCarousel({ 172 loop: true, 173 margin: 10, 174 nav: false, 175 dots: true, 176 smartSpeed: 2000, 177 autoplay: true, 178 autoplayTimeout: 4000, 179 responsive: { 180 0: { 181 items: 1 182 }, 183 576: { 184 items: 2 185 }, 186 768: { 187 items: 2 188 }, 189 992: { 190 items: 4 191 } 192 } 193}); 194 195 196// :: 0.0 Clients SLIDER ACTIVE CODE 197$('.goole-comment-area.owl-carousel').owlCarousel({ 198 loop: true, 199 margin: 0, 200 nav: false, 201 dots: true, 202 smartSpeed: 3000, 203 autoplay: true, 204 autoplayTimeout: 5000, 205 responsive: { 206 0: { 207 items: 1 208 }, 209 576: { 210 items: 1 211 }, 212 768: { 213 items: 1 214 }, 215 992: { 216 items: 1 217 }, 218 1140: { 219 items: 3 220 } 221 } 222}); 223 224 225// :: 12.0 TEAM SLIDER ACTIVE CODE 226$('.client-testi-slider.owl-carousel').owlCarousel({ 227 loop: true, 228 margin: 10, 229 nav: false, 230 dots: false, 231 smartSpeed: 2000, 232 autoplay: true, 233 autoplayTimeout: 4000, 234 responsive: { 235 0: { 236 items: 1 237 }, 238 576: { 239 items: 1 240 }, 241 768: { 242 items: 1 243 }, 244 992: { 245 items: 2 246 } 247 } 248}); 249 250// :: 12.0 TEAM SLIDER ACTIVE CODE 251$('.growth-students-testimonials.owl-carousel').owlCarousel({ 252 loop: true, 253 margin: 10, 254 nav: false, 255 dots: true, 256 smartSpeed: 2000,
257 autoplay: false, 258 autoplayTimeout: 4000, 259 responsive: { 260 0: { 261 items: 1 262 }, 263 576: { 264 items: 1 265 }, 266 768: { 267 items: 1 268 }, 269 992: { 270 items: 3 271 } 272 } 273}); 274 275 276// :: 12.0 TEAM SLIDER ACTIVE CODE 277$('.banner-cover-slider.owl-carousel').owlCarousel({ 278 loop: true, 279 margin: 10, 280 nav: false, 281 dots: false, 282 smartSpeed: 2000, 283 autoplay: true, 284 autoplayTimeout: 4000, 285 responsive: { 286 0: { 287 items: 1 288 }, 289 576: { 290 items: 1 291 }, 292 768: { 293 items: 1 294 }, 295 992: { 296 items: 1 297 } 298 } 299}); 300 301 302// :: Growth Short Course SLIDER 303$('.growth-short-course-slider.owl-carousel').owlCarousel({ 304 loop: true, 305 margin: 10, 306 nav: false, 307 dots: true, 308 smartSpeed: 2000, 309 autoplay: true, 310 autoplayTimeout: 4000, 311 responsive: { 312 0: { 313 items: 1, 314 margin: 0 315 }, 316 576: { 317 items: 2, 318 margin: 10 319 }, 320 768: { 321 items: 2, 322 margin: 15 323 }, 324 992: { 325 items: 3, 326 margin: 20 327 }, 328 1200: { 329 items: 4, 330 margin: 20 331 } 332 } 333}); 334 335 336 337// for input and textarea fields 338$("input, textarea").keyup(function () { 339 if ($(this).val() != '') { 340 $(this).addClass('notEmpty'); 341 } else { 342 $(this).removeClass('notEmpty'); 343 } 344}); 345 346// jQuery for page scrolling feature - requires jQuery Easing plugin 347$(document).ready(function () { 348 // Add smooth scrolling to all links 349 $("a").on('click', function (event) { 350 351 // Use a more specific selector or check if the hash is valid and not just '#' 352 if (this.hash !== "" && this.hash !== "#") { 353 // Prevent default anchor click behavior 354 event.preventDefault(); 355 356 // Store hash 357 var hash = this.hash; 358 359 // Using jQuery's animate() method to add smooth page scroll 360 // The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area 361 $('html, body').animate({ 362 scrollTop: $(hash).offset().top 363 }, 800, function () { 364 365 // Add hash (#) to URL when done scrolling (default click behavior) 366 window.location.hash = hash; 367 }); 368 } // End if 369 }); 370 371 // Manual trigger for Enquire Modal 372 $(document).on('click', '.vertical_btn', function (e) { 373 console.log('Enquire clicked - forcing modal show for #exampleModal0'); 374 e.preventDefault(); 375 $('#exampleModal0').modal('show'); 376 }); 377 378 // ââ Brochure Download Modal ââââââââââââââââââââââââââââââââââââââââââââââ 379 380 // Inject modal HTML into body (styled to match the Enquire Now modal) 381 $('body').append( 382 '<div class="modal fade" id="brochureModal" tabindex="-1" role="dialog" aria-hidden="true">' + 383 '<div class="modal-dialog modal-dialog-centered" role="document">' + 384 '<div class="modal-content custom-modal">' + 385 '<a href="#" class="download-close" data-dismiss="modal" aria-label="Close"><span>×</span></a>' + 386 '<div class="modal-body">' + 387 '<div class="modal-heading">' + 388 '<h2>Download Brochure</h2>' + 389 '<p>Fill in your details to get the brochure instantly.</p>' + 390 '</div>' + 391 '<div class="model-project-details">' + 392 '<form id="brochureForm">' + 393 '<div class="row">' + 394 '<div class="col-12"><div class="form-group">' + 395 '<label>Full Name</label>' + 396 '<input type="text" class="form-control" placeholder="Your name" name="name" required>' + 397 '</div></div>' + 398 '<div class="col-12"><div class="form-group">' + 399 '<label>Phone</label>' + 400 '<input type="text" class="form-control" placeholder="Your phone" name="phone" required pattern="[0-9]{10}" maxlength="10" oninvalid="this.setCustomValidity(\'Please Enter 10 Digit Number\')" onchange="this.setCustomValidity(\'\')">' + 401 '</div></div>' + 402 '<div class="col-12"><div class="form-group">' + 403 '<label>E-Mail</label>' + 404 '<input type="email" class="form-control" placeholder="Your email" name="email" required>' + 405 '</div></div>' + 406 '<div class="col-12"><div class="form-group">' + 407 '<div id="brochure-recaptcha"></div>' + 408 '</div></div>' + 409 '<div class="col-12"><div class="form-group">' + 410 '<input type="submit" class="btn-submit-request" value="Submit & Download" name="submit">' + 411 '</div></div>' + 412 '</div>' + 413 '</form>' + 414 '<div id="brochureFormSuccess" style="display:none;text-align:center;padding:30px 10px;">' + 415 '<h4 style="color:#0d2a5c;font-weight:700;">Thank you!</h4>' +
416 '<p style="color:#777;font-size:13px;">Your brochure is downloading...</p>' + 417 '</div>' + 418 '</div>' + 419 '</div>' + 420 '</div>' + 421 '</div>' + 422 '</div>' 423 ); 424 425 // Derive root path from this script's src so AJAX works on all pages 426 var activeJsSrc = $('script[src*="active.js"]').attr('src') || ''; 427 var brochureFormUrl = activeJsSrc.replace(/js\/active\.js.*$/, '') + 'brochure-form.php'; 428 429 var brochureDownloadUrl = ''; 430 var brochureRecaptchaId = null; 431 var brochureRecaptchaReady = false; 432 433 // Intercept all links pointing to the brochure PDF 434 $(document).on('click', 'a[href*="Growth-Academy-A4-brochure.pdf"], a.btn-book[href$=".pdf"]', function (e) { 435 e.preventDefault(); 436 brochureDownloadUrl = $(this).attr('href'); 437 $('#brochureModal').modal('show'); 438 }); 439 440 // Render reCAPTCHA widget when modal first opens 441 $('#brochureModal').on('shown.bs.modal', function () { 442 if (!brochureRecaptchaReady && typeof grecaptcha !== 'undefined') { 443 brochureRecaptchaId = grecaptcha.render('brochure-recaptcha', { 444 sitekey: '6LeLD2QpAAAAAAoy4k2WW1uihI1ZIDg22gbspp35' 445 }); 446 brochureRecaptchaReady = true; 447 } 448 }); 449 450 // AJAX form submission 451 $(document).on('submit', '#brochureForm', function (e) { 452 e.preventDefault(); 453 454 var recaptchaResponse = (typeof grecaptcha !== 'undefined' && brochureRecaptchaId !== null) 455 ? grecaptcha.getResponse(brochureRecaptchaId) 456 : ''; 457 458 if (!recaptchaResponse) { 459 alert('Please complete the reCAPTCHA verification.'); 460 return; 461 } 462 463 $.ajax({ 464 url: brochureFormUrl, 465 type: 'POST', 466 dataType: 'text', 467 data: { 468 name: $(this).find('[name="name"]').val(), 469 phone: $(this).find('[name="phone"]').val(), 470 email: $(this).find('[name="email"]').val(), 471 'g-recaptcha-response': recaptchaResponse, 472 submit: 1 473 }, 474 success: function (response) { 475 var result; 476 try { result = JSON.parse(response); } catch (err) { result = { success: false }; } 477 478 if (result.success) { 479 $('#brochureForm').hide(); 480 $('#brochureFormSuccess').show(); 481 482 // Trigger automatic download 483 setTimeout(function () { 484 var link = document.createElement('a'); 485 link.href = brochureDownloadUrl; 486 link.setAttribute('download', 'Growth-Academy-Brochure.pdf'); 487 document.body.appendChild(link); 488 link.click(); 489 document.body.removeChild(link); 490 }, 400); 491 492 // Close modal after a short delay 493 setTimeout(function () { 494 $('#brochureModal').modal('hide'); 495 }, 3000); 496 497 } else { 498 alert(result.message || 'Something went wrong. Please try again.'); 499 if (brochureRecaptchaId !== null) { grecaptcha.reset(brochureRecaptchaId); } 500 } 501 }, 502 error: function () { 503 alert('There was an error submitting the form. Please try again.'); 504 if (brochureRecaptchaId !== null) { grecaptcha.reset(brochureRecaptchaId); } 505 } 506 }); 507 }); 508 509 // Reset form state when modal closes 510 $('#brochureModal').on('hidden.bs.modal', function () { 511 $('#brochureForm').show()[0].reset(); 512 $('#brochureFormSuccess').hide(); 513 if (brochureRecaptchaId !== null) { grecaptcha.reset(brochureRecaptchaId); } 514 }); 515 516}); 517 518// parallax 519 520$(document).ready(function () { 521 522 //init scrolling parallax 523 $(window).scroll(function (e) { 524 var scrolled = $(window).scrollTop(); 525 if (scrolled < 750) { 526 parallax() 527 } 528 }); 529 530 //define parallax function 531 function parallax() { 532 var scrolled = $(window).scrollTop(); 533 $('#parallax').css('background-positionY', (scrolled * -0.5) + 'px'); 534 }; 535 536}); 537 538// Mentor-Accordion 539 540/* Video Lightbox - Magnific Popup */ 541$('.popup-youtube, .popup-vimeo').magnificPopup({ 542 disableOn: 700, 543 type: 'iframe', 544 mainClass: 'mfp-fade', 545 removalDelay: 160, 546 preloader: false,
547 fixedContentPos: false, 548 iframe: { 549 patterns: { 550 youtube: { 551 index: 'youtube.com/', 552 id: function (url) { 553 var m = url.match(/[\\?\\&]v=([^\\?\\&]+)/); 554 if (!m || !m[1]) return null; 555 return m[1]; 556 }, 557 src: 'https://www.youtube.com/embed/%id%?autoplay=1' 558 }, 559 vimeo: { 560 index: 'vimeo.com/', 561 id: function (url) { 562 var m = url.match(/(https?:\/\/)?(www.)?(player.)?vimeo.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*/); 563 if (!m || !m[5]) return null; 564 return m[5]; 565 }, 566 src: 'https://player.vimeo.com/video/%id%?autoplay=1' 567 } 568 } 569 } 570});
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.