PageSourceSearch

https://cardepo.com.tr/assets/js/scripts.min.js?v=uMO_eeYAL0yfQrtW7hNo6zoTmxi4hyx8a2igicocCdI

js cardepo.com.tr collected 2026-10-02 02:09:00 UTC 4,892 bytes, 129 lines download raw bytes

1function saveClient() {
2
3
4
5    const form = new FormData();
6    form.append('googleRecaptcha', $("#g-recaptcha-response").val());
7    form.append('compName', $("#compName").val());
8    form.append('compAddress', $("#compAddress").val());
9    form.append('compCity', $("#compCity").val());
10    form.append('compDistrict', $("#compDistrict").val());
11    form.append('compPhone', $("#compPhone").val());
12    form.append('compFax', $("#compFax").val());
13    form.append('compTaxNumber', $("#compTaxNumber").val());
14    form.append('compTaxOffice', $("#compTaxOffice").val());
15    form.append('authFirstName', $("#authFirstName").val());
16    form.append('authLastName', $("#authLastName").val());
17    form.append('authPhone', $("#authPhone").val());
18    form.append('authEmail', $("#authEmail").val());
19    form.append('isKvkkContract', $("#isKvkkContract").prop("checked"));
20    form.append('isServiceContract', $("#isServiceContract").prop("checked"));
21    $.ajax({
22        method: 'POST',
23        url: 'https://gatewayclient.cardepo.com.tr/client-service/create',
24        data: form,
25        processData: false,
26        contentType: false,
27        beforeSend: () => {
28            $(".popup-loading-container").addClass("active");
29        },
30        success: (data) => {
31            $(".popup-loading-container").removeClass("active");
32            swal(data.result ? 'Başarılı' : 'Hata', data.message, data.result ? 'success' : 'error').then(function () {
33                window.location.href = '/';
34            });
35            setTimeout(function () {
36                window.location.href = '/';
37            }, 2000);
38        },
39        complete: () => {
40
41        },
42        error: (data) => {
43            grecaptcha.reset();
44            $(".popup-loading-container").removeClass("active");
45            swal(data.responseJSON.result ? 'Başarılı' : 'Hata', data.responseJSON.message, data.responseJSON.result ? 'success' : 'error');
46        }
47    });
48}
49
50$(document).ready(function () {
51    $(document).on("click", ".saveButton", function () { 
52        if ($("#g-recaptcha-response").val())
53            if (!$("#compName").val() ||
54                !$("#compAddress").val() ||
55                !$("#compCity").val() ||
56                !$("#compDistrict").val() ||
57                !$("#compPhone").val() ||
58                !$("#compTaxNumber").val() ||
59                !$("#compTaxOffice").val() ||
60                !$("#authFirstName").val() ||
61                !$("#authLastName").val() ||
62                !$("#authPhone").val() ||
63                !$("#authEmail").val()) {
64                $("input[required]").each(function () {
65                    var $this = $(this);
66                    if (!$this.val())
67                        $this.addClass("fill");
68                    else
69                        $this.removeClass("fill");
70                });
71                swal('Uyarı', 'Lütfen zorunlu alanları doldurunuz.', 'error');
72            }
73            else
74                saveClient();
75        else
76            swal('Uyarı', 'Lütfen robot olmadığınızı kanıtlayınız.', 'error');
77    });
78    $(window).scroll(function () {
79        var scTop = $(window).scrollTop();
80        if (scTop > 0) $("#header-container").addClass("sticky");
81        else $("#header-container").removeClass("sticky");
82    });
83    $(document).on("click", "#header-container .mobile-button", function () {
84        $("#mobile-navigation-container").addClass("active");
85    });
86    $(document).on("click", "#mobile-navigation-container .close", function () {
87        $("#mobile-navigation-container").removeClass("active");
88    });
89    if ($(".set-header-invert").length)
90        $("#header-container").addClass("has-invert");
91    if ($(".home-hero-slider").length) {
92        var homeHeroSlider = new Swiper(".home-hero-slider", {
93            initialSlide: 0,
94            loop: false,
95            speed: 700,
96            autoplay: {
97                delay: 8000,
98                disableOnInteraction: false
99            },
100            pagination: {
101                el: ".home-hero-pagination",
102                clickable: true
103            },
104            navigation: {
105                nextEl: ".home-hero-nav--next",
106                prevEl: ".home-hero-nav--prev"
107            }
108        });
109    }
110    if ($(".pricing-container").length) {
111        $(".price-slider").slider({
112            max: 100,
113            slide: function (event, ui) {
114                $(".piece").text(ui.value);
115            }
116        });
117        $(".pricing-faqs .title").click(function () {
118            var $parents = $(this).parents(".item");
119            if ($parents.hasClass("active")) {
120                $parents.removeClass("active");
121            }
122            else {
123                $parents.addClass("active");
124            }
125        });
126    }
127    if ($(".phone-mask").length)
128        $(".phone-mask").mask("0(000)-000-00-00");
129});

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.