PageSourceSearch

https://mairie-anceaumeville.fr/wp-content/plugins/booking-calendar-com/inc/js/personal.js?ver=11.6

js mairie-anceaumeville.fr collected 2026-10-02 23:02:40 UTC 3,815 bytes, 104 lines download raw bytes

1(function () {
2	var a = setInterval( function () {
3		if ( ('undefined' === typeof jQuery) || !window.jQuery ) {
4			return;
5		}
6		clearInterval( a );
7		// Here can  be executed jQuery functions
8		jQuery( document ).ready( function () {
9			// Here is my code start
10			if ( jQuery( '.wpdev-validates-as-time' ).length > 0 ) {
11				jQuery( '.wpdev-validates-as-time' ).attr( 'alt', 'time' );
12				jQuery( '.wpdev-validates-as-time' ).setMask();
13			}
14		} );
15	}, 500 );
16})();
17
18/**
19 mask0.destroy();
20var mask0 = IMask(temp1, {    mask: 'HH:MM PM',
21  lazy: false,  // make placeholder always visible
22
23  blocks: {
24    MM: {
25      mask: IMask.MaskedRange,
26      from: 0,
27      to: 59
28
29    },
30    HH: {
31      mask: IMask.MaskedRange,
32      from: 0,
33      to: 12
34    },
35
36    PM: {
37      mask: IMask.MaskedEnum,
38      enum: ['AM', 'PM']
39    }
40  }  });
41 */
42
43// ---------------------------------------------------------------------------------------------------------------------
44
45// Send booking Cancel by visitor
46function wpbc_customer_action__booking_cancel( booking_hash, bk_type, wpdev_active_locale ){
47
48    if ( booking_hash != '' ){
49
50        wpbc__spin_loader__mini__show( 'submiting' + bk_type, {  'show_here': { 'where': 'inside', 'jq_node': '#submiting' + bk_type }  } );
51
52        var ajax_type_action='DELETE_BY_VISITOR';
53
54        jQuery.ajax({                                           // Start Ajax Sending
55            url: wpbc_url_ajax,
56            type:'POST',
57            success: function (data, textStatus){if( textStatus == 'success')   jQuery('#ajax_respond_insert' + bk_type).html( data ) ;},
58            error:function (XMLHttpRequest, textStatus, errorThrown){window.status = 'Ajax sending Error status:'+ textStatus;console.error( XMLHttpRequest.status + ' ' + XMLHttpRequest.statusText);if (XMLHttpRequest.status == 500) {console.error( 'Please check at this page according this error:' + ' https://wpbookingcalendar.com/faq/#ajax-sending-error');}},
59            // beforeSend: someFunction,
60            data:{
61                // ajax_action : ajax_type_action,
62                action : ajax_type_action,
63                booking_hash : booking_hash,
64                bk_type : bk_type,
65                wpdev_active_locale:wpdev_active_locale,
66                wpbc_nonce: document.getElementById('wpbc_nonce_delete'+bk_type).value 
67            }
68        });
69        return false;
70    }
71    return true;
72}
73
74// ---------------------------------------------------------------------------------------------------------------------
75
76/**
77 * Set checkbox in booking form Exclusive on click
78 *
79 * @param element
80 */
81function wpbc_in_form__make_exclusive_checkbox( element ){
82    var is_checked = jQuery( element ).is( ':checked' );                            // FixIn: 10.1.5.1.
83    jQuery( '[name="' + element.name + '"]' ).prop( "checked", false );             // Uncheck  all checkboxes with  this name
84    element.checked = is_checked;
85}
86
87/**
88 * Set select-box with multiple selections - Exclusive
89 * @param element
90 */
91function wpbc_in_form__make_exclusive_selectbox( element ){
92
93    // Get all selected elements.
94    var selectedOptions = jQuery.find( '[name="' + element.name + '"] option:selected' );
95
96    // Check if we have more than 1 selection
97    if ( selectedOptions.length > 1 ){
98
99        var ind = selectedOptions[ 0 ].index;                                             // Get index of the first  selected element
100        jQuery( '[name="' + element.name + '"] option' ).prop( "selected", false );             // Uncheck  all checkboxes with  this name
101        jQuery( '[name="' + element.name + '"] option:eq(' + ind + ')' ).prop( "selected", true );  // Set the first element selected
102    }
103}
104

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.