PageSourceSearch

https://socialspark.ai/static/assets-site/js/main.js

js socialspark.ai collected 2026-10-05 15:08:11 UTC 21,417 bytes, 733 lines download raw bytes

1(function ($) {
2    "user strict";
3    // Preloader Js
4    $(window).on('load', function () {
5      $("[data-paroller-factor]").paroller();
6      $('.preloader').fadeOut(1000);
7      var img = $('.bg_img');
8      img.css('background-image', function () {
9        var bg = ('url(' + $(this).data('background') + ')');
10        return bg;
11      });
12    });
13    $(document).ready(function () {
14      // Nice Select
15      $('.select-bar').niceSelect();
16      // PoPuP 
17      $('.popup').magnificPopup({
18        disableOn: 700,
19        type: 'iframe',
20        mainClass: 'mfp-fade',
21        removalDelay: 160,
22        preloader: true,
23        fixedContentPos: false,
24        disableOn: 300
25      });
26      $("body").each(function () {
27        $(this).find(".img-pop").magnificPopup({
28          type: "image",
29          gallery: {
30            enabled: true
31          }
32        });
33      });
34      // aos js active
35      new WOW().init()
36      //Faq
37      $('.faq-wrapper .faq-title').on('click', function (e) {
38        var element = $(this).parent('.faq-item');
39        if (element.hasClass('open')) {
40          element.removeClass('open');
41          element.find('.faq-content').removeClass('open');
42          element.find('.faq-content').slideUp(300, "swing");
43        } else {
44          element.addClass('open');
45          element.children('.faq-content').slideDown(300, "swing");
46          element.siblings('.faq-item').children('.faq-content').slideUp(300, "swing");
47          element.siblings('.faq-item').removeClass('open');
48          element.siblings('.faq-item').find('.faq-title').removeClass('open');
49          element.siblings('.faq-item').find('.faq-content').slideUp(300, "swing");
50        }
51      });
52      //Faq
53      $('.faq--area .faq-title').on('click', function (e) {
54        var element = $(this).parent('.faq--item');
55        if (element.hasClass('open')) {
56          element.removeClass('open');
57          element.find('.faq-content').removeClass('open');
58          element.find('.faq-content').slideUp(300, "swing");
59        } else {
60          element.addClass('open');
61          element.children('.faq-content').slideDown(300, "swing");
62          element.siblings('.faq--item').children('.faq-content').slideUp(300, "swing");
63          element.siblings('.faq--item').removeClass('open');
64          element.siblings('.faq--item').find('.faq-title').removeClass('open');
65          element.siblings('.faq--item').find('.faq-content').slideUp(300, "swing");
66        }
67      });
68      //Menu Dropdown Icon Adding
69      $("ul>li>.submenu").parent("li").addClass("menu-item-has-children");
70      // drop down menu width overflow problem fix
71      $('.submenu').parent('li').hover(function () {
72        var menu = $(this).find("ul");
73        var menupos = $(menu).offset();
74        if (menupos.left + menu.width() > $(window).width()) {
75          var newpos = -$(menu).width();
76          menu.css({
77            left: newpos
78          });
79        }
80      });
81      $('.menu li a').on('click', function (e) {
82        var element = $(this).parent('li');
83        if (element.hasClass('open')) {
84          element.removeClass('open');
85          element.find('li').removeClass('open');
86          element.find('ul').slideUp(300, "swing");
87        } else {
88          element.addClass('open');
89          element.children('ul').slideDown(300, "swing");
90          element.siblings('li').children('ul').slideUp(300, "swing");
91          element.siblings('li').removeClass('open');
92          element.siblings('li').find('li').removeClass('open');
93          element.siblings('li').find('ul').slideUp(300, "swing");
94        }
95      })
96      //Widget Slider
97      $('.widget-slider').owlCarousel({
98        loop:true,
99        nav:false,
100        dots: false,
101        items:1,
102        autoplay:true,
103        autoplayTimeout:2500,
104        autoplayHoverPause:true,
105        margin: 30,
106      });
107      var owlTutu = $('.widget-slider');
108      owlTutu.owlCarousel();
109      // Go to the next item
110      $('.widget-next').on('click', function() {
111          owlTutu.trigger('next.owl.carousel');
112      })
113      // Go to the previous item
114      $('.widget-prev').on('click', function() {
115          owlTutu.trigger('prev.owl.carousel', [300]);
116      })
117      // Scroll To Top 
118      var scrollTop = $(".scrollToTop");
119      $(window).on('scroll', function () {
120        if ($(this).scrollTop() < 500) {
121          scrollTop.removeClass("active");
122        } else {
123          scrollTop.addClass("active");
124        }
125      });
126      //Click event to scroll to top
127      $('.scrollToTop').on('click', function () {
128        $('html, body').animate({
129          scrollTop: 0
130        }, 500);
131        return false;
132      });
133      //Header Bar
134      $('.header-bar').on('click', function () {
135        $(this).toggleClass('active');
136        $('.overlay').toggleClass('active');
137        $('.menu').toggleClass('active');
138      })
139      $('.overlay').on('click', function () {
140        $(this).removeClass('active');
141        $('.header-bar').removeClass('active');
142        $('.menu').removeClass('active');
143      })
144      // Header Sticky Herevar prevScrollpos = window.pageYOffset;
145      var scrollPosition = window.scrollY;
146      if (scrollPosition >= 1) {
147        $(".header-bottom").addClass('active');
148        $(".header-section-2").removeClass('plan-header');
149      }
150      var header = $(".header-section");
151      $(window).on('scroll', function () {
152        if ($(this).scrollTop() < 1) {
153          header.removeClass("active");
154        } else {
155          header.addClass("active");
156        }
157      });
158      $('.tab ul.tab-menu li').on('click', function (g) {
159        var tab = $(this).closest('.tab'),
160          index = $(this).closest('li').index();
161        tab.find('li').siblings('li').removeClass('active');
162        $(this).closest('li').addClass('active');
163        tab.find('.tab-area').find('div.tab-item').not('div.tab-item:eq(' + index + ')').hide(10);
164        tab.find('.tab-area').find('div.tab-item:eq(' + index + ')').fadeIn(10);
165        g.preventDefault();
166      });
167      $('.tab-up ul.tab-menu li').on('click', function (g) {
168        var tabT = $(this).closest('.tab-up'),
169          indexT = $(this).closest('li').index();
170        tabT.find('li').siblings('li').removeClass('active');
171        $(this).closest('li').addClass('active');
172        tabT.find('.tab-area').find('div.tab-item').not('div.tab-item:eq(' + indexT + ')').slide
172Up(400);
173        tabT.find('.tab-area').find('div.tab-item:eq(' + indexT + ')').slideDown(400);
174        g.preventDefault();
175      });
176      // counter 
177      $('.counter').countUp({
178        'time': 1500,
179        'delay': 10
180      });
181      $('.social-icons li a').on('mouseover', function(e) {
182        var social = $(this).parent('li');
183        if(social.children('a').hasClass('active')) {
184          social.siblings('li').children('a').removeClass('active');
185          $(this).addClass('active');
186        } else {
187          social.siblings('li').children('a').removeClass('active');
188          $(this).addClass('active');
189        }
190      });
191      //Widget Slider
192      $('.testimonial-slider').owlCarousel({
193        loop:true,
194        nav:false,
195        dots: false,
196        items:1,
197        autoplay:true,
198        autoplayTimeout:2500,
199        autoplayHoverPause:true,
200        margin: 0,
201        mouseDrag: false,
202        touchDrag: true,
203      });
204      var owlBela = $('.testimonial-slider');
205      owlBela.owlCarousel();
206      // Go to the next item
207      $('.testi-next').on('click', function() {
208          owlBela.trigger('prev.owl.carousel');
209      })
210      // Go to the previous item
211      $('.testi-prev').on('click', function() {
212          owlBela.trigger('next.owl.carousel', [300]);
213      })
214      //Widget Slider
215      $('.mobile-slider-16').owlCarousel({
216        loop:true,
217        nav:false,
218        dots: true,
219        items:1,
220        autoplay:true,
221        autoplayTimeout: 2500,
222        autoplayHoverPause:false,
223        margin: 0,
224        mouseDrag: false,
225        touchDrag: false,
226      });
227      //Widget Slider
228      $('.mobile-slider').owlCarousel({
229        loop:true,
230        nav:false,
231        dots: false,
232        items:1,
233        autoplay:true,
234        autoplayTimeout: 4000,
235        autoplayHoverPause:false,
236        margin: 0,
237        mouseDrag: false,
238        touchDrag: false,
239      });
240      var owlC = $('.mobile-slider');
241      owlC.owlCarousel();
242      // Go to the next item
243      $('.cola-next').on('click', function() {
244          owlC.trigger('next.owl.carousel');
245      })
246      // Go to the previous item
247      $('.cola-prev').on('click', function() {
248          owlC.trigger('prev.owl.carousel', [300]);
249      })
250      //Widget Slider
251      $('.colaboration-slider').owlCarousel({
252        loop:true,
253        nav:false,
254        dots: false,
255        items:1,
256        autoplay:true,
257        autoplayTimeout: 4000,
258        autoplayHoverPause:false,
259        margin: 0,
260        mouseDrag: false,
261        touchDrag: false,
262      });
263      var owlF = $('.colaboration-slider');
264      owlF.owlCarousel();
265      // Go to the next item
266      $('.cola-next').on('click', function() {
267          owlF.trigger('next.owl.carousel');
268      })
269      // Go to the previous item
270      $('.cola-prev').on('click', function() {
271          owlF.trigger('prev.owl.carousel', [300]);
272      })
273      //Widget Slider
274      $('.banner-4-slider').owlCarousel({
275        loop:true,
276        nav:false,
277        dots: false,
278        items:1,
279        autoplay:true,
280        autoplayTimeout:4000,
281        autoplayHoverPause:false,
282        margin: 0,
283        mouseDrag: false,
284        touchDrag: true,
285      });
286      var owlD = $('.banner-4-slider');
287      owlD.owlCarousel();
288      // Go to the next item
289      $('.ban-next').on('click', function() {
290          owlD.trigger('next.owl.carousel');
291      })
292      // Go to the previous item
293      $('.ban-prev').on('click', function() {
294          owlD.trigger('prev.owl.carousel', [300]);
295      })
296      //Widget Slider
297      $('.banner-1-slider').owlCarousel({
298        loop:true,
299        nav:false,
300        dots: false,
301        items:1,
302        autoplay:false,
303        margin: 0,
304        mouseDrag: false,
305        touchDrag: false,
306        animateOut: 'fadeOut',
307        animateIn: 'fadeIn',
308        // animateOut: 'slideOutUp',
309        // animateIn: 'slideInDown',
310      });
311      var owlE = $('.banner-1-slider');
312      owlE.owlCarousel();
313      // Go to the next item
314      $('.ban-click').on('click', function() {
315          owlE.trigger('next.owl.carousel');
316      })
317      //Range Slider
318      $( function() {
319        $( "#usd-range" ).slider({
320          range: "min",
321          value: 250,
322          min: 1,
323          max: 500,
324          slide: function( event, ui ) {
325            $( "#usd-amount" ).val( ui.value + " Users" );
326          }
327        });
328        $( "#usd-amount" ).val( $( "#usd-range" ).slider( "value" ) + " Users");
329      } );
330      //Sponsor Slider 
331      $('.sponsor-slider').owlCarousel({
332        loop: true,
333        margin: 0,
334        responsiveClass: true,
335        nav: false,
336        dots: false,
337        loop: true,
338        autoplay: true,
339        autoplayTimeout: 2000,
340        autoplayHoverPause: true,
341        responsive:{
342            0:{
343                items:2,
344            },
345            480:{
346                items:3,
347            },
348            768:{
349                items:4,
350            }
351        }
352      })
353      $('.sponsor-slider-two').owlCarousel({
354        loop: true,
355        margin: 30,
356        responsiveClass: true,
357        nav: false,
358        dots: false,
359        loop: true,
360        autoplay: true,
361        autoplayTimeout: 2000,
362        autoplayHoverPause: true,
363        responsive:{
364            0:{
365                items:2,
366            },
367            480:{
368                items:3,
369            },
370            768:{
371                items:5,
372            },
373            992:{
374                items:3,
375            },
376            1200:{
377                items:4,
378            },
379        }
380      })
381      $('.sponsor-slider-3').owlCarousel({
382        loop: true,
383        margin: 30,
384        responsiveClass: true,
385        nav: false,
386        dots: false,
387        loop: true,
388        autoplay: true,
389        autoplayTimeout: 2000,
390        autoplayHoverPause: true,
391        responsive:{
392            0:{
393                items:2,
394            },
395            480:{
396                items:3,
397            },
398            768:{
399                items:4,
400            },
401            992:{
402                items:5,
403            },
404            1200:{
405                items:6,
406            },
407        }
408      })
409      $('.sponsor-slider-4').owlCarousel({
410        loop: true,
411        margin: 30,
412        responsiveClass: true,
413        nav: false,
414        dots: false,
415        loop: true,
416        autoplay: true,
417        autoplayTimeout: 2000,
418        autoplayHoverPause: true,
419        responsive:{
420            0:{
421                items:2,
422            },
423            480:{
424                items:3,
425            },
426            768:{
427                items:5,
428            },
429            992:{
430                items:6,
431            },
432            1200:{
433                items:7,
434            },
435        }
436      })
437      $('.logo-slider').owlCarousel({
438        loop: true,
439        margin: 30,
440        responsiveClass: true,
441        nav: false,
442        dots: false,
443        loop: true,
444        autoplay: true,
445        autoplayTimeout: 2000,
446        autoplayHoverPause: true,
447        responsive:{
448            0:{
449                items:2,
450            },
451            480:{
452                items:3,
453            },
454            768:{
455                items:4,
456            },
457            992:{
458                items:5,
459            },
460            1200:{
461                items:6,
462            },
463        }
464      })
465      $('.client-slider').owlCarousel({
466        loop: true,
467        margin: 0,
468        responsiveClass: true,
469        nav: false,
470        dots: false,
471        loop: true,
472        autoplay: true,
473        autoplayTimeout: 2000,
474        autoplayHoverPause: true,
475        responsive:{
476            0:{
477                items:1,
478            },
479            500:{
480                items:2,
481            },
482            992:{
483                items:3,
484            }
485        }
486      })
487      $('.history-slider').owlCarousel({
488        loop: true,
489        margin: 0,
490        responsiveClass: true,
491        nav: false,
492        dots: false,
493        loop: true,
494        autoplay: true,
495        autoplayTimeout: 2000,
496        autoplayHoverPause: true,
497        center: true,
498        responsive:{
499            0:{
500                items:1,
501            },
502            767:{
503                items:3,
504            },
505            1199:{
506                items:5,
507            },
508        }
509      })
510      $('.tool-slider').owlCarousel({
511        loop: true,
512        margin: 30,
513        responsiveClass: true,
514        nav: true,
515        navText: ["<i class='flaticon-double-left-angle-arrows' aria-hidden='true'></i>","<i class='flaticon-double-angle-arrow-pointing-to-right' aria-hidden='true'></i>"],
516        dots: false,
517        loop: true,
518        autoplay: true,
519        autoplayTimeout: 2000,
520        autoplayHoverPause: true,
521        responsive:{
522            0:{
523                items:1,
524            },
525            500:{
526                items:2,
527            },
528            768:{
529                items:3,
530            },
531            992:{
532                items:2,
533            }
534        }
535      })
536      //feature-item-2-slider 
537      $('.feature-item-2-slider').owlCarousel({
538        loop: true,
539        margin: 30,
540        responsiveClass: true,
541        nav: false,
542        dots: false,
543        loop: true,
544        autoplay: true,
545        autoplayTimeout: 2000,
546        autoplayHoverPause: true,
547        responsive:{
548            0:{
549                items:1,
550            },
551            768:{
552                items:2,
553            },
554            1200:{
555                items:3,
556            }
557        }
558      })
559      //Pricing SLider
560      $('.pricing-slider').owlCarousel({
561        loop: true,
562        margin: 0,
563        responsiveClass: true,
564        nav: false,
565        dots: false,
566        loop: true,
567        autoplay: true,
568        autoplayTimeout: 2000,
569        autoplayHoverPause: true,
570        responsive:{
571            0:{
572                items:1,
573            },
574            768:{
575                items:2,
576            },
577            992:{
578                items:3,
579            },
580            1200:{
581                items:4,
582            }
583        }
584      })
585      if ($('.feat-slider').length) {
586        $('.feat-slider').owlCarousel({
587          center: true,
588          items: 1,
589          // autoplay: true,
590          // autoplayTimeout: 3000,
591          loop: true,
592          margin: 0,
593          singleItem: true,
594          nav: false,
595          dots: false,
596          thumbs: true,
597          mouseDrag: false,
598          touchDrag: true,
599          thumbsPrerendered: true,
600          animateOut: 'fadeOut',
601          animateIn: 'fadeIn',
602        });
603      }
604      var owlFeat = $('.feat-slider, .app-screenshot-slider-20, .feature-content-slider-20');
605      // Go to the next item
606      $('.feat-prev').on('click', function() {
607        owlFeat.trigger('prev.owl.carousel');
608      })
609      // Go to the previous item
610      $('.feat-next').on('click', function() {
611          owlFeat.trigger('next.owl.carousel', [300]);
612      })
613      if ($('.work-slider').length) {
614        $('.work-slider').owlCarousel({
615          center: true,
616          items: 1,
617          // autoplay: true,
618          // autoplayTimeout: 2500,
619          loop: false,
620          margin: 0,
621          singleItem: true,
622          nav: true,
623          dots: false,
624          thumbs: true,
625          mouseDrag: false,
626          touchDrag: true,
627          thumbsPrerendered: true,
628          // animateOut: 'fadeOut',
629          // animateIn: 'fadeIn',
630        });
631      }
632
633      // JS 4.0.1 Starts
634      $('.screenshot-slider, .screenshot-slider-3').owlCarousel({
635          items: 1,
636          loop: false,
637          margin: 30,
638          singleItem: true,
639          nav: false,
640          dots: false,
641        });
642      var owlSrn = $('.screenshot-slider, .screenshot-slider-3');
643      // Go to the next item
644      $('.app-prev').on('click', function() {
645        owlSrn.trigger('prev.owl.carousel');
646      })
647      // Go to the previous item
648      $('.app-next').on('click', function() {
649          owlSrn.trigger('next.owl.carousel', [300]);
650      })
651      $('.screenshot-slider-2').owlCarousel({
652        items: 1,
653        loop: false,
654        margin: 30,
655        singleItem: true,
656        nav: false,
657        dots: true,
658        dotsContainer: '.dots-2'
659      });
660      $('.app-screenshot-slider-20, .how-slider-20').owlCarousel({
661        items: 1,
662        loop: false,
663        margin: 30,
664        singleItem: true,
665        nav: false,
666        dots: true,
667        dotsContainer: '.dots-2',
668        animateOut: 'fadeOut',
669        animateIn: 'fadeIn',
670        mouseDrag: false,
671      });
672      $('.client-slider-2, .feature-content-slider-20').owlCarousel({
673        items: 1,
674        loop: false,
675        margin: 30,
676        singleItem: true,
677        nav: false,
678        dots: false,
679      });
680      $('.amazing-slider').owlCarousel({
681        loop: true,
682        margin: 30,
683        responsiveClass: true,
684        nav: false,
685        dots: false,
686        loop: true,
687        autoplay: true,
688        autoplayTimeout: 2000,
689        autoplayHoverPause: true,
690        responsive:{
691            0:{
692                items:1,
693            },
694            450:{
695                items:2,
696            },
697            992:{
698                items:3,
699            },
700            1200:{
701                items:3,
702                margin: 70,
703            }
704        }
705      })
706
707      $('.up--down--overflow').prev('*').addClass('pb-lg-200');
708      $('.up--down--overflow').next('*').addClass('pt-lg-200');
709      $('.up--down--overflow').addClass('pt-lg-0 pb-lg-0');
710
711
712      // JS 4.0.1 Ends
713
714
715      $('.chorka').on('click', function(){
716          $('.swap-area').toggleClass('active');
717      })
718      
719      $('.client-item-16 .client-thumb').on('mouseover', function (e) {
720        var element = $(this).parent('.client-item-16');
721        if (element.hasClass('open')) {
722          element.removeClass('open');
723          element.removeClass('active');
724        } else {
725          element.siblings('.client-item-16').find('.client-content').removeClass('active');
726          element.siblings('.client-item-16').removeClass('active');
727          element.children('.client-content').addClass('active');
728          element.addClass('active');
729        }
730      })
731    });
732  })(jQuery);
733  

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.