PageSourceSearch

https://adnoc.ae/resources/adnoc/js/contactustabs.js

js adnoc.ae collected 2026-10-02 04:34:38 UTC 1,894 bytes, 40 lines download raw bytes

1        document.addEventListener("DOMContentLoaded", () => {
2        $('form.ajaxform').submit(function (e) {
3            e.preventDefault();
4            var $form = $(this);
5			
6			var id_of_form = $form.attr("id");
7			console.log("Id of the form is: ", id_of_form);
8			
9            if ($form.valid() && $("#"+id_of_form).attr("data-adnoc-captcha") == "valid") {
10                var data = $form.serialize();
11                $form.find("button[type=submit]").attr("disabled", "disabled");
12                $.post($form.attr("api-url"), data).done(function (result) {
13                    if (result.result == "1") {
14                        $form.find("#MessageSection").find('p').removeClass("error");
15                        $form.find("#MessageSection").find('p').addClass("success");
16                        $form.find("#MessageSection").find('p').text(result.message).show();
17                        return;
18                        
19                    }
20                    else {
21                        $form.find("#MessageSection").find('p').addClass("error");
22                        $form.find("#MessageSection").find('p').text(result.error).show();
23                        $form.find("button[type=submit]").removeAttr("disabled");
24
25                    }
26                })
27                    .fail(function (xhr, status, error) {
28                        $form.find("#MessageSection").find('p').removeClass("success");
29                        $form.find("#MessageSection").find('p').addClass("error");
30                        $form.find("#MessageSection").find('p').text(result.message).show();
31                        $form.find("button[type=submit]").removeAttr("disabled");
32
33                    });
34
35            } else {
36                $form.find("button[type=submit]").removeAttr("disabled");
37            }
38        })
39        
40    });

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.