PageSourceSearch

https://www.b360nepal.com/themes/business-360/js/apps.js?v=1.4

js b360nepal.com collected 2026-10-02 11:37:37 UTC 28,324 bytes, 970 lines download raw bytes

1(function($) {
2  ("use strict");
3
4  jQuery(document).ready(function($) {
5                                       $(".pwd-icon").click(function(event) {
6                                         $(this).toggleClass("show-password");
7                                       });
8                                       // menu for dropdown
9                                       if (
10                                         document.documentElement.clientWidth >
11                                         991
12                                       ) {
13                                         $(
14                                           ".navigation_box ul li.dropdown"
15                                         ).hover(
16                                           function() {
17                                             $(this)
18                                               .children("ul.dropdown-menu")
19                                               .stop(true, true)
20                                               .delay(200)
21                                               .fadeIn(500);
22                                             jQuery(this).addClass("open");
23                                           },
24                                           function() {
25                                             $(this)
26                                               .children("ul.dropdown-menu")
27                                               .stop(true, true)
28                                               .delay(200)
29                                               .fadeOut(500);
30                                             jQuery(this).removeClass("open");
31                                           }
32                                         );
33                                       }
34
35                                       // text settings
36
37                                       var $affectedElements = $(".editor-box, .editor-box span, .editor-box p"); // Can be extended, ex. $("div, p, span.someClass")
38
39                                       // Storing the original size in a data attribute so size can be reset
40                                       $affectedElements.each(function() {
41                                         var $this = $(this);
42                                         $this.data(
43                                           "orig-size",
44                                           $this.css("font-size")
45                                         );
46                                       });
47
48                                       $("#btn-increase").click(function() {
49                                         changeFontSize(1);
50                                         changeLineHeight(2);
51                                       });
52
53                                       $("#btn-decrease").click(function() {
54                                         changeFontSize(-1);
55                                         changeLineHeight(-2);
56                                       });
57
58                                       $("#btn-orig").click(function() {
59                                         $affectedElements.each(function() {
60                                           var $this = $(this);
61                                           $this.css(
62                                             "font-size",
63                                             $this.data("orig-size")
64                                           );
65                                           originalLineHeight();
66                                         });
67                                       });
68
69                                       function changeFontSize(direction) {
70                                         $affectedElements.each(function() {
71                                           var $this = $(this);
72                                           $this.css(
73                                             "font-size",
74                                             parseInt($this.css("font-size")) +
75                                               direction
76                                           );
77                                         });
78                                       }
79
80                                       function changeLineHeight(direction) {
81                                         $affectedElements.each(function() {
82                                           var $this = $(this);
83                                           $this.css(
84                                             "line-height",
85                                             parseInt(
86                                               $this.css("line-height")
87                                             ) +
88                                               direction +
89                                               "px"
90                                           );
91                                         });
92                                       }
93
94                                       function originalLineHeight(direction) {
95                                         $affectedElements.each(function() {
96                                           var $this = $(this);
97                                           $this.css("line-height", "32px");
98                                         });
99                                       }
100
101                                       // quantity countdown
102                                       $(function() {
103                                         (function quantityProducts() {
104                                           var $quantityArrowMinus = $(
105                                             ".quantity-arrow-minus"
106                                           );
107                                           var $quantityArrowPlus = $(
108                                             ".quantity-arrow-plus"
109                                           );
110                                           var $quantityNum = $(
111                                             ".quantity-num"
112                                           );
113
114                                           $quantityArrowMinus.click(
115                                             quantityMinus
116                                           );
117                                           $quantityArrowPlus.click(
118                                             quantityPlus
119                                           );
120
121                                           function quantityMinus() {
122                                             if ($quantityNum.val() > 1) {
123                                               $quantityNum.val(
124                                                 +$quantityNum.val() - 1
125                                               );
126                                             }
127                                           }
128
129                                           function quantityPlus() {
130                                             $quantityNum.val(
131                                               +$quantityNum.val() + 1
132                                             );
133                                           }
134                                         })();
135                                       });
136
137                                       jQuery(document).ready(function() {
138                                         //  $(function() {
139                                         //    $(window)
140                                         //      .on("scroll", function() {
141                                         //        var contentTop = $("#content-wrap").offset().top + 1;
142                                         //        var hHeight = $(".header").height();
143
144                                         //        if ($(this).scrollTop() > contentTop - hHeight) {
145                                         //          $(".header.sticky-header").addClass(
146                                         //            "sticky-actives animate__animated animate__slideInDown"
147                                         //          );
148                                         //          $("body").addClass("inside-content");
149                                         //        } else {
150                                         //          $(".header.sticky-header").removeClass(
151                                         //            "sticky-actives animate__animated animate__slideInDown"
152                                         //          );
153                                         //          $("body").addClass("inside-content");
154                                         //        }
155                                         //      })
156                                         //      .scroll();
157                                         //  });
158
159                                         var prevScrollpos = window.pageYOffset;
160
161                                         /* Get the header element and it's position */
162                                         var headerDiv = document.querySelector(
163                                           ".header"
164                                         );
165                                         var headerBottom =
166                                           headerDiv.offsetTop +
167                                           headerDiv.offsetHeight;
168
169                                         window.onscroll = function() {
170                                           var currentScrollPos =
171                                             window.pageYOffset;
172
173                                           /* if we're scrolling up, or we haven't passed the header,
174     show the header at the top */
175                                           if (
176                                             prevScrollpos > currentScrollPos ||
177                                             currentScrollPos < headerBottom
178                                           ) {
179                                             headerDiv.style.top = "0";
180                                             $(".header").addClass(
181                                               "sticky-actives"
182                                             );
183
184                                             $("body").addClass(
185                                               "header-active"
186                                             );
187                                           } else {
188                                             /* otherwise we're scrolling down & have passed the header so hide it */
189                                             headerDiv.style.top = "-100%";
190                                             $("body").removeClass(
191                                               "header-active"
192                                             );
193                                           }
194
195                                           prevScrollpos = currentScrollPos;
196                                         };
197                                       });
198
199                                       // home main slider
200                                     });
201
202  // gallery viewer
203
204  $(document).ready(function() {
205    $(".lightgallery").lightGallery({
206      selector: ".grids-box .items",
207      thumbnail: false,
208      fullScreen: false,
209      autoplayControls: false,
210      autoplay: false,
211      zoom: false,
212      actualSize: false,
213      share: false,
214      hash: false,
215      download: false,
216    });
217
218    $(".progallery").lightGallery({
219      thumbnail: true,
220      fullScreen: false,
221      autoplayControls: false,
222      autoplay: false,
223      zoom: false,
224      actualSize: false,
225      share: false,
226      hash: false,
227      download: false,
228    });
229  });
230
231  $(".widget-nav li a").click(function() {
232    $(this).addClass("active-link");
233    $("body").addClass("drop-menu");
234  });
235  $(".boundary-box").on("click", function(event) {
236    event.stopPropagation();
237  });
238  $(document).on("click", function() {
239    $("body").removeClass("drop-menu");
240    $(".widget-nav li a").removeClass("active-link");
241  });
242
243 
244
245  // youtube video stop
246  // $(".video-embed").on("hidden.bs.modal", function() {
247  //   var src = $(this)
248  //     .find("iframe")
249  //     .attr("src");
250  //   $(this)
251  //     .find("iframe")
252  //     .attr("src", "");
253  //   $(this)
254  //     .find("iframe")
255  //     .attr("src", src);
256  // });
257
258  //  $(document).ready(function() {
259  //       $('.btn-search').click(function(event) {
260  //           event.stopPropagation();
261  //           $("body").toggleClass("search-actives");
262  //           $(".search-panel").toggleClass("active-search");
263  //       });
264  //       $(".search-close, .search-mask").on("click", function(event) {
265  //           $("body").toggleClass("search-actives");
266  //       });
267  //   });
268
269  // modal box
270  $(".modalbox");
271  $("body").addClass("modalbox-open");
272  $("body").addClass("modalbox-open-inside");
273  setTimeout(function() {
274    $(".modalbox").fadeOut("slow");
275    $("body").removeClass("modalbox-open");
276    $("body").removeClass("modalbox-open-inside");
277  }, 5000);
278
279  $(".close_btn").click(function(event) {
280    $(".modalbox").fadeOut("fast");
281    $("body").removeClass("modalbox-open");
282    $("body").removeClass("modalbox-open-inside");
283  });
284
285  $(window).load(function() {
286    // image overlapped  for big images on editor
287    $(".editor-box")
288      .find("figure img")
289      .each(function() {
290        var imageWidth = jQuery(this).width();
291        // console.log(imageWidth);
292        // alert(this.width + " by " + this.height);
293        // if (imageWidth > 700) {
294        //     jQuery(this).addClass('pulls-img-lefts');
295        // }
296        if (imageWidth < 20000) {
297          jQuery(this)
298            .parent("figure")
299            .width(jQuery(this).width());
300        }
301      });
302  });
303
304  // parallax
305
306  // 	 $(document).ready(function() {
307  //   //parallax scroll
308  //   $(window).on("load scroll", function() {
309  //     var parallaxElement = $(".slide-box"),
310  //       parallaxQuantity = parallaxElement.length;
311  //     window.requestAnimationFrame(function() {
312  //       for (var i = 0; i < parallaxQuantity; i++) {
313  //         var currentElement = parallaxElement.eq(i),
314  //           windowTop = $(window).scrollTop(),
315  //           elementTop = currentElement.offset().top,
316  //           elementHeight = currentElement.height(),
317  //           viewPortHeight = window.innerHeight * 0.5 - elementHeight * 0.5,
318  //           scrolled = windowTop - elementTop + viewPortHeight;
319  //         currentElement.css({
320  //           transform: "translate3d(0," + scrolled * -0.15 + "px, 0)"
321  //         });
322  //       }
323  //     });
324  //   });
325  // });
326
327  jQuery(document).ready(function($) {
328    $(".count-number").counterUp({
329      delay: 10,
330      time: 1000,
331    });
332  });
333
334  $(document).ready(function() {
335    $(".home-slider").slick({
336      infinite: true,
337      slidesToShow: 1,
338      slidesToScroll: 1,
339      autoplay: true,
340      arrows: true,
341      fade: true,
342      dots: false,
343      autoplaySpeed: 5000,
344      responsive: [
345        {
346          breakpoint: 1024,
347          settings: {
348            slidesToShow: 1,
349            slidesToScroll: 1,
350            infinite: true,
351            arrows: false,
352            dots: true,
353          },
354        },
355
356        {
357          breakpoint: 800,
358          settings: {
359            slidesToShow: 1,
360            slidesToScroll: 1,
361            arrows: false,
362            dots: true,
363          },
364        },
365
366        {
367          breakpoint: 480,
368          settings: {
369            slidesToShow: 1,
370            slidesToScroll: 1,
371            arrows: false,
372            dots: true,
373          },
374        },
375      ],
376    });
377
378    $(".projects-slider").slick({
379      infinite: true,
380      slidesToShow: 2,
381      slidesToScroll: 1,
382      autoplay: true,
383      arrows: false,
384      dots: true,
385      autoplaySpeed: 5000,
386      dots: true,
387      responsive: [
388        {
389          breakpoint: 1024,
390          settings: {
391            slidesToShow: 1,
392            slidesToScroll: 1,
393            infinite: true,
394            dots: true,
395          },
396        },
397        {
398          breakpoint: 800,
399          settings: {
400            slidesToShow: 2,
401            slidesToScroll: 1,
402          },
403        },
404
405        {
406          breakpoint: 480,
407          settings: {
408            slidesToShow: 1,
409            slidesToScroll: 1,
410          },
411        },
412      ],
413    });
414
415    $(".service-slider").slick({
416      infinite: true,
417      slidesToShow: 3,
418      slidesToScroll: 1,
419      autoplay: true,
420      arrows: false,
421      dots: true,
422      autoplaySpeed: 9000,
423      dots: true,
424      responsive: [
425        {
426          breakpoint: 1024,
427          settings: {
428            slidesToShow: 1,
429            slidesToScroll: 1,
430            infinite: true,
431            dots: true,
432          },
433        },
434        {
435          breakpoint: 800,
436          settings: {
437            slidesToShow: 2,
438            slidesToScroll: 1,
439          },
440        },
441
442        {
443          breakpoint: 480,
444          settings: {
445            slidesToShow: 1,
446            slidesToScroll: 1,
447          },
448        },
449      ],
450    });
451
452    $(".popup-slider").slick({
453      infinite: true,
454      slidesToShow: 1,
455      slidesToScroll: 1,
456      autoplay: true,
457      arrows: true,
458      fade: true,
459      autoplaySpeed: 9000,
460      responsive: [
461        {
462          breakpoint: 1025,
463          settings: {
464            slidesToShow: 1,
465            slidesToScroll: 1,
466            infinite: true,
467            dots: true,
468          },
469        },
470        {
471          breakpoint: 800,
472          settings: {
473            slidesToShow: 1,
474            slidesToScroll: 1,
475          },
476        },
477
478        {
479          breakpoint: 480,
480          settings: {
481            slidesToShow: 1,
482            slidesToScroll: 1,
483          },
484        },
485      ],
486    });
487
488    $(".about-slider").slick({
489      infinite: true,
490      slidesToShow: 1,
491      slidesToScroll: 1,
492      autoplay: true,
493      arrows: false,
494      fade: true,
495      dots: true,
496      autoplaySpeed: 5000,
497      dots: true,
498      responsive: [
499        {
500          breakpoint: 1024,
501          settings: {
502            slidesToShow: 1,
503            slidesToScroll: 1,
504            infinite: true,
505            dots: true,
506          },
507        },
508
509        {
510          breakpoint: 800,
511          settings: {
512            slidesToShow: 1,
513            slidesToScroll: 1,
514          },
515        },
516
517        {
518          breakpoint: 480,
519          settings: {
520            slidesToShow: 1,
521            slidesToScroll: 1,
522          },
523        },
524      ],
525    });
526
527    $(".testimonial-slider").slick({
528      infinite: true,
529      slidesToShow: 1,
530      slidesToScroll: 1,
531      autoplay: true,
532      autoplaySpeed: 10000,
533      arrows: false,
534      fade: true,
535      dots: true,
536      responsive: [
537        {
538          breakpoint: 1024,
539          settings: {
540            slidesToShow: 1,
541            slidesToScroll: 1,
542            infinite: true,
543            dots: true,
544          },
545        },
546
547        {
548          breakpoint: 800,
549          settings: {
550            slidesToShow: 1,
551            slidesToScroll: 1,
552            fade: false,
553          },
554        },
555        {
556          breakpoint: 480,
557          settings: {
558            slidesToShow: 1,
559            slidesToScroll: 1,
560          },
561        },
562      ],
563    });
564
565    $(".product-slider").slick({
566      infinite: true,
567      slidesToShow: 4,
568      slidesToScroll: 1,
569      autoplay: true,
570      autoplaySpeed: 13000,
571      arrows: false,
572      dots: true,
573      responsive: [
574        {
575          breakpoint: 1025,
576          settings: {
577            slidesToShow: 3,
578            slidesToScroll: 1,
579            infinite: true,
580            dots: true,
581          },
582        },
583        {
584          breakpoint: 800,
585          settings: {
586            slidesToShow: 2,
587            slidesToScroll: 1,
588          },
589        },
590
591        {
592          breakpoint: 480,
593          settings: {
594            slidesToShow: 1,
595            slidesToScroll: 1,
596          },
597        },
598      ],
599    });
600
601    $(".gallery-slider").slick({
602      infinite: true,
603      slidesToShow: 3,
604      slidesToScroll: 1,
605      autoplay: true,
606      autoplaySpeed: 13000,
607      arrows: false,
608      dots: true,
609      responsive: [
610        {
611          breakpoint: 1025,
612          settings: {
613            slidesToShow: 3,
614            slidesToScroll: 1,
615            infinite: true,
616            dots: true,
617          },
618        },
619        {
620          breakpoint: 800,
621          settings: {
622            slidesToShow: 2,
623            slidesToScroll: 1,
624          },
625        },
626
627        {
628          breakpoint: 480,
629          settings: {
630            slidesToShow: 1,
631            slidesToScroll: 1,
632          },
633        },
634      ],
635    });
636
637    $(".more-product-slider").slick({
638      infinite: true,
639      slidesToShow: 4,
640      slidesToScroll: 1,
641      autoplay: true,
642      autoplaySpeed: 13000,
643      arrows: false,
644      dots: true,
645      responsive: [
646        {
647          breakpoint: 1025,
648          settings: {
649            slidesToShow: 2,
650            slidesToScroll: 1,
651            infinite: true,
652            dots: true,
653          },
654        },
655        {
656          breakpoint: 800,
657          settings: {
658            slidesToShow: 2,
659            slidesToScroll: 1,
660          },
661        },
662
663        {
664          breakpoint: 480,
665          settings: {
666            slidesToShow: 1,
667            slidesToScroll: 1,
668          },
669        },
670      ],
671    });
672
673    $(".partners-slider").slick({
674      infinite: true,
675      slidesToShow: 6,
676      slidesToScroll: 1,
677      autoplay: true,
678      arrows: false,
679      dots: false,
680      autoplaySpeed: 15000,
681      responsive: [
682        {
683          breakpoint: 1024,
684          settings: {
685            slidesToShow: 4,
686            slidesToScroll: 1,
687            infinite: true,
688            dots: true,
689          },
690        },
691        {
692          breakpoint: 600,
693          settings: {
694            slidesToShow: 3,
695            slidesToScroll: 1,
696          },
697        },
698        {
699          breakpoint: 480,
700          settings: {
701            slidesToShow: 2,
702            slidesToScroll: 1,
703          },
704        },
705      ],
706    });
707
708      $(".featured-slider").slick({
709        infinite: true,
710        slidesToShow: 1,
711        slidesToScroll: 1,
712        autoplay: true,
713        arrows: true,
714        autoplaySpeed: 5000,
715        dots: false,
716        responsive: [
717          {
718            breakpoint: 1024,
719            settings: {
720              slidesToShow: 1,
721              slidesToScroll: 1,
722              infinite: true,
723              dots: true,
724            },
725          },
726          {
727            breakpoint: 800,
728            settings: {
729              slidesToShow: 1,
730              slidesToScroll: 1,
731            },
732          },
733
734          {
735            breakpoint: 480,
736            settings: {
737              slidesToShow: 1,
738              slidesToScroll: 1,
739            },
740          },
741        ],
742      });
743
744       $(".photo-slider").slick({
745         infinite: true,
746         slidesToShow: 2,
747         slidesToScroll: 1,
748         autoplay: true,
749         arrows: false,
750         autoplaySpeed: 8000,
751         dots: true,
752         responsive: [
753           {
754             breakpoint: 1024,
755             settings: {
756               slidesToShow: 2,
757               slidesToScroll: 1,
758               infinite: true,
759               dots: true,
760             },
761           },
762           {
763             breakpoint: 800,
764             settings: {
765               slidesToShow: 2,
766               slidesToScroll: 1,
767             },
768           },
769
770           {
771             breakpoint: 480,
772             settings: {
773               slidesToShow: 1,
774               slidesToScroll: 1,
775             },
776           },
777         ],
778       });
779  });
780
781  /*------------------------------rel action -----------------------------*/
782
783  jQuery("a[rel*=external]").click(function() {
784    window.open(this.href);
785
786    return false;
787  });
788
789  // slide menu
790
791  $(document).ready(function() {
792    $(".menu-toggle-btn").click(function(event) {
793      event.stopPropagation();
794      $("body").addClass("overflow-hide");
795      $(".primary-panel").css({
796        left: "0",
797      });
798    });
799
800    $(".menu-close").click(function(event) {
801      event.stopPropagation();
802      $("body").removeClass("overflow-hide");
803      $(".primary-panel").css({
804        left: "-100%",
805      });
806    });
807    $(".primary-panel").on("click", function(event) {
808      event.stopPropagation();
809    });
810  });
811
812  $(document).on("click", function() {
813    $("body").removeClass("overflow-hide");
814    $(".primary-panel").css({
815      left: "-100%",
816    });
817  });
818
819  // cart panel
820  $(document).ready(function() {
821    $(".my-cart").click(function(event) {
822      event.stopPropagation();
823      $("body").addClass("cart-mask");
824      $(".cart-panel").css({
825        right: "0",
826      });
827    });
828    $(".cart-close").click(function(event) {
829      event.stopPropagation();
830      $("body").removeClass("cart-mask");
831      $(".cart-panel").css({
832        right: "-600px",
833      });
834    });
835    $(".cart-panel").on("click", function(event) {
836      event.stopPropagation();
837    });
838  });
839  $(document).on("click", function() {
840    $("body").removeClass("overflow-hide");
841    $("body").removeClass("cart-mask");
842    $(".cart-panel").css({
843      right: "-600px",
844    });
845    $(".fb_dialog_content iframe").css({
846      position: "fixed",
847    });
848  });
849
850  $(window).scroll(function() {
851    var scroll = $(window).scrollTop();
852
853    if (scroll >= 500) {
854      $(".upToScroll").addClass("buttonShow");
855    } else {
856      $(".upToScroll").removeClass("buttonShow");
857    }
858  });
859
860  // $(".scroll").on("click", function(event) {
861  //     event.preventDefault();
862  //     $("html,body").animate({
863  //             scrollTop: $(this.hash).offset().top - 80,
864  //         },
865  //         1200
866  //     );
867  // });
868
869  jQuery(".scroll").on("click", function() {
870    if ($.attr(this, "href") !== "#") {
871      $("html, body").animate(
872        {
873          scrollTop: $($.attr(this, "href")).offset().top - 80,
874        },
875        800
876      );
877    }
878
879    return false;
880  });
881
882  window.scrollTo({ top: 0, behavior: "smooth" });
883
884  // destinations
885
886  $(".destination-box .items").on("mouseover", function() {
887    var index = $(".destination-box .items").index(this);
888    $(".bg-changer .section-bg")
889      .removeClass("active")
890      .eq(index)
891      .addClass("active");
892  });
893
894  //table class
895
896  jQuery("table")
897    .addClass("table table-striped")
898    .wrap("<div class='table-responsive' />");
899  // embed iframe
900
901  jQuery(".editor-box iframe").wrap("<div class='ratio ratio-16x9' />");
902  jQuery(".video-detail iframe, .video-embed iframe").wrap(
903    "<span class='ratio ratio-16x9' />"
904  );
905  jQuery(".google-maps iframe").wrap("<span class='ratio ratio-16x9' />");
906  jQuery(".featured-images iframe, .video-feat iframe").wrap(
907    "<span class='ratio ratio-16x9' />"
908  );
909
910  $(".scrollToTop").on("click", function() {
911    window.scrollTo({ top: 0, behavior: "smooth" });
912  });
913
914  $(function() {
915    $("#side-menu").metisMenu();
916  });
917
918  $(document).ready(function() {
919    $(".select").niceSelect();
920
921    flatpickr("#date-01", {
922      disableMobile: "true",
923    });
924  });
925
926  //wow effects
927
928  function afterReveal(el) {
929    el.addEventListener("animationend", function() {
930      $(this).css({
931        "animation-name": "none",
932      });
933    });
934  }
935  var wow = new WOW({
936    mobile: false,
937    callback: afterReveal,
938  });
939  wow.init();
940
941  $(function() {
942    return $(".modal").on("show.bs.modal", function() {
943      var curModal;
944      curModal = this;
945      $(".modal").each(function() {
946        if (this !== curModal) {
947          $(this).modal("hide");
948        }
949      });
950    });
951  });
952
953  // $(window).scroll(function() {
954  //     var bottomOffset =
955  //         $(document).height() - $(window).height() - $(window).scrollTop();
956
957  //     var offsetThreshold = 200;
958
959  //     if (bottomOffset < offsetThreshold) {
960
961  //         $(".get-box").addClass("animate__animated animate__slideOutDown");
962  //         $(".get-box").removeClass("animate__slideInUp");
963  //     } else {
964
965  //         $(".get-box").addClass("animate__animated animate__slideInUp");
966  //         $(".get-box").removeClass("animate__slideOutDown");
967
968  //     }
969  // });
970})(jQuery);

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.