1function lenisSetup() { 2 const e = new Lenis({ 3 duration: 1.2, 4 easing: e => 1 === e ? 1 : 1 - Math.pow(2, -10 * e), 5 direction: "vertical", 6 gestureDirection: "vertical", 7 smooth: !0, 8 smoothTouch: !1, 9 touchMultiplier: 2 10 }); 11 e.scrollTo(document.querySelector(".scrolllenis")), requestAnimationFrame((function i(s) { 12 e.raf(s), requestAnimationFrame(i) 13 })) 14} 15 16function showDivsContinuously(e) { 17 const i = e.querySelectorAll(".same"); 18 let s = 0; 19 i[s].style.opacity = "1", setInterval((() => { 20 i.forEach((e => e.style.opacity = "0")), s = (s + 1) % i.length, i[s].style.opacity = "1" 21 }), 2e3) 22} 23 24function scrollToSection() { 25 document.querySelector("#mySection").scrollIntoView({ 26 behavior: "smooth" 27 }) 28} 29$(window).scroll((function() { 30 $(this).scrollTop() > 1 ? $(".header-call").addClass("sticky") : $(".header-call").removeClass("sticky") 31})), 32 33 34 35$(document).ready((function() { 36 37 var t = Math.floor(Date.now() / 1000); 38 39 // 2) Hidden time field fill karna 40 var $ct = $('#cf7_time'); 41 if ($ct.length) { 42 $ct.val(t); 43 } 44 45 // 3) Honeypot field hide karna 46 var $hp = $('#hp_field'); 47 if ($hp.length) { 48 $hp.hide(); 49 } 50 51 var userClicked = false; 52 53 // Desktop only (>1199px) 54 if ($(window).width() > 1199) { 55 $(".toggle-form").click(function () { 56 userClicked = true; 57 $(".home-form").toggleClass("open"); 58 }); 59 60 // Auto open after 10s if not clicked 61 if ('requestIdleCallback' in window) { 62 requestIdleCallback(function () { 63 setTimeout(function () { 64 if (!userClicked) { 65 $(".home-form").addClass("open"); 66 } 67 }, 20000); 68 }); 69 } else { 70 setTimeout(function () { 71 if (!userClicked) { 72 $(".home-form").addClass("open"); 73 } 74 }, 20000); 75 } 76 } 77 78 // Mobile only (<1199px) â no auto open 79 if ($(window).width() <= 1199) { 80 $(".toggle-form").click(function () { 81 $(".home-form").toggleClass("open"); 82 }); 83 } 84 85 // Close button 86 $(".close").click(function () { 87 $(".home-form").removeClass("open"); 88 }); 89 90 91$('.numbrbtn').html(function(_, oldHtml) { 92 return '<span>' + oldHtml + '</span>'; 93}); 94 // 2. Toggle theme on checkbox change (instead of label click) 95 96 // Page load پر localStorage Ø³Û theme apply کرÛÚº 97 if(localStorage.getItem('theme') === 'dark') { 98 $('body').addClass('dark-mode'); 99 $('.checkbox').prop('checked', true); // اگر آپ کا checkbox dark mode Ú©Û ÙÛÛ checked ÛÙÙØ§ ÚØ§ÛÛÛ 100 } else { 101 $('body').removeClass('dark-mode'); 102 $('.checkbox').prop('checked', false); 103 } 104 105 // checkbox change event 106 $('.checkbox').on('change', function() { 107 $("body").toggleClass("dark-mode"); 108 109 if ($("body").hasClass("dark-mode")) { 110 localStorage.setItem("theme", "dark"); 111 } else { 112 localStorage.setItem("theme", "light"); 113 } 114 }); 115 116 window.addEventListener('storage', function(event) { 117 if(event.key === 'theme') { 118 applyTheme(event.newValue); 119 } 120 }); 121 122//19-09 2pm 123 124 // 2. Toggle theme and active class on checkbox change 125// $('.checkbox').on("change", function () { 126// console.log('test'); 127// $("body").toggleClass("dark-mode"); 128 129// if ($("body").hasClass("dark-mode")) { 130// localStorage.setItem("theme", "dark"); 131 132// } else { 133// localStorage.setItem("theme", "light"); 134 135// } 136// }); 137 //19-9 2pm 138 139 140// $(".get-town, .connect-bg").each(function() { 141// // Remove lazy-load related classes 142// $(this).removeClass("lazy entered applied"); 143 144// // Remove lazy-load related data attributes 145// $(this).removeAttr("data-bg-multi").removeAttr("data-ll-status"); 146 147// // Remove inline background-image added by lazy load 148// this.style.removeProperty("background-image"); 149// this.style.removeProperty("background"); // optional: agar full background reset karna ho 150// }); 151 152 153 154 155 // if ($("body").hasClass("dark-mode")) { 156 // var $town = $("#get-town"); 157 158 // // Lazy load wali classes remove 159 // $town.removeClass("lazy entered applied"); 160
161 // // Background direct inline laga do 162 // var bg = $town.attr("data-bg-multi"); 163 // if (bg) { 164 // $town.css("background-image", bg); 165 // } 166 // } 167 168 function mobileMenuFix() { 169 if ($(window).width() <= 1199) { 170 // Sirf ek martaba bind karna 171 $('.menu-item-has-children > a').off('click.mobileMenu').on('click.mobileMenu', function(e) { 172 var $parent = $(this).parent(); 173 174 if (!$parent.hasClass('open')) { 175 e.preventDefault(); // Pehli dafa link open na ho 176 // Pehle sab band karo 177 $('.menu-item-has-children').removeClass('open').children('.dropdown-menu').slideUp(200); 178 // Current ko open karo 179 $parent.addClass('open').children('.dropdown-menu').slideDown(200); 180 } 181 // Agar already open hai to ab link kaam karega (doosri tap pe) 182 }); 183 184 // Bahar click pe band 185 $(document).off('click.mobileMenu').on('click.mobileMenu', function(e) { 186 if (!$(e.target).closest('.menu-item-has-children').length) { 187 $('.menu-item-has-children').removeClass('open').children('.dropdown-menu').slideUp(200); 188 } 189 }); 190 } else { 191 // Desktop ke liye reset 192 $('.menu-item-has-children > a').off('click.mobileMenu'); 193 $(document).off('click.mobileMenu'); 194 $('.menu-item-has-children').removeClass('open').children('.dropdown-menu').removeAttr('style'); 195 } 196 } 197 198 mobileMenuFix(); // Page load pe 199 $(window).on('resize', function() { 200 mobileMenuFix(); 201 }); 202 $(".card").click((function(e) { 203 e.preventDefault(), $(this).closest(".card").toggleClass("flip") 204 })); 205 new Swiper(".feelSlider", { 206 loop: !0, 207 autoplay: !0, 208 slidesPerView: 1, 209 centeredSlides: !0, 210 breakpoints: { 211 1024: { 212 slidesPerView: 2.2, 213 spaceBetween: 50 214 }, 215 768: { 216 slidesPerView: 3, 217 spaceBetween: 20 218 }, 219 640: { 220 slidesPerView: 2, 221 spaceBetween: 15 222 }, 223 576: { 224 slidesPerView: 1, 225 spaceBetween: 15 226 }, 227 375: { 228 slidesPerView: 1, 229 spaceBetween: 10 230 } 231 }, 232 navigation: { 233 nextEl: ".swiper-button-next", 234 prevEl: ".swiper-button-prev" 235 }, 236 pagination: { 237 el: ".swiper-pagination", 238 clickable: !0 239 }, 240 on: { 241 slideChangeTransitionStart: function() { 242 document.querySelectorAll(".video-react-video").forEach((function(e) { 243 e.pause() 244 })) 245 }, 246 slideChangeTransitionEnd: function() { 247 var e = document.querySelector(".swiper-slide-active").querySelector(".video-react-video"); 248 e && e.play() 249 } 250 } 251 }), new Swiper(".chooseSlider", { 252 loop: !0, 253 slidesPerView: 1, 254 centeredSlides: !0, 255 breakpoints: { 256 1024: { 257 slidesPerView: 2.2, 258 spaceBetween: 20 259 }, 260 768: { 261 slidesPerView: 2.2, 262 spaceBetween: 20 263 }, 264 640: { 265 slidesPerView: 1.5, 266 spaceBetween: 10 267 }, 268 576: { 269 slidesPerView: 1.3, 270 spaceBetween: 10 271 }, 272 375: { 273 slidesPerView: 1, 274 spaceBetween: 10 275 } 276 }, 277 navigation: { 278 nextEl: ".swiper-button-next", 279 prevEl: ".swiper-button-prev" 280 }, 281 pagination: { 282 el: ".swiper-pagination" 283 }, 284 scrollbar: { 285 el: ".swiper-scrollbar" 286 } 287 }), new Swiper(".speedSlider", { 288 loop: !0, 289 slidesPerView: 1, 290 centeredSlides: !0, 291 breakpoints: { 292 1024: { 293 slidesPerView: 3, 294 spaceBetween: 20 295 }, 296 768: { 297 slidesPerView: 3, 298 spaceBetween: 20 299 }, 300 640: { 301 slidesPerView: 2, 302 spaceBetween: 10 303 }, 304 576: { 305 slidesPerView: 2, 306 spaceBetween: 10 307 }, 308 375: { 309 slidesPerView: 1, 310 spaceBetween: 10 311 } 312 }, 313 navigation: { 314 nextEl: ".swiper-button-next", 315 prevEl: ".swiper-button-prev" 316 }, 317 scrollbar: { 318 el: ".swiper-scrollbar" 319 } 320 }), new Swiper(".digitalSlider", { 321 loop: !0, 322 slidesPerView: 1, 323 breakpoints: { 324 1024: { 325 slidesPerView: 1, 326 spaceBetween: 0 327 }, 328 768: { 329 slidesPerView: 1, 330 spaceBetween: 0 331 }, 332 640: { 333 slidesPerView: 1, 334 spaceBetween: 0 335 }, 336 576: { 337 slidesPerView: 1, 338 spaceBetween: 0 339 }, 340 375: { 341 slidesPerView: 1, 342 spaceBetween: 0 343 } 344 }, 345 pagination: { 346 el: ".swiper-pagination", 347 clickable: !0 348 }, 349 scrollbar: { 350 el: ".swiper-scrollbar" 351 } 352 });
353 $(".faq-section.service-pgfaq .card").click((function() { 354 $(this).toggleClass("active"), $(".faq-section.service-pgfaq .card").not(this).removeClass("active") 355 })), $(".state-wrap #dropdownButton").on("click", (function(e) { 356 $(this).closest(".state-wrap .dropdown").toggleClass("open") 357 })), $(window).on("click", (function(e) { 358 $(e.target).closest(".dropdown").length || $(".state-wrap .dropdown").removeClass("open") 359 })), $(".number").on("click", (function() { 360 gtag("event", "phone_click", { 361 event_category: "engagement", 362 event_label: window.location.pathname 363 }) 364 })) 365})), 366 367 368$("#myModal").on("shown.bs.modal", (function() { 369 const e = $(".lenis-scroll")[0]; 370 lenis.scrollTo(e) 371})), $("#myModal").on("hide.bs.modal", (function() { 372 lenis.stop() 373})), $(document).ready((function() { 374 new Swiper(".swiper-container", { 375 autoplay: { 376 delay: 0, 377 disableOnInteraction: !1 378 }, 379 spaceBetween: 50, 380 slidesPerView: 4, 381 loop: !0, 382 speed: 4e3, 383 freeMode: !0 384 }); 385 386 function e(e) { 387 $("#faq-img1, #faq-img2, #faq-img3").hide(), "collapse-1" === e ? $("#faq-img1").show() : "collapse-2" === e ? $("#faq-img2").show() : "collapse-3" === e && $("#faq-img3").show() 388 } 389 e("collapse-1"), $("#accordion").on("show.bs.collapse", (function(i) { 390 e(i.target.id) 391 })), document.querySelectorAll(".no-anual").forEach((e => { 392 e.querySelectorAll(".same").forEach(((e, i) => { 393 0 !== i && (e.style.opacity = "0") 394 })), showDivsContinuously(e) 395 })); 396 new Swiper(".morexfntySlider", { 397 loop: !0, 398 slidesPerView: 1, 399 breakpoints: { 400 1024: { 401 slidesPerView: 4, 402 spaceBetween: 20 403 }, 404 768: { 405 slidesPerView: 3, 406 spaceBetween: 20 407 }, 408 640: { 409 slidesPerView: 3, 410 spaceBetween: 10 411 }, 412 576: { 413 slidesPerView: 2, 414 spaceBetween: 10 415 }, 416 375: { 417 slidesPerView: 1, 418 spaceBetween: 10 419 } 420 }, 421 navigation: { 422 nextEl: ".swiper-button-next", 423 prevEl: ".swiper-button-prev" 424 }, 425 scrollbar: { 426 el: ".swiper-scrollbar" 427 } 428 }); 429 jQuery(".progress-bar").each((function() { 430 jQuery(this).find(".progress-content").animate({ 431 width: jQuery(this).attr("data-percentage") 432 }, 2e3), jQuery(this).find(".progress-number-mark").animate({ 433 left: jQuery(this).attr("data-percentage") 434 }, { 435 duration: 2e3, 436 step: function(e, i) { 437 var s = Math.round(e); 438 jQuery(this).find(".percent").html(s + "%") 439 } 440 }) 441 })), $(".bounce-element").click((function() { 442 return $("html, body").animate({ 443 scrollTop: 640 444 }, 800), !1 445 })), $(".blogPage.detail table").each((function() { 446 var e = $(this); 447 e.hasClass("set-table") || e.addClass("set-table"), e.parent().hasClass("table-responsive") || e.wrap('<div class="table-responsive"></div>') 448 })) 449})), 450 451$(window).on("load", (function() { 452 453 454 // jQuery(".fast-service, .fast-content, .connect-bg").each(function() { 455 // jQuery(this).removeClass("lazy entered applied") 456 // .removeAttr("data-bg-multi data-ll-status")[0] 457 // .style.removeProperty("background-image"); 458 459 // this.style.removeProperty("background"); // optional 460 // }); 461 462 // jQuery(".fast-content").each(function() { 463 // // Reset background-image (remove plugin garbage) 464 // this.style.removeProperty("background-image"); 465 466 // // Apply clean correct background 467 // this.style.setProperty( 468 // "background-image",
469 // "url('https://www.talkwalkconnection.com/wp-content/themes/talkwalk/images/shapefast.png')" 470 // ); 471 // this.style.setProperty("background-position", "top center", "important"); 472 // this.style.setProperty("background-repeat", "no-repeat", "important"); 473 // this.style.setProperty("background-size", "cover", "important"); 474 // }); 475 476 477 // jQuery(".connect-bg, .get-town").each(function() { 478 // // Reset background-image (remove plugin garbage) 479 // this.style.removeProperty("background-image"); 480 481 // // Apply clean correct background 482 // this.style.setProperty( 483 // "background-image", 484 // "url('https://www.talkwalkconnection.com/wp-content/themes/talkwalk/images/placebg.jpg')" 485 // ); 486 // this.style.setProperty("background-position", "top center", "important"); 487 // this.style.setProperty("background-repeat", "no-repeat", "important"); 488 // this.style.setProperty("background-size", "cover", "important"); 489 // }); 490 jQuery(".fast-service, .fast-content, .connect-bg").each(function () { 491 jQuery(this).removeClass("lazy entered applied") 492 .removeAttr("data-bg-multi data-ll-status")[0] 493 .style.removeProperty("background-image"); 494 495 this.style.removeProperty("background"); // optional 496 }); 497 498 jQuery(".fast-content").each(function () { 499 this.style.removeProperty("background-image"); 500 this.style.setProperty( 501 "background-image", 502 "url('https://www.talkwalkconnection.com/wp-content/themes/talkwalk/images/shapefast.png')" 503 ); 504 this.style.setProperty("background-position", "top center", "important"); 505 this.style.setProperty("background-repeat", "no-repeat", "important"); 506 this.style.setProperty("background-size", "cover", "important"); 507 }); 508 509 jQuery(".connect-bg, .get-town").each(function () { 510 this.style.removeProperty("background-image"); 511 this.style.setProperty( 512 "background-image", 513 "url('https://www.talkwalkconnection.com/wp-content/themes/talkwalk/images/placebg.jpg')" 514 ); 515 this.style.setProperty("background-position", "top center", "important"); 516 this.style.setProperty("background-repeat", "no-repeat", "important"); 517 this.style.setProperty("background-size", "cover", "important"); 518 }); 519 520 521$(window).width() < 768 && $(".img-fluid.baner_img.show-desktop").remove() 522})), $((function() { 523 AOS.init({ 524 duration: 1200, 525 disable: function() { 526 return window.innerWidth < 1200 527 } 528 }) 529})); 530 531 532// document.addEventListener("DOMContentLoaded", function() { 533// if (typeof gsap !== "undefined") { 534// // Navbar animation 535// gsap.fromTo(".an-navbar", 536// { y: -100, opacity: 0, visibility: "hidden" }, // Initial 537// { y: 0, opacity: 1, visibility: "visible", duration: 1, ease: "power3.out" } 538// ); 539 540// // Hero image animation 541// gsap.fromTo(".hero-image", 542// { opacity: 0, y: -100, visibility: "hidden" }, 543// { opacity: 1, y: 0, visibility: "visible", duration: 1.2, ease: "power3.out" } 544// ); 545 546// // Hero content animation 547// gsap.fromTo(".hero-content", 548// { opacity: 0, scale: 0.8, visibility: "hidden" }, 549// { opacity: 1, scale: 1, visibility: "visible", duration: 1, delay: 0.5, ease: "back.out(1.7)" } 550// ); 551// } 552// }); 553 554 555document.addEventListener('DOMContentLoaded', function() { 556 document.querySelectorAll('form.wpcf7-form').forEach(function(form) { 557 if (!form.querySelector('input[name="g-recaptcha-response"]')) { 558 var input = document.createElement('input'); 559 input.type = 'hidden'; 560 input.name = 'g-recaptcha-response'; 561 form.appendChild(input); 562 } 563 564 form.addEventListener('submit', function(e) { 565 e.preventDefault(); 566 var tokenInput = form.querySelector('input[name="g-recaptcha-response"]'); 567 if (!tokenInput) return; 568 569 grecaptcha.ready(function() { 570 grecaptcha.execute('6LcREuIrAAAAAAcDd94vMxM_QeadS6wNhAViFboj', { action: 'contact' }) 571 .then(function(token) { 572 tokenInput.value = token; 573 form.submit(); // now submit the form 574 }); 575 }); 576 }); 577 });
578});
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.