PageSourceSearch

https://porubkahe.sk/idsk/plugins/reservation/assets/js/reservation_form.js

js porubkahe.sk collected 2026-10-03 18:58:19 UTC 2,062 bytes, 56 lines download raw bytes

1$(document).ready(function(){
2  $('.reservation_form_submit input').prop('disabled', true);
3
4  //Fields
5  $('#name,#lastname,#email,#phone,#information,#date_reservation,#time_arrival,#time_departure').keyup(function(){
6
7    var name = $('#name').val().trim(),
8        lastname = $('#lastname').val().trim(),
9        email = $('#email').val().trim(),
10        phone = $('#phone').val().trim(),
11        information = $('#information').val().trim(),
12        date_reservation = $('#date_reservation').val().trim(),
13        time_arrival = $('#time_arrival').val().trim(),
14        time_departure = $('#time_departure').val().trim();
15
16        $('#chck').change(function(){
17
18        if($('#chck').is(':checked') && name.length > 3 && lastname.length > 3 && email.length > 3 && phone.length > 3 && information.length > 3 && date_reservation.length > 3 && time_arrival.length > 3 && time_departure.length > 3) {
19          if(IsEmail(email) == true) {
20            $('.reservation_form_submit input').prop('disabled', false);
21          }else{
22            $('.reservation_form_submit input').prop('disabled', true);
23          }
24        }else{
25          $('.reservation_form_submit input').prop('disabled', true);
26        }
27
28      }); //chck change
29
30      if($('#chck').is(':checked') && name.length > 3 && lastname.length > 3 && email.length > 3 && phone.length > 3 && information.length > 3 && date_reservation.length > 3 && time_arrival.length > 3 && time_departure.length > 3) {
31        if(IsEmail(email) == true) {
32          $('.reservation_form_submit input').prop('disabled', false);
33        }else{
34          $('.reservation_form_submit input').prop('disabled', true);
35        }
36      }else{
37        $('.reservation_form_submit input').prop('disabled', true);
38      }
39
40
41
42
43  });
44
45  function IsEmail(email) {
46      var regex =
47  /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
48      if (!regex.test(email)) {
49          return false;
50      }
51      else {
52          return true;
53      }
54  }
55
56});

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.