PageSourceSearch

https://www.bharatiptv.com/wp-content/plugins/ienet-addon/assets/js/ienet-addon.js?ver=1755493902

js bharatiptv.com collected 2026-10-04 02:36:00 UTC 23,055 bytes, 719 lines download raw bytes

1(function ($) {
2  "use strict";
3
4  var WidgetDefaultHandler = function ($scope) {
5
6    // mailchimp form
7    if ($scope.find(".mc-form").length) {
8      $scope.find(".mc-form").each(function () {
9        var Self = $(this);
10        var mcURL = Self.data("url");
11        var mcResp = Self.parent().find(".mc-form__response");
12
13        Self.ajaxChimp({
14          url: mcURL,
15          callback: function (resp) {
16            // appending response
17            mcResp.append(function () {
18              return '<p class="mc-message">' + resp.msg + "</p>";
19            });
20            // making things based on response
21            if (resp.result === "success") {
22              // Do stuff
23              Self.removeClass("errored").addClass("successed");
24              mcResp.removeClass("errored").addClass("successed");
25              Self.find("input").val("");
26
27              mcResp.find("p").fadeOut(10000);
28            }
29            if (resp.result === "error") {
30              Self.removeClass("successed").addClass("errored");
31              mcResp.removeClass("successed").addClass("errored");
32              Self.find("input").val("");
33
34              mcResp.find("p").fadeOut(10000);
35            }
36          }
37        });
38      });
39    }
40
41    // Sidebar
42    if ($scope.find(".main-header--five__toggler, .sidebar-one__overlay, .sidebar-one__close").length) {
43      $scope.find(".main-header--five__toggler, .sidebar-one__overlay, .sidebar-one__close").on("click", function (e) {
44        e.preventDefault();
45        $scope.find(".sidebar-one").toggleClass("active");
46        $("body").toggleClass("locked");
47      });
48    }
49
50    if ($scope.find(".wow").length) {
51      var wow = new WOW({
52        boxClass: "wow", // animated element css class (default is wow)
53        animateClass: "animated", // animation css class (default is animated)
54        mobile: true, // trigger animations on mobile devices (default is true)
55        live: true // act on asynchronously loaded content (default is true)
56      });
57      wow.init();
58    }
59    //Fact Counter + Text Count
60    if ($scope.find(".count-box").length) {
61      $scope.find(".count-box").appear(
62        function () {
63          var $t = $(this),
64            n = $t.find(".count-text").attr("data-stop"),
65            r = parseInt($t.find(".count-text").attr("data-speed"), 10);
66
67          if (!$t.hasClass("counted")) {
68            $t.addClass("counted");
69            $({
70              countNum: $t.find(".count-text").text()
71            }).animate({
72              countNum: n
73            }, {
74              duration: r,
75              easing: "linear",
76              step: function () {
77                $t.find(".count-text").text(Math.floor(this.countNum));
78              },
79              complete: function () {
80                $t.find(".count-text").text(this.countNum);
81              }
82            });
83          }
84        }, {
85        accY: 0
86      }
87      );
88    }
89
90    // owl slider
91    let ienetowlCarousel = $scope.find(".ienet-owl__carousel");
92    if (ienetowlCarousel.length) {
93      ienetowlCarousel.each(function () {
94        let elm = $(this);
95        let options = elm.data("owl-options");
96        let thmOwlCarousel = elm.owlCarousel(
97          "object" === typeof options ? options : JSON.parse(options)
98        );
99        elm.find("button").each(function () {
100          $(this).attr("aria-label", "carousel button");
101        });
102      });
103      window.dispatchEvent(new Event('resize'));
104    }
105
106    let ienetowlCarouselNav = $scope.find(".ienet-owl__carousel--custom-nav");
107    if (ienetowlCarouselNav.length) {
108      ienetowlCarouselNav.each(function () {
109        let elm = $(this);
110        let owlNavPrev = elm.data("owl-nav-prev");
111        let owlNavNext = elm.data("owl-nav-next");
112        $(owlNavPrev).on("click", function (e) {
113          elm.trigger("prev.owl.carousel");
114          e.preventDefault();
115        });
116
117        $(owlNavNext).on("click", function (e) {
118          elm.trigger("next.owl.carousel");
119          e.preventDefault();
120        });
121      });
122    }
123
124    if ($scope.find(".odometer").length) {
125      var odo = $scope.find(".odometer");
126      odo.each(function () {
127        $(this).appear(function () {
128          var countNumber = $(this).attr("data-count");
129          $(this).html(countNumber);
130        });
131      });
132    }
133
134    if ($scope.find(".masonry-layout").length) {
135      $scope.find(".masonry-layout").imagesLoaded(function () {
136        $scope.find(".masonry-layout").isotope({
137          layoutMode: "masonry"
138        });
139      });
140    }
141
142    if ($scope.find(".img-popup").length) {
143      var groups = {};
144      $scope.find(".img-popup").each(function () {
145        var id = parseInt($(this).attr("data-group"), 10);
146
147        if (!groups[id]) {
148          groups[id] = [];
149        }
150
151        groups[id].push(this);
152      });
153
154      $.each(groups, function () {
155        $(this).magnificPopup({
156          type: "image",
157          closeOnContentClick: true,
158          closeBtnInside: false,
159          gallery: {
160            enabled: true
161          }
162        });
163      });
164    }
165
166    if ($scope.find(".ienet-masonary").length) {
167      $scope.find(".ienet-masonary").imagesLoaded(function () {
168        $scope.find(".ienet-masonary").isotope({
169          layoutMode: "masonry"
170        });
171      });
172    }
173
174    if ($scope.find(".post-filter").length) {
175      $scope.find(".post-filter li")
176        .children(".filter-text")
177        .on("click", function () {
178          var Self = $(this);
179          var selector = Self.parent().attr("data-filter");
180          $scope.find(".post-filter li").removeClass("active");
181          Self.parent().addClass("active");
182          $scope.find(".ienet-filter").isotope({
183            filter: selector,
184            animationOptions: {
185              duration: 500,
186              easing: "linear",
187              queue: false
188            }
189          });
190          return false;
191        });
192    }
193
194    if ($scope.find(".post-filter.has-dynamic-filters-counter").length) {
195      var activeFilterItem = $scope.find(".post-filter.has-dynamic-filters-counter").find(
196        "li"
197      );
198      activeFilterItem.each(function () {
199        var filterElement = $(this).data("filter");
200        var count = $scope.find(".ienet-filter").find(filterElement).length;
201        $(this)
202          .children(".filter-text")
203          .append('<span class="count">(' + count + ")</span>");
204      });
205    }
206
207    if ($scope.find(".masonary-layout").length) {
208      $scope.find(".masonary-layout").isotope({
209        layoutMode: "masonry"
210      });
211    }
212    if ($scope.find(".post-filter").length) {
213      $scope
214        .find(".post-filter li")
215        .children(".filter-text")
216        .on("click", function () {
217          var Self = $(this);
218          var selector = Self.parent().attr("data-filter");
219          $scope.find(".post-filter li").removeClass("active");
220          Self.parent().addClass("active");
221          $scope.find(".filter-layout").isotope({
222            filter: selector,
223            animationOptions: {
224              duration: 500,
225              easing: "linear",
226              queue: false
227            }
228          });
229          return false;
230        });
231    }
232
233    if ($scope.find(".tabs-box").length) {
234      $(".tab-btn").on("click", function (e) {
235        e.preventDefault();
236        var target = $($(this).attr("data-tab"));
237        if ($(target).is(":visible")) {
238          return false;
239        } else {
240          target
241            .parents(".tabs-box")
242            // .find(".tab-buttons")
243            .find(".tab-btn")
244            .removeClass("active-btn");
245          $(this).addClass("active-btn");
246          target
247            .parents(".tabs-box")
248            // .find(".tabs-content")
249            .find(".tab")
250            .fadeOut(0);
251          target
252            .parents(".tabs-box")
253            // .find(".tabs-content")
254            .find(".tab")
255            .removeClass("active-tab");
256          $(target).fadeIn(300);
257          $(target).addClass("active-tab");
258        }
259      });
260    }
261
262    if ($scope.find(".neighborhoods__faq").length) {
263      $scope
264        .find(".neighborhoods__faq")
265        .find(".accrodion")
266        .each(function () {
267          $(this).on("click", function () {
268            let tabName = $(this).data("name");
269            $scope.find(".neighborhoods__img-box")
270              .find(".neighborhoods__location-1")
271              .removeClass("active");
272            $scope.find(".neighborhoods__img-box")
273              .find(".neighborhoods__location-1." + tabName)
274              .addClass("active");
275          });
276        });
277    }
278
279    // Accrodion
280    if ($scope.find(".ienet-accrodion").length) {
281      var accrodionGrp = $scope.find(".ienet-accrodion");
282      accrodionGrp.each(function () {
283        var accrodionName = $(this).data("grp-name");
284        var Self = $(this);
285        var accordion = Self.find(".accrodion");
286        Self.addClass(accrodionName);
287        Self.find(".accrodion .accrodion-content").hide();
288        Self.find(".accrodion.active").find(".accrodion-content").show();
289        accordion.each(function () {
290          $(this)
291            .find(".accrodion-title")
292            .on("click", function () {
293              if ($(this).parent().hasClass("active") === false) {
294                $scope.find(".ienet-accrodion." + accrodionName)
295                  .find(".accrodion")
296                  .removeClass("active");
297                $scope.find(".ienet-accrodion." + accrodionName)
298                  .find(".accrodion")
299                  .find(".accrodion-content")
300                  .slideUp();
301                $(this).parent().addClass("active");
302                $(this).parent().find(".accrodion-content").slideDown();
303              }
304            });
305        });
306      });
307    }
308
309    // Popular Causes Progress Bar
310    if ($scope.find(".count-bar").length) {
311      $scope.find(".count-bar").appear(
312        function () {
313          var el = $(this);
314          var percent = el.data("percent");
315          $(el).css("width", percent).addClass("counted");
316        }, {
317        accY: -50
318      }
319      );
320    }
321
322    // Popular Causes Progress Bar
323    if ($scope.find(".circle-progress").length) {
324      $scope.find(".circle-progress").appear(function () {
325        let circleProgress = $scope.find(".circle-progress");
326        circleProgress.each(function () {
327          let progress = $(this);
328          let progressOptions = progress.data("options");
329          progress.circleProgress(progressOptions);
330        });
331      });
332    }
333
334    //Fact Counter + Text Count
335    if ($scope.find(".count-box").length) {
336      $scope.find(".count-box").appear(
337        function () {
338          var $t = $(this),
339            n = $t.find(".count-text").attr("data-stop"),
340            r = parseInt($t.find(".count-text").attr("data-speed"), 10);
341
342          if (!$t.hasClass("counted")) {
343            $t.addClass("counted");
344            $({
345              countNum: $t.find(".count-text").text()
346            }).animate({
347              countNum: n
348            }, {
349              duration: r,
350              easing: "linear",
351              step: function () {
352                $t.find(".count-text").text(Math.floor(this.countNum));
353              },
354              complete: function () {
355                $t.find(".count-text").text(this.countNum);
356              }
357            });
358          }
359        }, {
360        accY: 0
361      }
362      );
363    }
364
365    // slick slider
366    let ienetslickCarousel = $scope.find(".ienet-slick__carousel");
367    if (ienetslickCarousel.length) {
368      ienetslickCarousel.each(function () {
369        let elm = $(this);
370        let options = elm.data("slick-options");
371        let ienetslickCarousel = elm.slick(
372          "object" === typeof options ? options : JSON.parse(options)
373        );
374      });
375    }
376
377    let thmSwiperSliders = $scope.find(".thm-swiper__slider");
378    if (thmSwiperSliders.length) {
379      thmSwiperSliders.each(function () {
380        let elm = $(this);
381        let options = elm.data("swiper-options");
382        let thmSwiperSlider = new Swiper(
383          elm,
384          "object" === typeof options ? options : JSON.parse(options)
385        );
386      });
387    }
388
389    let thmOwlCarousels = $scope.find(".ienet-owl__carousel");
390    if (thmOwlCarousels.length) {
391      thmOwlCarousels.each(function () {
392        let elm = $(this);
393        let options = elm.data("owl-options");
394        let thmOwlCarousel = elm.owlCarousel(
395          "object" === typeof options ? options : JSON.parse(options)
396        );
397      });
398    }
399
400    let thmOwlNavCarousels = $scope.find(".thm-owl__carousel--custom-nav");
401    if (thmOwlNavCarousels.length) {
402      thmOwlNavCarousels.each(function () {
403        let elm = $(this);
404        let owlNavPrev = elm.data("owl-nav-prev");
405        let owlNavNext = elm.data("owl-nav-next");
406        $(owlNavPrev).on("click", function (e) {
407          elm.trigger("prev.owl.carousel");
408          e.preventDefault();
409        });
410
411        $(owlNavNext).on("click", function (e) {
412          elm.trigger("next.owl.carousel");
413          e.preventDefault();
414        });
415      });
416    }
417
418    if ($scope.find("#testimonials-two__thumb").length) {
419      let testimonialsThumb = new Swiper("#testimonials-two__thumb", {
420        slidesPerView: 3,
421        spaceBetween: 0,
422        speed: 1400,
423        watchSlidesVisibility: true,
424        watchSlidesProgress: true,
425        loop: true,
426        autoplay: {
427          delay: 5000
428        }
429      });
430
431      let testimonialsCarousel = new Swiper("#testimonials-two__carousel", {
432        observer: true,
433        observeParents: true,
434        speed: 1400,
435        mousewheel: false,
436        slidesPerView: 1,
437        autoplay: {
438          delay: 5000
439        },
440        thumbs: {
441          swiper: testimonialsThumb
442        },
443        pagination: {
444          el: "#testimonials-one__carousel-pagination",
445          type: "bullets",
446          clickable: true
447        }
448      });
449    }
450    if ($scope.find(".post-filter").length) {
451      var postFilterList = $scope.find(".post-filter li");
452      // for first init
453      $scope.find(".filter-layout").isotope({
454        filter: ".filter-item",
455        animationOptions: {
456          duration: 500,
457          easing: "linear",
458          queue: false
459        }
460      });
461      // on click filter links
462      postFilterList.on("click", function () {
463        var Self = $(this);
464        var selector = Self.attr("data-filter");
465        postFilterList.removeClass("active");
466        Self.addClass("active");
467
468        $scope.find(".filter-layout").isotope({
469          filter: selector,
470          animationOptions: {
471            duration: 500,
472            easing: "linear",
473            queue: false
474          }
475        });
476        return false;
477      });
478    }
479    if ($scope.find(".curved-circle--item").length) {
480      $scope.find(".curved-circle--item").circleType();
481    }
482
483    // Date Picker
484    if ($scope.find(".ienet-datepicker").length) {
485      $scope.find(".ienet-datepicker").each(function () {
486        $(this).datepicker();
487      });
488    }
489
490    if ($scope.find("#datepicker").length) {
491      $scope.find("#datepicker").datepicker();
492    }
493
494    if ($scope.find("#datepicker2").length) {
495      $scope.find("#datepicker2").datepicker();
496    }
497
498    let reviewStarElm = $(".movie-more-review__star");
499    if (reviewStarElm.length) {
500      reviewStarElm.find('i').on('mouseover', function () {
501        var onStar = parseInt($(this).data('value'), 10); // The star currently mouse on
502
503        // Now highlight all the stars that's not after the current hovered star
504        $(this).parent().children('i').each(function (e) {
505          if (e < onStar) {
506            $(this).addClass('hover');
507          } else {
508            $(this).removeClass('hover');
509          }
510        });
511
512      }).on('mouseout', function () {
513        $(this).parent().children('i').each(function (e) {
514          $(this).removeClass('hover');
515        });
516      });
517
518      reviewStarElm.find('i').on('click', function () {
519        var onStar = parseInt($(this).data('value'), 10); // The star currently selected
520        var stars = $(this).parent().children('i');
521
522        for (let i = 0; i < stars.length; i++) {
523          $(stars[i]).removeClass('active');
524        }
525
526        for (let i = 0; i < onStar; i++) {
527          $(stars[i]).addClass('active');
528        }
529
530        // JUST RESPONSE (Not needed)
531        var ratingValue = parseInt(reviewStarElm.find('i.active').last().data('value'), 10);
532        var msg = 0;
533        if (ratingValue > 1) {
534          msg = ratingValue;
535        } else {
536          msg = ratingValue;
537        }
538
539        reviewStarElm.find('input[name=rating]').val(msg);
540
541      });
542
543    }
544
545    ienet_stretch();
546
547    function ienet_stretch() {
548      var i = $(window).width();
549      $scope.find(".row .ienet-stretch-element-inside-column").each(function () {
550        var $this = $(this),
551          row = $this.closest(".row"),
552          cols = $this.closest('[class^="col-"]'),
553          colsheight = $this.closest('[class^="col-"]').height(),
554          rect = this.getBoundingClientRect(),
555          l = row[0].getBoundingClientRect(),
556          s = cols[0].getBoundingClientRect(),
557          r = rect.left,
558          d = i - rect.right,
559          c = l.left + (parseFloat(row.css("padding-left")) || 0),
560          u = i - l.right + (parseFloat(row.css("padding-right")) || 0),
561          p = s.left,
562          f = i - s.right,
563          styles = {
564            "margin-left": 0,
565            "margin-right": 0
566          };
567        if (Math.round(c) === Math.round(p)) {
568          var h = parseFloat($this.css("margin-left") || 0);
569          styles["margin-left"] = h - r;
570        }
571        if (Math.round(u) === Math.round(f)) {
572          var w = parseFloat($this.css("margin-right") || 0);
573          styles["margin-right"] = w - d;
574        }
575        $this.css(styles);
576      });
577    }
578
579    const choiceArray = document.querySelectorAll(".choice")
580    choiceArray.forEach((card) => {
581      card.addEventListener("click", () => {
582        choiceArray.forEach((element) => {
583          element.classList.remove("expand")
584        })
585        card.classList.add('expand')
586      });
587    });
588
589    $('.login-page__form-input-box__icon').on('click', function () {
590      let passwordField = $('#password');
591      let passwordFieldType = passwordField.attr('type');
592
593      if (passwordFieldType === 'password') {
594        passwordField.attr('type', 'text');
595        $(this).find('i').removeClass('fa-eye-slash').addClass('fa-eye');
596      } else {
597        passwordField.attr('type', 'password');
598        $(this).find('i').removeClass('fa-eye').addClass('fa-eye-slash');
599      }
600    });
601  };
602
603  var WidgetFaqHandler = function ($scope) {
604    if ($scope.find(".accrodion-grp").length) {
605      var accrodionGrp = $scope.find(".accrodion-grp");
606      accrodionGrp.each(function () {
607        var accrodionName = $(this).data("grp-name");
608        var Self = $(this);
609        var accordion = Self.find(".accrodion");
610        Self.addClass(accrodionName);
611        Self.find(".accrodion .accrodion-content").hide();
612        Self.find(".accrodion.active").find(".accrodion-content").show();
613        accordion.each(function () {
614          $(this)
615            .find(".accrodion-title")
616            .on("click", function () {
617              if ($(this).parent().hasClass("active") === false) {
618                $scope.find(".accrodion-grp." + accrodionName)
619                  .find(".accrodion")
620                  .removeClass("active");
621                $scope.find(".accrodion-grp." + accrodionName)
622                  .find(".accrodion")
623                  .find(".accrodion-content")
624                  .slideUp();
625                $(this).parent().addClass("active");
626                $(this).parent().find(".accrodion-content").slideDown();
627              }
628            });
629        });
630      });
631    }
632  };
633
634
635
636  //elementor front start
637  $(window).on("elementor/frontend/init", function () {
638    elementorFrontend.hooks.addAction(
639      "frontend/element_ready/widget",
640      WidgetDefaultHandler
641    );
642
643    elementorFrontend.hooks.addAction(
644      "frontend/element_ready/ienet-faq.default",
645      WidgetFaqHandler
646    );
647
648  });
649
650  // login
651  $("#ienet-login").submit(function (event) {
652    event.preventDefault();
653
654    var login = "action=signup_paragon&param=login&" + $(this).serialize();
655    var loginResult = $(".login-result");
656    $.ajax({
657      type: "POST",
658      url: ienet_login_object.ajaxurl,
659      data: login,
660      beforeSend: function () {
661        // setting a timeout
662        loginResult.addClass("loading");
663      },
664      success: function (data) {
665        loginResult.removeClass("loading");
666        if (data.status == 2) {
667          loginResult.removeClass("alert alert-warning");
668          loginResult.html(data.message).addClass("alert alert-success");
669          window.location.href = ienet_login_object.login_redirect_url;
670        } else if (data.status == 1) {
671          loginResult.html(data.message).addClass("alert alert-warning");
672        } else {
673          loginResult
674            .html(ienet_login_object.message)
675            .addClass("alert alert-warning");
676        }
677      }
678    });
679  }); //end login
680
681  // register
682  $("#ienet-registration").submit(function (event) {
683    event.preventDefault();
684
685    var signupForm =
686      "action=signup_paragon&param=register&" + $(this).serialize();
687    var registerationResult = $(".registration-result");
688    $.ajax({
689      type: "POST",
690      url: ienet_login_object.ajaxurl,
691      data: signupForm,
692      beforeSend: function () {
693        // setting a timeout
694        registerationResult.addClass("loading");
695      },
696      success: function (data) {
697        registerationResult.removeClass("loading");
698        if (data.status == 2) {
699          registerationResult.removeClass("alert alert-warning");
700          registerationResult
701            .html(data.message)
702            .addClass("alert alert-success");
703          window.location.href = ienet_login_object.registration_redirect_url;
704        } else {
705          registerationResult
706            .html(data.message)
707            .addClass("alert alert-warning");
708        }
709      }
710    });
711  }); //end register
712
713  $(window).on('load', function () {
714    $('.widget_ienet_blog_categories_widget').addClass('product__categories');
715  });
716
717
718
719})(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.