PageSourceSearch

https://www.justsystems.com/en/contact/js/form.js

js justsystems.com collected 2026-10-01 08:30:09 UTC 2,137 bytes, 89 lines download raw bytes

1$(function () {
2
3  var path = "justsystems_ir-dept/?to=justsystems/com";
4
5  var $form = $("#section01 form");
6
7  var fieldSelector = ".field";
8  var inputSelector = "input[type=text],textarea";
9  var checkSelector = ".privacy input[type=checkbox]";
10  var submitSelector = ".submit_bt";
11
12  var validateField = function ($field) {
13    var valid = true;
14    if ($field.hasClass("required")) {
15      $field.find(inputSelector).each(function () {
16        if (!$(this).val()) {
17          valid = false;
18          return false;
19        }
20      })
21    }
22    return valid;
23  }
24
25  var getPath = function () {
26    var delit = String.fromCharCode(16 * 4);
27    return path.replace("/\?to=", delit).replace(/\//g, ".");
28  }
29
30  var updateSubmit = function () {
31
32    var path = getPath();
33    $form.find("input[name=m_to]").val(path);
34
35    var valid = true;
36    $form.find(fieldSelector).each(function () {
37      var $field = $(this);
38      var fieldValid = validateField($field);
39      if (!fieldValid) {
40        valid = false;
41        return false;
42      }
43    });
44
45    if (!$form.find(checkSelector).prop('checked')) {
46      valid = false;
47    }
48
49    var $btn = $form.find(submitSelector);
50    if (valid) {
51      $btn.removeClass("disable");
52      $btn.prop("disabled", false);
53    } else {
54      $btn.addClass("disable");
55      $btn.prop("disabled", true);
56    }
57    return valid;
58  }
59
60  var bindUpdate = function () {
61    $form.submit(function () {
62      return updateSubmit();
63    });
64    $form.find(checkSelector).click(function () {
65      updateSubmit();
66    });
67    $form.find(fieldSelector).each(function () {
68      var $field = $(this);
69      var listener = function () {
70        updateSubmit();
71        $field.removeClass("error");
72        var valid = validateField($field);
73        if (!valid) {
74          $field.addClass("error");
75          return false;
76        }
77      }
78      $field.find(inputSelector).change(listener).keyup(listener);
79    });
80  }
81
82  var initialize = function () {
83    bindUpdate();
84    updateSubmit();
85  }
86
87  initialize();
88
89});

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.