PageSourceSearch

https://kazanbelnet.com.tr/themes/kazanbelnet/js/custom.js

js kazanbelnet.com.tr collected 2026-09-29 22:05:50 UTC 2,197 bytes, 65 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function () {
2
3    $('form[data-ajax="true"]').on('submit', function (e) {
4        blockPage();
5        $.ajax({
6            url: $(this).attr('action'),
7            type: 'post',
8            data: $(this).serialize(),
9            success: function (data) {
10                unblockPage();
11                console.log(data.message)
12                Swal.fire(contact_success, data.message ? data.message : "", 'success')
13                setTimeout(function () {
14                    window.location.reload();
15                }, 500);
16            },
17            error: function (data) {
18                console.log(data);
19                if (data.responseJSON.message != null) {
20                    Swal.fire('Hata', data.responseJSON.message, 'error')
21
22                    if (data.responseJSON.errors != null) {
23                        var errors = "";
24                        for (var fieldName in data.responseJSON.errors) {
25                            errors += data.responseJSON.errors[fieldName][0] + '</br>';
26
27                        }
28                        console.log(errors);
29                        Swal.fire('Hata', errors, 'error')
30
31                    } else {
32                        Swal.fire('Hata', errors, 'error')
33                    }
34
35                } else {
36                    Swal.fire('Hata', data.responseJSON.msg, 'error')
37                }
38                $.unblockUI();
39                grecaptcha.reset();
40            }
41        });
42        return false
43    })
44    $('.slider-carousel').owlCarousel({
45        loop: false,
46        margin: 10,
47        nav: true,
48        dots: false,
49        items: 1,
50    })
51});
52
53function blockPage() {
54    $.blockUI({
55        message: ('<div class="blockui-overlay bg-black bg-opacity-25" style="z-index: 10000;">' +
56            '<div class="bg-white rounded d-flex justify-content-center align-items-center p-2 fw-bold">' +
57            '<div class="spinner-border text-danger me-2" role="status">' +
58            '<span class="visually-hidden">' + please_wait + '...</span>' +
59            '</div>' + please_wait + '...</div></div>')
60    });
61}
62
63function unblockPage() {
64    $.unblockUI();
65}

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.