PageSourceSearch

https://visitbahrain.bh//app/themes/visitbahrain/controllers/booking/assets/booking-main.js?ver=1665044230

js visitbahrain.bh collected 2026-10-04 01:50:02 UTC 946 bytes, 30 lines download raw bytes

1(function ($) {
2  var date = new Date(),
3      today = new Date(date.getFullYear(), date.getMonth(), date.getDate());
4
5  if (typeof(datesBooking) !== 'undefined') {
6    $('#booking-calendar.date').datepicker({
7      startDate: false,
8      datesDisabled: datesBooking.map(x => x.date),
9      format: 'DD dd, M yyyy',
10      autoclose: true,
11      todayHighlight: false
12    });
13  }
14
15  if (isMobile) {
16    $('#date_booking').val(moment().format('dddd D, MMM YYYY'));
17    $('#date_booking_mirror').val(moment().format('YYYY-MM-DD'));
18    $('.date-select-mirror').text($('#date_booking').val());
19
20    $('a.date-select-mirror').on('click touchstart', function() {
21        $('#date_booking_mirror').click();
22    })
23
24    $('#date_booking_mirror').on('change', function(){
25      $('#date_booking').val(moment($(this).val(), "YYYY-MM-DD").format('dddd D, MMM YYYY'));
26      $('.date-select-mirror').text($('#date_booking').val());
27    });
28  }
29
30}(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.