PageSourceSearch

https://shop.zongoraszalon.hu/!common_packages/jquery/own/shop_com…/function_check_zip.js?mod_time=1767692285

js zongoraszalon.hu collected 2026-10-08 03:18:03 UTC 2,808 bytes, 56 lines download raw bytes

1$(document).ready(function(){
2    $(".check_zip:not([readonly])").blur(function(){
3        var thisInput = $(this);
4        var temp_value = thisInput.val();
5        var temp_type = thisInput.attr("id").replace("_irany","");
6        thisInput.addClass('in-progress');
7
8        let country = $("#"+temp_type+"_orszag").val();
9        if (UNAS.design.page === 'customer_address_details') country = $("#country").val();
10
11        $.ajax({
12            type: "GET",
13            async: true,
14            url: shop_url_main+"/shop_reg.php",
15            dataType: 'json',
16            data: {
17                action:"check_zip",
18                zip:temp_value,
19                country:country
20            },
21            success: function(result) {
22                thisInput.removeClass('in-progress');
23                if (result.status=="no_data") { /*nem találjuk*/
24                    $("#div_out_"+temp_type+"_zip .page_design_fault_out").removeClass("page_design_fault");
25                    $("#div_out_"+temp_type+"_zip .page_design_fault_text strong").html("");
26                    thisInput.removeClass('is-invalid');
27                    thisInput.siblings('.invalid-feedback').html("");
28                } else if (result.status=="not_found") {
29                    $("#div_out_"+temp_type+"_zip .page_design_fault_out").addClass("page_design_fault");
30                    $("#div_out_"+temp_type+"_zip .page_design_fault_text strong").html(lang_text["data_not_found"]);
31                    thisInput.addClass('is-invalid');
32                    thisInput.siblings('.invalid-feedback').html(lang_text["data_not_found"]);
33                } else if (result.status=="ok") {
34                    $("#div_out_"+temp_type+"_zip .page_design_fault_out").removeClass("page_design_fault");
35                    $("#div_out_"+temp_type+"_zip .page_design_fault_text strong").html("");
36                    thisInput.removeClass('is-invalid');
37                    thisInput.siblings('.invalid-feedback').html("");
38
39                    if ($("#ud_shop_customer_addresses_det").length > 0) {
40                        if ($("#county").length > 0) {
41                            $("#county").val(result.county);
42                        }
43
44                        if ($("#city").length > 0 && result.city !== "") {
45                            $("#city").val(result.city);
46                        }
47                    } else {
48                        $("#"+temp_type+"_megye").val(result.county).removeClass('is-invalid');
49                        if (result.city!="") $("#"+temp_type+"_varos").val(result.city).removeClass('is-invalid');
50                        if (result.street!="") $("#"+temp_type+"_utca").val(result.street).removeClass('is-invalid');
51                    }
52                }
53            }
54        });
55    });
56});

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.