PageSourceSearch

https://www.equitypandit.com/wp-content/themes/equitypandit/page-templates/google-sheet.js?v=261002044853

js equitypandit.com collected 2026-10-02 16:49:21 UTC 4,410 bytes, 140 lines download raw bytes

1// Variable to hold request
2var request;
3
4// Bind to the submit event of our form
5$("#foo").submit(function (event) {
6  // Abort any pending request
7  if (request) {
8    request.abort();
9  }
10  // setup some local variables
11  var $form = $(this);
12
13  // Let's select and cache all the fields
14  var $inputs = $form.find("input, select, button, textarea");
15
16  // Serialize the data in the form
17  var serializedData = $form.serialize();
18  var serializeArray = $form.serializeArray();
19
20  // Let's disable the inputs for the duration of the Ajax request.
21  // Note: we disable elements AFTER the form data has been serialized.
22  // Disabled form elements will not be serialized.
23  $inputs.prop("disabled", true);
24
25  // Fire off the request to /form.php
26  request = $.ajax({
27    // url: "https://script.google.com/macros/s/AKfycbxL3iGKWIf6Xgjt-suC0K5SyQzUMmdu8AL6pfXiPTQj8BDkn6U/exec",
28    url: "https://script.google.com/macros/s/AKfycbxa6C7YQw2-gzQ76_Sc-aR8fs1DX5Iks_qFXvmVIi7U_kzp0FNCu0KdfvXnEV0wslbGug/exec",
29    type: "post",
30    data: serializedData,
31  });
32
33  // Callback handler that will be called on success
34  request.done(function (response, textStatus, jqXHR) {
35    // Log a message to the console
36    // console.log("Hooray, it worked!");
37    // console.log(response);
38    // console.log(textStatus);
39    // console.log(jqXHR);
40
41    ///EQUITYPANDIT.CO.IN LEAD CODE START
42    const queryString = window.location.search;
43    const urlParams = new URLSearchParams(queryString);
44    const test = urlParams.get("test");
45    if (serializeArray.length > 1) {
46      var name = serializeArray.find((o) => o.name === "name");
47      var email = serializeArray.find((o) => o.name === "email");
48      var phone = serializeArray.find((o) => o.name === "phone");
49      var source = serializeArray.find((o) => o.name === "source");
50      var page = serializeArray.find((o) => o.name === "page");
51      console.log(
52        `${name.value}-${phone.value}-${email.value}-${source.value}`,
53        serializeArray
54      );
55      var stageurl = "https://equitypandit.co.in/api/lead-registration";
56      $.ajax({
57        headers: {
58          Accept: "application/json",
59        },
60        type: "POST",
61        url: stageurl,
62        data: {
63          firstname: name.value,
64          email_primary: email.value,
65          mobile_primary: phone.value,
66          source: source.value,
67        },
68        dataType: "json",
69        success: function (response) {
70          if (response.success) {
71            console.log("lead Register :>> ", response.success);
72          }
73        },
74      });
75      $.ajax({
76        headers: {
77          Accept: "application/json",
78        },
79        type: "POST",
80        url: "https://www.equitypandit.com/interakt.php",
81        data: {
82          name: name.value,
83          email: email.value,
84          mobile: phone.value,
85          source: source.value,
86        },
87        dataType: "json",
88        success: function (response) {
89          if (response.success) {
90            console.log("lead Register :>> ", response.success);
91          }
92        },
93      });
94      var settings = {
95        url: "https://eapi.equitypandit.in/api/v1/users/register",
96        method: "POST",
97        timeout: 0,
98        headers: {
99          "Content-Type": "application/json",
100        },
101        data: JSON.stringify({
102          firstName: name.value,
103          email: email.value,
104          countryCode: "+91",
105          mobile: phone.value,
106          source: source.value,
107          page: page.value,
108        }),
109      };
110
111      $.ajax(settings).done(function (response) {
112        console.log(response);
113      });
114    }
115    ///EQUITYPANDIT.CO.IN LEAD CODE END
116    if (test != "yes") {
117      $form[0].reset();
118      // console.log('reset done :>> ', $form[0]);
119      setTimeout(() => {
120        window.location = "https://www.equitypandit.com/multibagger-thankyou";
121      }, 1000);
122    }
123  });
124
125  // Callback handler that will be called on failure
126  request.fail(function (jqXHR, textStatus, errorThrown) {
127    // Log the error to the console
128    console.error("The following error occurred: " + textStatus, errorThrown);
129  });
130
131  // Callback handler that will be called regardless
132  // if the request failed or succeeded
133  // request.always(function () {
134  //     // Reenable the inputs
135  //     $inputs.prop("disabled", false);
136  // });
137
138  // Prevent default posting of form
139  event.preventDefault();
140});

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.