PageSourceSearch

https://www.lindenhof.it/wp-content/plugins/weseo-kognitiv-interface/assets/js/offer-form.js

js lindenhof.it collected 2026-09-26 11:13:29 UTC 1,830 bytes, 65 lines download raw bytes

1jQuery(function($) {
2
3    $('form.wki-offer-form').each(function(i) {
4
5        var that = $(this);
6        var form_id = that.data('id');
7
8        var dateFrom = $( "#checkin-" + form_id ).datepicker({
9            altField: "#skd-checkin-" + form_id,
10            altFormat: "yy-mm-dd",
11            "beforeShow":function(input, inst) {
12                var datepickerDp = $(inst.dpDiv);
13                datepickerDp.removeClass('wso-inqu-open');
14            }
15        });
16
17        var dateTo = $( "#checkout-" + form_id ).datepicker({
18            altField: "#skd-checkout-" + form_id,
19            altFormat: "yy-mm-dd",
20            "beforeShow":function(input, inst) {
21                var datepickerDp = $(inst.dpDiv);
22                datepickerDp.removeClass('wso-inqu-open');
23            }
24        });
25
26        dateFrom.on( "change", function() {
27            dateTo.datepicker( "option", "minDate", getDate( this ) );
28        });
29
30        dateTo.on( "change", function() {
31            dateFrom.datepicker( "option", "maxDate", getDate( this ) );
32        });
33
34        that.submit(function(e) {
35            e.preventDefault();
36
37            $( "#checkin-" + form_id ).prop("disabled", true);
38            $( "#checkout-" + form_id ).prop("disabled", true);
39
40            if( !$( "#adults-" + form_id ).val() ) {
41                $( "#adults-" + form_id ).prop("disabled", true);
42            }
43
44            if( !$( "#children-" + form_id ).val() ) {
45                $( "#children-" + form_id ).prop("disabled", true);
46            }
47
48            this.submit();
49        });
50
51    });
52
53    function getDate( element ) {
54        var date;
55
56        try {
57            date = $.datepicker.parseDate( wki_offer_form_data.date_format, element.value );
58        } catch( error ) {
59            date = null;
60        }
61
62        return date;
63    }
64
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.