PageSourceSearch

https://www.getblend.com/wp-content/themes/blend/assets/js/page.js?ver=1752071057

js getblend.com collected 2026-10-02 04:05:04 UTC 23,885 bytes, 697 lines download raw bytes

1(function ($) {
2
3
4    $(document).ready(function () {
5        // Check if the flexi-top-baner element exists
6        const $banner = $('.flexi-top-baner');
7        if ($banner.length) {
8            // Fade in the banner
9            $banner.fadeIn();
10
11            // Function to update the CSS variable for banner height
12            const updateBannerHeight = () => {
13                const bannerHeight = $banner.outerHeight();
14                document.documentElement.style.setProperty('--flexi-top-baner-height', bannerHeight + 'px');
15            };
16
17            // Set initial CSS variable for banner height
18            updateBannerHeight();
19
20            // Update the CSS variable on window resize and orientation change
21            $(window).on('resize orientationchange', updateBannerHeight);
22
23            // Click handler for closing the banner
24            $banner.find('.flexi-top-baner__close').on('click', function () {
25                // Set a cookie for one week
26                document.cookie = "flexiTopBannerClosed=true; path=/; max-age=" + (7 * 24 * 60 * 60) + ";";
27
28                // Remove the CSS variable for the banner height
29                document.documentElement.style.setProperty('--flexi-top-baner-height', '0px');
30
31                // Fade out the banner
32                $banner.fadeOut();
33            });
34        }
35    });
36
37
38
39    function initPage() {
40        //desktop only
41        if ($(window).width() > 1100) {
42            $(".has--child").hover(function () {
43                $(this).find(".open_menu").addClass('menu-opened');
44                $(this).find(".mega-menu-vector").addClass('menu-opened');
45            }, function () {
46                $(this).find(".open_menu").removeClass('menu-opened');
47                $(this).find(".mega-menu-vector").removeClass('menu-opened');
48            });
49
50        }
51
52        //mobile only
53        if ($(window).width() < 800) {
54            $(".menu_bt").click(function () {
55                if ($(this).hasClass("active")) {
56                    $(".menu").slideUp();
57                    $(".menu").removeClass("active");
58                    $(".logo").removeClass("active");
59                    $("body").removeClass("over--hide");
60                } else {
61                    $(".menu").slideDown();
62                    $(".menu").addClass("active");
63                    $(".logo").addClass("active");
64                    $("body").addClass("over--hide");
65                }
66                $(this).toggleClass("active");
67            });
68            $(".drop_down").click(function () {
69                if ($(this).hasClass("active")) {
70                    $(this).siblings(".open_menu").slideUp();
71                } else {
72                    $(this).siblings(".open_menu").slideDown();
73                }
74                $(this).toggleClass("active");
75                $(this).siblings(".menu_item_top").toggleClass("active");
76
77            });
78        }
79        $(window).scroll(function () {
80            if ($(this).scrollTop() > 1) {
81                if ($(".head_main").hasClass("fixed")) {
82                    return;
83                }
84                $(".head_main").addClass("fixed");
85            } else {
86                $(".head_main").removeClass("fixed");
87            }
88        });
89
90
91        $(".paroller, [data-paroller-factor]").paroller();
92        onScrollInit($('.doit'));
93        setTimeout(function () {
94            slideLoad()
95        }, 800);
96
97        $(".lang_bt_in").click(function () {
98            if ($(this).hasClass("active")) {
99                $(this).siblings(".open_menu").slideUp();
100            } else {
101                $(this).siblings(".open_menu").slideDown();
102            }
103            $(this).toggleClass("active");
104        });
105        $(".position_title").attr("value", script_vars);
106
107        $(".wpcf7-submit").click(function () {
108            $(".ajax-loader").addClass("is-active");
109            $(".wpcf7-submit").addClass("submit-hide");
110        })
111
112        document.addEventListener('wpcf7submit', function (event) {
113            setTimeout(function () {
114                if ($(".wpcf7-file").val() == '') {
115                    $(".wpcf7-file").addClass("wpcf7-not-valid");
116                    $(".wpcf7-file").attr("aria-invalid", "true");
117                    $(".wpcf7-file").parent().append('<span class="wpcf7-not-valid-tip" aria-hidden="false">The field is required</span>');
118                    $(".ajax-loader").removeClass("is-active");
119                    $(".wpcf7-submit").removeClass("submit-hide");
120                } else {
121                    $(".wpcf7-file").parent().find('.wpcf7-not-valid-tip').attr("style", "display: none");
122                    $(".ajax-loader").removeClass("is-active");
123                    $(".wpcf7-submit").removeClass("submit-hide");
124                }
125            }, false);
126        });
127
128
129        if ($(".slide_fade").length > 0) {
130            $('.slide_fade').slick({
131                arrows: false,
132                dots: true,
133                infinite: true,
134                fade: true,
135                slidesToShow: 1,
136                slidesToScroll: 1,
137                autoplay: true,
138                autoplaySpeed: 2000,
139            });
140        }
141        $('.slide_logos').slick({
142            arrows: false,
143            dots: false,
144            //rtl:true,
145            infinite: true,
146            fade: false,
147            slidesToShow: 6,
148            slidesToScroll: 1,
149            variableWidth: true,
150            autoplay: true,
151            autoplaySpeed: 0,
152            cssEase: 'linear',
153            speed: 3000,
154            responsive: [
155                {
156                    breakpoint: 1400,
157                    settings: {
158                        slidesToShow: 6
159                    }
160                },
161                {
162                    breakpoint: 1200,
163                    settings: {
164                        slidesToShow: 4
165                    }
166                },
167                {
168                    breakpoint: 800,
169                    settings: {
170                        mobileFirst: true,
171                        slidesToShow: 1,
172                        slidesToScroll: 1,
173                        slidesPerRow: 3,
174                        rows: 2,
175                        autoplaySpeed: 2000,
176                        cssEase: 'ease',
177                        variableWidth: false,
178                        speed: 500,
179                        fade: true,
180                        arrows: false,
181                        dots: true,
182                    }
183                }
184            ]
185        });
186
187        $('.slide_list_serv').slick({
188            arrows: false,
189            dots: true,
190            infinite: false,
191            fade: false,
192            slidesToShow: 1,
193            slidesToScroll: 1,
194            rows: 1,
195            slidesPerRow: 2,
196            autoplay: false,
197
198        });
199
200        if ($(".quote_slide").length > 0) {
201            $('.quote_slide').slick({
202                nextArrow: $(".quote_slide_wrap").find(".arrow-r"),
203                prevArrow: $(".quote_slide_wrap").find(".arrow-l"),
204                dots: false,
205                infinite: true,
206                fade: true,
207                slidesToShow: 1,
208                slidesToScroll: 1,
209                autoplay: true,
210                autoplaySpeed: 3500,
211                responsive: [
212
213                    {
214                        breakpoint: 1200,
215                        settings: {
216                            arrows: false,
217                            dots: true,
218                        }
219                    }
220                ]
221            });
222        }
223        if ($(".blog_hero_slide").length > 0) {
224            $('.blog_hero_slide').slick({
225                nextArrow: $(".blog").find(".arrow-r"),
226                prevArrow: $(".blog").find(".arrow-l"),
227                dots: true,
228                infinite: false,
229                fade: true,
230                slidesToShow: 1,
231                slidesToScroll: 1,
232                autoplay: true,
233                autoplaySpeed: 3500,
234
235            });
236        }
237        if ($(".hp_idus_slide").length > 0) {
238            $('.hp_idus_slide').slick({
239                nextArrow: $(".hp_idus_slide_wrap").find(".arrow-r"),
240                prevArrow: $(".hp_idus_slide_wrap").find(".arrow-l"),
241                dots: false,
242                infinite: false,
243                centerMode: false,
244                slidesToShow: 1,
245                slidesToScroll: 1,
246                slidesPerRow: 3,
247                rows: 2,
248                autoplay: false,
249                autoplaySpeed: 3000,
250                responsive: [
251
252                    {
253                        breakpoint: 1200,
254                        settings: {
255                            arrows: false,
256                            dots: true,
257                        }
258                    },
259                    {
260                        breakpoint: 680,
261                        settings: {
262                            mobileFirst: true,
263                            slidesPerRow: 2,
264                            rows: 3,
265                            arrows: false,
266                            dots: true,
267                        }
268                    }
269                ]
270
271            });
272        }
273
274        if ($(".experts_reviews_slide").length > 0) {
275            $('.experts_reviews_slide').slick({
276                arrows: false,
277                dots: true,
278                infinite: true,
279                slidesToShow: 3,
280                slidesToScroll: 1,
281                autoplay: false,
282                autoplaySpeed: 3000,
283                responsive: [
284                    {
285                        breakpoint: 800,
286                        settings: {
287                            mobileFirst: true,
288                            slidesToShow: 1,
289                        }
290                    }
291                ]
292
293            });
294        }
295
296        if ($(".slide_posts").length > 0) {
297            $('.slide_posts').slick({
298                arrows: false,
299                dots: true,
300                infinite: true,
301                //fade: true,
302                slidesToShow: 3,
303                slidesToScroll: 2,
304                autoplay: true,
305                autoplaySpeed: 3400,
306                responsive: [
307
308                    {
309                        breakpoint: 800,
310                        settings: {
311                            slidesToShow: 2,
312                        }
313                    },
314                    {
315                        breakpoint: 650,
316                        settings: {
317                            slidesToShow: 1,
318                            slidesToScroll: 1,
319                        }
320                    }
321                ]
322            });
323        }
324
325        if ($(".slide_sm_logos").length > 0) {
326            $('.slide_sm_logos').slick({
327                arrows: false,
328                dots: true,
329                infinite: true,
330                //fade: true,
331                slidesToShow: 3,
332                slidesToScroll: 2,
333                autoplay: true,
334                autoplaySpeed: 0,
335                cssEase: 'linear',
336                speed: 3000,
337
338            });
339        }
340
341
342        //input file style
343        $('.inputfile').attr('data-multiple-caption', '{count} files selected');
344        var inputs = document.querySelectorAll('.inputfile');
345
346        Array.prototype.forEach.call(inputs, function (input) {
347
348            var inp = $(input);
349            var form_file = inp.closest('.form_file'),
350                label = form_file.find('label'),
351                labelVal = label.innerHTML;
352
353
354            input.addEventListener('change', function (e) {
355                var fileName = '';
356                if (this.files && this.files.length > 1)
357                    fileName = (this.getAttribute('data-multiple-caption') || '').replace('{count}', this.files.length);
358                else
359                    fileName = e.target.value.split('\\').pop();
360
361                if (fileName) {
362                    label.find('.my-file').html(fileName);
363                    inp.closest('.form_file').addClass('active');
364                } else {
365                    form_file.find('.inputfile').val('');
366                    label.find('.my-file').html('');
367                    inp.closest('.form_file').removeClass('active');
368                }
369            });
370        });
371        $('.form_file .close a').on('click', function () {
372            var form_file = $(this).closest('.form_file');
373            form_file.find('.my-file').html('');
374            form_file.removeClass('active');
375            form_file.find('.inputfile').val('');
376        });
377
378
379    }
380
381//Popups
382
383
384//close pop
385    function closePop() {
386        $(".popup_wrap").fadeOut().removeClass("pop--scale");
387        $("body").removeClass("over--hide");
388    }
389
390    window.toggle = function (ele) {
391        toggleContainer = $(ele).closest(".toggleContainer");
392        if ($(toggleContainer).hasClass("active")) {
393            $(toggleContainer).removeClass("active");
394            $(toggleContainer).find(".toggleInner").eq(0).slideUp();
395        } else {
396            //$(".toggleContainer.active").find(".toggleInner").eq(0).hide();
397            //$(".toggleContainer.active").removeClass("active");
398            $(".toggleContainer").map(function () {
399                $(this).removeClass("active");
400                $(this).find(".toggleInner").eq(0).slideUp();
401            });
402            $(toggleContainer).addClass("active");
403            $(toggleContainer).find(".toggleInner").eq(0).slideDown();
404        }
405
406    };
407
408// function openLinks(ele){
409// 	if($(window).width()<800){
410// 		colEle = $(ele).closest(".ft_links_col");
411// 		if($(colEle).hasClass("active")){
412// 			$(colEle).removeClass("active");
413// 			$(colEle).find(".ft_link_in").slideUp();
414// 		}else{
415// 			$(colEle).addClass("active");
416// 			$(colEle).find(".ft_link_in").slideDown();
417// 		}
418// 		return;
419// 	}
420// 	if($(".footer").hasClass("active")){
421// 		$(".footer").removeClass("active");
422// 		$(".footer").find(".ft_link_in").slideUp();
423// 	}else{
424// 		$(".footer").addClass("active");
425// 		$(".footer").find(".ft_link_in").slideDown();
426// 	}
427// }
428    function onScrollInit(items) {
429        items.each(function () {
430            var osElement = $(this),
431                osAnimationClass = osElement.attr('data-animation'),
432                osAnimationDelay = osElement.attr('data-animated-delay');
433            osAnimationDuration = osElement.attr('data-animated-duration');
434            osElement.css({
435                '-webkit-animation-delay': osAnimationDelay,
436                '-moz-animation-delay': osAnimationDelay,
437                'animation-delay': osAnimationDelay,
438                '-webkit-animation-duration': osAnimationDuration,
439                '-moz-animation-duration': osAnimationDuration,
440                'animation-duration': osAnimationDuration
441            });
442            osElement.waypoint(function () {
443                osElement.addClass('animated').addClass(osAnimationClass);
444                if (osElement.hasClass("doit_svg")) {
445                    //osElement.find("svg").hide();
446                    durationSet = (parseInt(osAnimationDelay) + 1.5) * 1000;
447                    setTimeout(function () {
448                        osElement.find("svg").show();
449                    }, durationSet);
450                }
451            }, {offset: '80%'});
452        });
453    }
454
455    function goTosec2() {
456        newTop = $(".sec2:visible").eq(0).offset().top - $(".header").outerHeight();
457        $("html,body").animate({scrollTop: newTop}, 800);
458    }
459
460    function goToPosition() {
461        newTop = $(".sec_positions:visible").eq(0).offset().top - $(".header").outerHeight() - 30;
462        $("html,body").animate({scrollTop: newTop}, 800);
463    }
464
465    $('select[name=cat]').on('change', function (e) {
466        let $form = $(this).closest('form');
467        window.top.location = $(this).val();
468    });
469
470    function changeTopic(cat_id) {
471        $('#searchformCat select[name=cat]').val(cat_id).change();
472    }
473
474    $('.select-pos select').on('change', function (e) {
475        let type = $(this).attr('name');
476        let value = $(this).val();
477        switch (type) {
478            case 'location':
479
480                if (value) {
481
482                    $('.career_group .faq_row').hide();
483                    $('.career_group .faq_row[data-location="' + value + '"]').show();
484                } else {
485                    $('.career_group .faq_row').show();
486                }
487                break;
488            case 'team':
489                if (value) {
490                    $('.career_group').hide();
491                    $('.career_group[data-term_id=' + value + ']').show();
492                } else {
493                    $('.career_group').show();
494                }
495                break;
496        }
497
498    })
499
500
501    $(".nmt_btn").click(function () {
502        newTop =
503            $("#nmt").eq(0).offset().top - $(".header").outerHeight();
504        $("html,body").animate({scrollTop: newTop}, 800);
505    });
506    $(".tms_btn").click(function () {
507        newTop = $("#tms").eq(0).offset().top - $(".header").outerHeight();
508        $("html,body").animate({scrollTop: newTop}, 800);
509    });
510    $(".cms_btn").click(function () {
511        newTop = $("#cms").eq(0).offset().top - $(".header").outerHeight();
512        $("html,body").animate({scrollTop: newTop}, 800);
513    });
514
515//thank
516    var wpcf7Elm = document.querySelector('.has--thank .wpcf7');
517
518    if (wpcf7Elm) {
519        wpcf7Elm.addEventListener('wpcf7mailsent', function (event) {
520            $('.before_send').hide();
521            $('.after_send').addClass('is-on');
522        }, false);
523    }
524
525
526    $('.integrations-cat li').on('click', function () {
527        $('.integrations-cat li').removeClass('active');
528        $(this).addClass('active');
529        var ingCat = $(this).text()
530        if ($(this).hasClass('all')) {
531            $('.integrations-items .integration_item').show();
532        } else {
533            $('.integrations-items .integration_item').hide();
534            $('.integrations-items .integration_item[data-cat="' + ingCat + '"]').show();
535        }
536    });
537
538    function slideLoad() {
539        $(".slide-load").addClass('show');
540
541    }
542
543
544//____________________________________________________________________________
545
546    $('.copy-item-wrap .copy-flags .flag-wrap').on('click', function () {
547        if (!$(this).hasClass("active")) {
548            var allClasses = $(this).find('img').attr('class').split(' ');
549            var id = allClasses.filter(c => c === 'eng' || c === 'jp' || c === 'sp' || c === 'fr' || c === 'gr' || c === 'it')[0];
550            var parent = $(this).closest('.flags-item');
551            $(parent).find('.copy-item-wrap').removeClass('on');
552            $(parent).children('.' + id).addClass('on');
553        }
554    });
555
556
557    $('#Wform1').hide();
558    $('#Wform2').hide();
559
560
561    $('.welcome-v2 #click_second_form_1').on('click', function () {
562        $('#next-2').addClass('btn-hide');
563        $('.next-hide').removeClass('btn-hide');
564    });
565    $('.welcome-v2 #click_second_form_2').on('click', function () {
566        $('#next-2').removeClass('btn-hide');
567        $('.next-hide').addClass('btn-hide');
568    });
569    $('.welcome-v2 #click_second_form_3').on('click', function () {
570        $('#next-2').removeClass('btn-hide');
571        $('.next-hide').addClass('btn-hide');
572    });
573
574    $('#click_second_form_1').on('click', function () {
575        $('.fs-title.title3').text('Sign up to start a project');
576        $('#Wform2').hide();
577        $('#Wform3').hide();
578        $('#Wform1').show();
579    });
580
581    $('#click_second_form_2').on('click', function () {
582        $('.fs-title.title3').text('Sure, we’re happy to help! We’ll just need a few details, and someone will be in touch with you soon.');
583        $('#Wform1').hide();
584        $('#Wform3').hide();
585        $('#Wform2').show();
586    });
587
588    $('#click_second_form_3').on('click', function () {
589        $('.fs-title.title3').text("How can we contact you for more localization tips and updates?");
590        $('#Wform1').hide();
591        $('#Wform2').hide();
592        $('#Wform3').show();
593    });
594
595    $('#myForm').change(function () {
596        $('#next-1').addClass('active');
597    });
598
599    $('#myForm2').change(function () {
600        $('#next-2').addClass('active');
601    });
602
603    $(".container_radio input").css("pointer-events", "all");
604
605    $("audio").bind("play", function () {
606        $("audio").not(this).each(function (index, audio) {
607            audio.pause();
608        });
609    });
610
611
612    $('.m-collapse').each(function () {
613        if ($(this).height() < 230) {
614            $(this).next('.bottom-more').css('display', 'none')
615            $(this).removeClass('m-collapse');
616            $(this).height('auto');
617        } else {
618            $(this).addClass('large');
619        }
620    });
621
622    $(".read-more").on("click", function () {
623        $selector = $(this).parent().prev(".m-collapse");
624        if ($selector.hasClass("in")) {
625            $(this).removeClass("active");
626            $selector.data('oHeight', '230px').animate({height: $selector.data('oHeight')}, 150);
627            $selector.removeClass("in");
628        } else {
629            $(this).addClass("active");
630            $selector.addClass("in");
631            $selector.data('oHeight', $selector.height()).css('height', 'auto').data('nHeight', $selector.outerHeight()).height($selector.data('oHeight')).animate({height: $selector.data('nHeight')}, 150);
632        }
633
634
635    });
636
637
638    $('.sec_split .split-in').click(function () {
639        $('.sec_split .split-in .radio').removeClass('active');
640        $(this).find('.radio').addClass('active');
641        var link = $(this).find('.bt_primary').attr('href');
642        $('.sec_split .split-next').css('display', 'inline-block');
643        $('.sec_split .split-next').attr('href', '' + link + '')
644    });
645
646    $(document).ready(function () {
647        var $scrollbar = jQuery("#scrollbar1");
648        $scrollbar.tinyscrollbar({axis: "x", thumbSize: 40});
649    });
650
651
652    document.addEventListener('DOMContentLoaded', function () {
653        window.addEventListener('message', function (event) {
654            if (event.data.type === 'hsFormCallback' && event.data.eventName === 'onF
654ormReady') {
655                // Select only forms that are inside '.sec_ft_form' parent
656                const hsForms = document.querySelectorAll('.ft_form .hs-form');
657
658                hsForms.forEach(function (hsForm) {
659                    if (!hsForm.querySelector('.bt_primary_new')) {
660                        const submitButton = hsForm.querySelector('input[type="submit"]');
661                        if (submitButton) {
662                            submitButton.style.display = 'none';
663
664                            const newButton = document.createElement('button');
665                            newButton.type = 'submit';
666                            newButton.className = 'bt_primary_new';
667                            const buttonText = submitButton.value || 'Submit';
668                            newButton.innerHTML = `<span>${buttonText}</span><div class="arrow_primary_new"></div>`;
669
670                            hsForm.appendChild(newButton);
671                        }
672                    }
673                });
674            }
675        });
676    });
677
678    $(document).ready(function () {
679        let item_width = $('.scroll-item').outerWidth(true);
680        let items_length = $('.scroll-item').length;
681
682        let $scrollbar = $("#scrollbar1");
683        $scrollbar.tinyscrollbar({ axis: "x", thumbSize: 40 });
684        $('#scrollbar1 .overview').css('width',item_width * items_length + 'px');
685
686        let plugin = $scrollbar.data("plugin_tinyscrollbar");
687        if (plugin && typeof plugin.update === 'function') {
688            plugin.update();
689        }
690    });
691
692
693    document.addEventListener('DOMContentLoaded', function () {
694        initPage();
695    });
696
697})(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.