1(function($) { 2 3 'use strict'; 4 5 $(document).ready(function() { 6 7 $('.check-room').on('click', function() { 8 var mondokStartDate = jQuery('#takedate').val(); 9 var mondokEndDate = jQuery('#enddate').val(); 10 $.ajax({ 11 url: mondok_ajax_object.ajaxurl, 12 type: 'POST', 13 data: { 14 action: 'mondok_check_room', 15 start: mondokStartDate, 16 end: mondokEndDate 17 }, 18 beforeSend: function(response) { 19 $('.loader-check').show(); 20 $('.check-room').css('opacity', '0.4'); 21 }, 22 success: function(response) { 23 24 var obj = JSON.parse(response); 25 26 var available = obj.available; 27 28 var place = obj.place; 29 var days = obj.days; 30 31 //$('.button-continue').show(); 32 $('.loader-check').hide(); 33 $('.check-room').css('opacity', '1'); 34 35 if (response == '' || response == '0') { 36 $('.the-room-btn.check-room').hide(); 37 $('.the-room-btn.book-room').css('display', 'inline-block'); 38 } 39 40 } 41 }); 42 }); 43 44 }); 45 46}(jQuery));
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.