PageSourceSearch

https://polatli.bel.tr/assets/js/custom.js

js polatli.bel.tr collected 2026-09-24 10:13:51 UTC 2,569 bytes, 70 lines download raw bytes

1/* $( document ).ready(function() {
2
3    document.getElementById("scrollTop").addEventListener("click", ()=>{
4        console.log('clicked to top');
5    $('html,body').animate({ scrollTop: 0 }, 400);
6        });
7        document.body.addEventListener('scroll', function(e) {
8            e.preventDefault();
9            if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
10                $('#scrollTop').show();
11            } else {
12                $('#scrollTop').hide();
13            }
14        }, { passive: false });
15}) */
16$(document).ready(function () {
17    $('form[data-ajax="true"]').on('submit', function (e) {
18        $.blockUI({
19            message: '<div class="spinner-border" role="status" style="margin-right:1rem"><span class="sr-only">Loading...</span></div> Lütfen Bekleyin...',
20            css: {
21                border: '5px solid #F4712',
22                backgroundColor: '#fff',
23                display: 'flex',
24                'justify-content': 'center',
25                'align-items': 'center',
26                padding: '10px'
27            }
28        });
29        e.preventDefault();
30        $.ajax({
31            url: $(this).attr('action'),
32            type: 'post',
33            data: $(this).serialize(),
34            success: function (data) {
35                if (data.msg == null) {
36                    Swal.fire('Durum', data, 'success')
37                } else {
38                    Swal.fire('Durum', data.msg, 'success')
39                }
40                $.unblockUI();
41            },
42            error: function (data) {
43                console.log(data);
44                if (data.responseJSON.message != null) {
45                    Swal.fire('Hata', data.responseJSON.message, 'error')
46
47                    if (data.responseJSON.errors != null) {
48                        var errors = "";
49                        for (var fieldName in data.responseJSON.errors) {
50                            errors += data.responseJSON.errors[fieldName][0] + '</br>';
51
52                        }
53                        console.log(errors);
54                        Swal.fire('Hata', errors, 'error')
55
56                    } else {
57                        Swal.fire('Hata', data.responseJSON.message, 'error')
58                      /*   Swal.fire('Hata', errors, 'error') */
59                    }
60
61                } else {
62                    Swal.fire('Hata', data.responseJSON.msg, 'error')
63                }
64                $.unblockUI();
65                grecaptcha.reset();
66            }
67        });
68        return false
69    })
70})

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.