PageSourceSearch

https://www.prague.fm/wp-content/plugins/prague-price-table/js/pr_script_frontend.js?ver=7.1

js prague.fm collected 2026-09-24 18:59:02 UTC 6,667 bytes, 159 lines download raw bytes

1
2    jQuery(document).ready(function($) {
3        
4
5        if ($(window).width() < 767) {
6            do_something_with767();
7            var $form = jQuery(".search-form").first();
8            //console.log('width767');
9        } else if ($(window).width() < 999) {
10            do_something_with999();
11            var $form = jQuery(".search-form").first();
12            //console.log('width999');
13        } else if ($(window).width() > 1000) {
14            do_something_with();
15            var $form = jQuery(".search-form").last();
16            //console.log('width1000');
17        } else {
18            do_something_with();
19            var $form = jQuery(".search-form").last();
20            //console.log('width more 1000');
21        }
22
23        $form.validate({
24            rules: {
25                booking_date: "required",
26                booking_time: "required",
27                from_location: "required",
28                location_to: "required",
29                passengerscount: {
30                    required: true,
31                    digits: true,
32                    max: 49,
33                    min: 1
34                }
35            },
36            messages: {
37                booking_date: translated_js.required,
38                booking_time: translated_js.required,
39                from_location: translated_js.Pleasefillthefrom,
40                location_to: translated_js.Pleasefillthefromto,
41                passengerscount: translated_js.Passengerscount49
42            },
43            submitHandler: function(form, event){
44                event.preventDefault();
45                var startpr, finishpr, passengerscount, datepickerpmx, timepickerpmx;
46                if ($(window).width() < 767) {
47                    startpr = jQuery('.autocomplete').first().val();
48                    finishpr = jQuery('.location_to').first().val();
49                    passengerscount = jQuery('.passengerscount').first().val();
50                    datepickerpmx = jQuery('#datepickerpmx').first().val();
51                    timepickerpmx = jQuery('#timepickerpmx').first().val();
52                } else if ($(window).width() < 999) {
53                    startpr = jQuery('.autocomplete').first().val();
54                    finishpr = jQuery('.location_to').first().val();
55                    passengerscount = jQuery('.passengerscount').first().val();
56                    datepickerpmx = jQuery('#datepickerpmx').first().val();
57                    timepickerpmx = jQuery('#timepickerpmx').first().val();
58                } else if ($(window).width() > 1000) {
59                    startpr = jQuery('.autocomplete').last().val();
60                    finishpr = jQuery('.location_to').last().val();
61                    passengerscount = jQuery('.passengerscount').last().val();
62                    datepickerpmx = jQuery('#datepickerpmx').last().val();
63                    timepickerpmx = jQuery('#timepickerpmx').last().val();
64                } else {
65                    startpr = jQuery('.autocomplete').last().val();
66                    finishpr = jQuery('.location_to').last().val();
67                    passengerscount = jQuery('.passengerscount').last().val();
68                    datepickerpmx = jQuery('.datepickerpmx').last().val();
69                    timepickerpmx = jQuery('.timepickerpmx').last().val();
70                }
71
72                jQuery.ajax({
73                    type: "POST",
74                    dataType: "json",
75                    url: ajax_object.ajaxurl, 
76                    data:  {action: "pr_get_seaarch_bar", startpr:startpr, finishpr:finishpr, passengerscount:passengerscount, datepickerpmx:datepickerpmx, timepickerpmx:timepickerpmx},
77                    beforeSend: function() {
78                        jQuery('.loading-icon').show();
79                        jQuery(".result-data").empty('');
80                    },
81                    success: function(response) {
82                        jQuery('.loading-icon').hide();
83                        jQuery(".result-data").html(response.return_data);
84                        if ($(window).width() < 767) {
85                            do_something_with767(response.return_data);
86                            //console.log('width767');
87                        } else if ($(window).width() < 999) {
88                            do_something_with999(response.return_data);
89                            //console.log('width999');
90                        } else if ($(window).width() > 1000) {
91                            do_something_with(response.return_data);
92                            //console.log('width1000');
93                        }
94
95                        jQuery(".result-data").show();
96                    }
97                });
98            }
99        });
100
101        function do_something_with767(data){
102            jQuery('.result-data .airport-transport-slider').not('.slick-initialized').slick({
103                dots: false,
104                arrows: true,
105                infinite: false,
106                speed: 800,
107                slidesToShow: 1,
108                slidesToScroll: 1,
109            });
110            jQuery('.airport-transport-slider').not('.slick-initialized').slick({
111                dots: false,
112                arrows: true,
113                infinite: false,
114                speed: 800,
115                slidesToShow: 1,
116                slidesToScroll: 1,
117            });
118        }
119
120        function do_something_with999(data){
121            jQuery('.result-data .airport-transport-slider').not('.slick-initialized').slick({
122                dots: false,
123                arrows: true,
124                infinite: false,
125                speed: 800,
126                slidesToShow: 2,
127                slidesToScroll: 1,
128            });
129            jQuery('.airport-transport-slider').not('.slick-initialized').slick({
130                dots: false,
131                arrows: true,
132                infinite: false,
133                speed: 800,
134                slidesToShow: 2,
135                slidesToScroll: 1,
136            });
137        }
138
139        function do_something_with(data){
140            jQuery('.result-data .airport-transport-slider').not('.slick-initialized').slick({
141                dots: false,
142                arrows: true,
143                infinite: false,
144                speed: 800,
145                slidesToShow: 4,
146                slidesToScroll: 1,
147            });
148
149            jQuery('.airport-transport-slider').not('.slick-initialized').slick({
150                dots: false,
151                arrows: true,
152                infinite: false,
153                speed: 800,
154                slidesToShow: 4,
155                slidesToScroll: 1,
156            });
157        }
158    });
159

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.