PageSourceSearch

https://vetrex.eu/wp-content/themes/vetrex/assets/configurator/js/ajax.js?ver=1

js vetrex.eu collected 2026-10-05 03:38:07 UTC 3,996 bytes, 166 lines download raw bytes

1function showAllDoors(type) {
2
3    jQuery.ajax({
4        url: ajax_object.ajaxurl,
5        type: 'GET',
6        data: {
7            action: 'show_all_doors',
8            type: type,
9            ajax: 'true'
10        },
11        dataType: 'html',
12
13        beforeSend: function() {
14
15            $(".ajax-loader").fadeIn();
16
17            if(currentRequest != null) {
18                currentRequest.abort();
19            }
20            $('.ajax-loader').fadeIn();
21
22            $(".step1").fadeOut();
23        },
24
25        complete: function(){
26            $('.ajax-loader').fadeOut();
27        },
28
29        success: function (data) {
30
31            $(".ajax-loader").fadeOut();
32
33            var dataResponse = JSON.parse(data);
34
35            if( dataResponse['render'].length > 0 ) {
36                jQuery.each( dataResponse.render, function( i, val ) {
37                    $('.step2__content').append(val);
38                });
39
40                $(".back").fadeIn();
41                // window.history.replaceState(null, null, window.location.pathname + "step2");
42            } else {
43                $('.step2__content').append('<div class="nothing-found">Brak wyników</div>');
44            }
45
46            showDoorsScripts();
47            // showTerraceWindowsFunctions();
48            // showWindowsFunctions();
49        },
50
51        error: function(errorThrown){
52
53        }
54    });
55}
56
57function showDoorsModels(checkedTypes) {
58
59    jQuery.ajax({
60        url: ajax_object.ajaxurl,
61        type: 'GET',
62        data: {
63            action: 'show_doors_models',
64            checkedTypes: checkedTypes,
65            ajax: 'true'
66        },
67        dataType: 'html',
68
69        beforeSend: function() {
70
71            $(".ajax-loader").fadeIn();
72
73            if(currentRequest != null) {
74                currentRequest.abort();
75            }
76            $('.ajax-loader').fadeIn();
77
78            $(".step2").fadeOut();
79        },
80
81        complete: function(){
82            $('.ajax-loader').fadeOut();
83        },
84
85        success: function (data) {
86
87            $(".ajax-loader").fadeOut();
88
89            var dataResponse = JSON.parse(data);
90
91            if( dataResponse['render'].length > 0 ) {
92                jQuery.each( dataResponse.render, function( i, val ) {
93                    $('.step2-1__content').append(val);
94                });
95
96                // window.history.replaceState(null, null, window.location.pathname + "step2");
97            } else {
98                $('.step2-1__content').append('<div class="nothing-found">Brak wyników</div>');
99            }
100
101            showDoorsModelScripts();
102        },
103
104        error: function(errorThrown){
105
106        }
107    });
108}
109
110function showDoorsModelScripts() {
111    $(".back3").show();
112    $(".back2").hide();
113    $(".back").hide();
114
115    $(".back3").click(function() {
116        $(".step2-1__content").html("");
117        $(".step2").fadeIn();
118        $(this).hide();
119        $(".back2").show();
120    });
121
122    $(".back2").click(function() {
123        $(this).hide();
124        $(".step2__content").html("");
125        $(".step1").fadeIn();
126        $(".back").show();
127    });
128
129    $(".door-cart-form").click(function() {
130        var id = $(this).find('.card-title').html();
131        console.log(id);
132    });
133}
134
135function showDoorsScripts() {
136    $(".back").click(function() {
137        $(".step2__content").html("");
138        $(".step1").fadeIn();
139        $(this).fadeOut();
140    });
141
142    $(".back2").click(function() {
143        $(".step3").fadeOut();
144        $(".step2__content").fadeIn();
145        $(this).hide();
146        $(".back").show();
147    });
148
149    $(".door-cart").click(function() {
150        $(this).toggleClass('checked');
151    });
152
153    $(".show-models").click(function(e) {
154        e.preventDefault();
155        var id = $(this).attr("data-id");
156
157        var checkedTypes = "";
158        $(".door-cart.checked").each( function () {
159            checkedTypes += $(this).attr("data-id") + ';';
160        });
161
162        showDoorsModels(checkedTypes);
163    });
164
165    $(".step2__content").fadeIn();
166}

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.