PageSourceSearch

https://kadambini.org/public/js/footer.js?kadambini=1922220732

js kadambini.org collected 2026-10-03 02:00:26 UTC 16,940 bytes, 602 lines download raw bytes

1$(".cancel-pop").click(function () {
2  $("#replace-pop").css({ transform: "scale(0)" });
3});
4function hidepop() {
5  $("#replace-pop").css({ transform: "scale(0)" });
6}
7
8$("#video_modal1").on("click", function () {
9  $(this).addClass("show");
10  $("#video_body1").append(
11    '<iframe class="iff1" width="560" height="315" src="https://www.youtube.com/embed/S-tdhs_HUc8?autoplay=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>',
12  );
13});
14
15// ----------------------------
16$("#video_modal2").on("click", function () {
17  $(this).addClass("show");
18  $("#video_body2").append(
19    '<iframe class="iff2" width="560" height="315" src="https://www.youtube.com/embed/PCx-ej0xDGA?autoplay=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>',
20  );
21});
22
23// ----------------------------
24$("#video_modal3").on("click", function () {
25  $(this).addClass("show");
26  $("#video_body3").append(
27    ' <iframe class="iff3" width="560" height="315" src="https://www.youtube.com/embed/1yg3DD-Gm0c?autoplay=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>',
28  );
29});
30
31// ----------------------------
32$("#video_modal4").on("click", function () {
33  $(this).addClass("show");
34  $("#video_body4").append(
35    '  <iframe class="iff4" width="560" height="315" src="https://www.youtube.com/embed/VVGtRmPmNaU?autoplay=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>',
36  );
37});
38
39// ----------------------------
40$("#video_modal5").on("click", function () {
41  $(this).addClass("show");
42  $("#video_body5").append(
43    '<iframe class="iff5" width="560" height="315" src="https://www.youtube.com/embed/eWq3S78SwAs?autoplay=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>',
44  );
45});
46//-----------------------------
47$("#video_modal6").on("click", function () {
48  $(this).addClass("show");
49  $("#video_body6").append(
50    '<iframe class="iff6" width="560" height="315" src="https://www.youtube.com/embed/7w4Ac3chLl4?autoplay=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>',
51  );
52});
53$(document).keyup(function (e) {
54  if (e.keyCode === 27) {
55    close_video();
56  }
57});
58function close_video() {
59  $("#video_body1").find("iframe").remove();
60  $("#video_body2").find("iframe").remove();
61  $("#video_body3").find("iframe").remove();
62  $("#video_body4").find("iframe").remove();
63  $("#video_body5").find("iframe").remove();
64  $("#video_body6").find("iframe").remove();
65}
66
67function rcntswpr() {
68  var men1 = "";
69  var men2 = "";
70  var men3 = "";
71  var menu = [men1, men2, men3];
72  var mySwiper = new Swiper(".swiper-container5", {
73    speed: 2000,
74    spaceBetween: 12,
75    pagination: {
76      el: ".swiper-pagination",
77      clickable: true,
78      renderBullet: function (index, className) {
79        return '<span class="' + className + '">' + menu[index] + "</span>";
80      },
81    },
82    autoplay: {
83      delay: 100000,
84    },
85
86    navigation: {
87      nextEl: ".swiper-button-next15 ",
88      prevEl: ".swiper-button-prev15",
89    },
90  });
91}
92
93function prvsswpr() {
94  var swiper = new Swiper(".mySwiper35", {
95    // autoplay: {
96    //   delay: 1500,
97    //   disableOnInteraction: false,
98    // },
99    speed: 2000,
100    navigation: {
101      nextEl: ".swiper-button-next85",
102      prevEl: ".swiper-button-prev85",
103    },
104  });
105}
106
107function bookswiper() {
108  var swiper = new Swiper(".mySwiper36", {
109    autoplay: {
110      delay: 1500,
111      disableOnInteraction: false,
112    },
113    speed: 3000,
114    pagination: {
115      el: ".swiper-pagination",
116      clickable: true,
117    },
118  });
119}
120
121function bookswiper1() {
122  var swiper1212 = new Swiper(".mySwiper1212 ", {
123    slidesPerView: 4,
124    slidesPerGroup: 2,
125    loopedSlides: 2,
126    spaceBetween: 12,
127    loop: true,
128    autoplay: {
129      delay: 2000,
130    },
131    speed: 600,
132    navigation: {
133      nextEl: ".swiper-button-next",
134      prevEl: ".swiper-button-prev",
135    },
136    breakpoints: {
137      220: {
138        slidesPerView: 2,
139        slidesPerGroup: 1,
140        autoplay: false,
141        speed: 600,
142        spaceBetween: 10,
143      },
144      550: {
145        slidesPerView: 2,
146        slidesPerGroup: 2,
147      },
148      768: {
149        slidesPerView: 3,
150      },
151      880: {
152        slidesPerView: 3,
153      },
154      992: {
155        slidesPerView: 4,
156      },
157      1200: {
158        slidesPerView: 5,
159      },
160      // 1536: {
161      //   slidesPerView: 4,
162      // },
163    },
164  });
165}
166
167var swiper58 = new Swiper(".mySwiper58", {
168  spaceBetween: 30,
169  centeredSlides: true,
170  // autoplay: {
171  //   delay: 1500,
172  //   disableOnInteraction: false,
173  // },
174  speed: 5000,
175  pagination: {
176    el: ".swiper-pagination",
177    clickable: true,
178  },
179  navigation: {
180    nextEl: ".swiper-button-next",
181    prevEl: ".swiper-button-prev",
182  },
183});
184
185$(".button-wrapper").on("click", function (e) {
186  e.preventDefault();
187  $(".button-wrapper").children().toggleClass("button-transform");
188  $("#menu").toggleClass("menu-active");
189});
190
191$(".part-bt").click(function () {
192  $("#connect").css({
193    left: "50%",
194  });
195});
196
197$(".cross").click(function () {
198  $("#connect").css({
199    left: "-60%",
200    " opacity": "1,",
201  });
202});
203
204$(".part-bt1").click(function () {
205  $("#connect1").css({
206    left: "50%",
207  });
208});
209
210$(".cross1").click(function () {
211  $("#connect1").css({
212    left: "-60%",
213    " opacity": "1,",
214  });
215});
216
217var timeoutHandler = null;
218$(".add").click(function () {
219  $(".cart-popup").addClass("cart-popup-new");
220  if (timeoutHandler) clearTimeout(timeoutHandler);
221  timeoutHandler = setTimeout(function () {
222    $(".cart-popup").removeClass("cart-popup-new");
223  }, 5000);
224});
225
226$(document).ready(function () {
227  $(".anim").addClass("anim-new");
228});
229
230$(".otp").click(function () {
231  $(".inner-lg-frm2").css({ display: "block" });
232  $(".inner-lg-frm").css({ display: "none" });
233});
234$(".back-log").click(function () {
235  $(".inner-lg-frm6").css({ display: "none" });
236  $(".inner-lg-frm5").css({ display: "none" });
237  $(".inner-lg-frm4").css({ display: "none" });
238  $(".inner-lg-frm3").css({ display: "none" });
239  $(".inner-lg-frm2").css({ display: "none" });
240  $(".inner-lg-frm").css({ display: "block" });
241});
242
243$(".sign-form").click(function () {
244  $(".inner-lg-frm5").css({ display: "none" });
245  $(".inner-lg-frm4").css({ display: "none" });
246  $(".inner-lg-frm3").css({ display: "block" });
247  $(".inner-lg-frm2").css({ display: "none" });
248  $(".inner-lg-frm").css({ display: "none" });
249});
250$(".lg-bt").click(function () {
251  $(".inner-lg-frm5").css({ display: "none" });
252  $(".inner-lg-frm4").css({ display: "block" });
253  $(".inner-lg-frm3").css({ display: "none" });
254  $(".inner-lg-frm2").css({ display: "none" });
255  $(".inner-lg-frm").css({ display: "none" });
256});
257$(".forgot").click(function () {
258  $(".inner-lg-frm5").css({ display: "block" });
259  $(".inner-lg-frm4").css({ display: "none" });
260  $(".inner-lg-frm3").css({ display: "none" });
261  $(".inner-lg-frm2").css({ display: "none" });
262  $(".inner-lg-frm").css({ display: "none" });
263});
264$(".back-log2").click(function () {
265  $(".inner-lg-frm").css({ display: "block" });
266  $(".inner-lg-frm5").css({ display: "none" });
267  $(".inner-lg-frm4").css({ display: "none" });
268  $(".inner-lg-frm3").css({ display: "none" });
269  $(".inner-lg-frm2").css({ display: "none" });
270});
271$(".lg-bt2").click(function () {
272  $(".inner-lg-frm6").css({ display: "block" });
273  $(".inner-lg-frm5").css({ display: "none" });
274  $(".inner-lg-frm4").css({ display: "none" });
275  $(".inner-lg-frm3").css({ display: "none" });
276  $(".inner-lg-frm2").css({ display: "none" });
277  $(".inner-lg-frm").css({ display: "none" });
278});
279
280document.querySelectorAll(".drop-zone__input").forEach((inputElement) => {
281  const dropZoneElement = inputElement.closest(".drop-zone");
282
283  dropZoneElement.addEventListener("click", (e) => {
284    inputElement.click();
285  });
286
287  inputElement.addEventListener("change", (e) => {
288    if (inputElement.files.length) {
289      updateThumbnail(dropZoneElement, inputElement.files[0]);
290    }
291  });
292
293  dropZoneElement.addEventListener("dragover", (e) => {
294    e.preventDefault();
295    dropZoneElement.classList.add("drop-zone--over");
296  });
297
298  ["dragleave", "dragend"].forEach((type) => {
299    dropZoneElement.addEventListener(type, (e) => {
300      dropZoneElement.classList.remove("drop-zone--over");
301    });
302  });
303
304  dropZoneElement.addEventListener("drop", (e) => {
305    e.preventDefault();
306
307    if (e.dataTransfer.files.length) {
308      inputElement.files = e.dataTransfer.files;
309      updateThumbnail(dropZoneElement, e.dataTransfer.files[0]);
310    }
311
312    dropZoneElement.classList.remove("drop-zone--over");
313  });
314});
315
316function updateThumbnail(dropZoneElement, file) {
317  let thumbnailElement = dropZoneElement.querySelector(".drop-zone__thumb");
318
319  // First time - remove the prompt
320  if (dropZoneElement.querySelector(".drop-zone__prompt")) {
321    dropZoneElement.querySelector(".drop-zone__prompt").remove();
322  }
323
324  // First time - there is no thumbnail element, so lets create it
325  if (!thumbnailElement) {
326    thumbnailElement = document.createElement("div");
327    thumbnailElement.classList.add("drop-zone__thumb");
328    dropZoneElement.appendChild(thumbnailElement);
329  }
330
331  thumbnailElement.dataset.label = file.name;
332
333  // Show thumbnail for image files
334  if (file.type.startsWith("image/")) {
335    const reader = new FileReader();
336
337    reader.readAsDataURL(file);
338    reader.onload = () => {
339      thumbnailElement.style.backgroundImage = `url('${reader.result}')`;
340    };
341  } else {
342    thumbnailElement.style.backgroundImage = null;
343  }
344}
345
346$(".canva_open_btn").click(function () {
347  $("#shipping").css({
348    top: "0%",
349  });
350});
351$(".cl").click(function () {
352  $("#shipping").css({
353    top: "-150%",
354  });
355});
356
357$(".srch").click(function () {
358  $(".search-box").css({
359    top: "9%",
360  });
361});
362
363// Search with debounce Added
364let debounceTimer;
365
366$("#search-bar").on("keyup", function () {
367  clearTimeout(debounceTimer);
368
369  let query = $(this).val();
370
371  if (query.length < 4) {
372    $(".output").html("").slideUp();
373    return;
374  }
375
376  debounceTimer = setTimeout(function () {
377    $.ajax({
378      url: project_path + "/search-products.php",
379      method: "GET",
380      data: { q: query },
381      success: function (res) {
382        let html = "";
383
384        if (res?.data && res?.data?.length > 0) {
385          res.data.forEach((item) => {
386            html += `
387                            <li class="prediction-item">
388                                <a href="${base_path}details/${item.prod_code}/${item.optonvarint}">
389                                    <img src="${base_path}public/images/products/${item.product_image}" width="40"/>
390                                    ${item.product_name}
391                                </a>
392                            </li>
393                        `;
394          });
395
396          $(".output").html(html).slideDown();
397        } else {
398          $(".output").html("").slideUp();
399        }
400      },
401    });
402  }, 300);
403});
404
405$(document).on("click", function (e) {
406  // If click is NOT inside search bar or output dropdown
407  if (
408    !$(e.target).closest("#search-bar").length &&
409    !$(e.target).closest(".output").length
410  ) {
411    $(".output").slideUp();
412  }
413});
414
415/* Whatsapp Chat Widget  */
416($(document).on("click", "#send-it", function () {
417  var a = document.getElementById("chat-input");
418  if ("" != a.value) {
419    var b = $("#get-number").text(),
420      c = document.getElementById("chat-input").value,
421      d = "https://web.whatsapp.com/send",
422      e = b,
423      f = "&text=" + c;
424    if (
425      /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
426        navigator.userAgent,
427      )
428    )
429      var d = "whatsapp://send";
430    var g = d + "?phone=+917328841932" + e + f;
431    window.open(g, "_blank");
432  }
433}),
434  $(document).on("click", ".informasi", function () {
435    ((document.getElementById("get-number").innerHTML = $(this)
436      .children(".my-number")
437      .text()),
438      $(".start-chat,.get-new").addClass("show").removeClass("hide"),
439      $(".home-chat,.head-home").addClass("hide").removeClass("show"),
440      (document.getElementById("get-nama").innerHTML = $(this)
441        .children(".info-chat")
442        .children(".chat-nama")
443        .text()),
444      (document.getElementById("get-label").innerHTML = $(this)
445        .children(".info-chat")
446        .children(".chat-label")
447        .text()));
448  }),
449  $(document).on("click", ".close-chat", function () {
450    $("#whatsapp-chat").addClass("hide").removeClass("show");
451  }),
452  $(document).on("click", ".blantershow-chat", function () {
453    $("#whatsapp-chat").addClass("show").removeClass("hide");
454  }));
455
456$(".fnd-bt3").click(function () {
457  $("#event-award").css({
458    display: "block",
459  });
460  $("#event-annual-function").css({
461    display: "none",
462  });
463  $("#event-patrika-hata").css({
464    display: "none",
465  });
466  $(".a3").css({
467    "background-color": "#990f02",
468    color: "white",
469  });
470  $(".a1").css({
471    "background-color": "white",
472    color: "red",
473  });
474  $(".a2").css({
475    "background-color": "white",
476    color: "red",
477  });
478});
479$(".fnd-bt2").click(function () {
480  $("#event-patrika-hata").css({
481    display: "block",
482  });
483  $("#event-annual-function").css({
484    display: "none",
485  });
486  $("#event-award").css({
487    display: "none",
488  });
489  $(".a2").css({
490    "background-color": "#990f02",
491    color: "white",
492  });
493  $(".a1").css({
494    "background-color": "white",
495    color: "red",
496  });
497  $(".a3").css({
498    "background-color": "white",
499    color: "red",
500  });
501});
502
503// Event Page
504$(".fnd-bt1").click(function () {
505  $("#event-patrika-hata").css({
506    display: "none",
507  });
508  $("#event-annual-function").css({
509    display: "block",
510  });
511  $("#event-award").css({
512    display: "none",
513  });
514  $(".a2").css({
515    "background-color": "white",
516    color: "red",
517  });
518  $(".a1").css({
519    "background-color": "#990f02",
520    color: "white",
521  });
522  $(".a3").css({
523    "background-color": "white",
524    color: "red",
525  });
526});
527
528$(".clos").click(function () {
529  $(".iframe1").css({ display: "none" });
530  $(".iframe2").css({ display: "none" });
531  $(".iframe3").css({ display: "none" });
532  $(".iframe4").css({ display: "none" });
533  $(".iframe5").css({ display: "none" });
534  $(".iframe6").css({ display: "none" });
535});
536$(".vdo-tp1").click(function () {
537  $(".iframe1").css({ display: "block" });
538  $(".iframe2").css({ display: "none" });
539  $(".iframe3").css({ display: "none" });
540  $(".iframe4").css({ display: "none" });
541  $(".iframe5").css({ display: "none" });
542  $(".iframe6").css({ display: "none" });
543});
544$(".vdo-tp2").click(function () {
545  $(".iframe1").css({ display: "none" });
546  $(".iframe2").css({ display: "block" });
547  $(".iframe3").css({ display: "none" });
548  $(".iframe4").css({ display: "none" });
549  $(".iframe5").css({ display: "none" });
550  $(".iframe6").css({ display: "none" });
551});
552$(".vdo-tp3").click(function () {
553  $(".iframe1").css({ display: "none" });
554  $(".iframe2").css({ display: "none" });
555  $(".iframe3").css({ display: "block" });
556  $(".iframe4").css({ display: "none" });
557  $(".iframe5").css({ display: "none" });
558  $(".iframe6").css({ display: "none" });
559});
560$(".vdo-tp4").click(function () {
561  $(".iframe1").css({ display: "none" });
562  $(".iframe2").css({ display: "none" });
563  $(".iframe3").css({ display: "none" });
564  $(".iframe4").css({ display: "block" });
565  $(".iframe5").css({ display: "none" });
566  $(".iframe6").css({ display: "none" });
567});
568$(".vdo-tp5").click(function () {
569  $(".iframe4").css({ display: "none" });
570  $(".iframe5").css({ display: "block" });
571  $(".iframe1").css({ display: "none" });
572  $(".iframe2").css({ display: "none" });
573  $(".iframe3").css({ display: "none" });
574  $(".iframe6").css({ display: "none" });
575});
576$(".vdo-tp6").click(function () {
577  $(".iframe4").css({ display: "none" });
578  $(".iframe5").css({ display: "none" });
579  $(".iframe1").css({ display: "none" });
580  $(".iframe2").css({ display: "none" });
581  $(".iframe3").css({ display: "none" });
582  $(".iframe6").css({ display: "block" });
583});
584
585$(".clos").click(function () {
586  $(".iff1").attr("src", "");
587});
588$(".clos").click(function () {
589  $(".iff2").attr("src", "");
590});
591$(".clos").click(function () {
592  $(".iff3").attr("src", "");
593});
594$(".clos").click(function () {
595  $(".iff4").attr("src", "");
596});
597$(".clos").click(function () {
598  $(".iff5").attr("src", "");
599});
600$(".clos").click(function () {
601  $(".iff6").attr("src", "");
602});

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.