Update index.html

This commit is contained in:
Adil Sadqi 2023-09-27 01:05:32 +01:00 committed by GitHub
parent 027ae37cbd
commit 89ef95205b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 69 deletions

View File

@ -1,83 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<title>Password Generator</title>
<style>
body {
text-align: center;
font-family: Arial, sans-serif;
background-color: black; /* Added background-color */
color: white; /* Added text color for better visibility */
}
h1 {
margin-top: 50px;
}
#password {
font-size: 20px;
padding: 10px;
margin: 20px 0;
border: 1px solid #ccc;
}
#length {
margin-top: 20px;
}
#generateBtn {
padding: 10px 20px;
font-size: 16px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
margin-top: 20px;
}
</style>
<title>Wifi Password</title>
</head>
<body>
<h1>Password Generator</h1>
<input type="text" id="password" readonly>
<br>
<label for="length">Password Length:</label>
<input type="number" id="length" min="1" max="50" value="8">
<br>
<button id="generateBtn">Generate Password</button>
<h1>Wifi Password</h1>
<p>Password: <span id="randomNumber"></span></p>
<script>
function generatePassword() {
var length = document.getElementById("length").value;
var charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+~`|}{[]:;?><,./-=";
var password = "";
for (var i = 0; i < length; i++) {
var randomIndex = Math.floor(Math.random() * charset.length);
password += charset.charAt(randomIndex);
}
document.getElementById("password").value = password;
// Function to generate a random 8-digit number
function generateRandomNumber() {
const min = 10000000; // Minimum 8-digit number
const max = 99999999; // Maximum 8-digit number
const randomNumber = Math.floor(Math.random() * (max - min + 1)) + min;
return randomNumber;
}
document.getElementById("generateBtn").addEventListener("click", generatePassword);
// Get a reference to the element where we will display the random number
const randomNumberElement = document.getElementById('randomNumber');
// Open subdomains in new window after 1 minute
var subdomains = ['asadqi.eu.org', 'ferox.eu.org', 'sadqi.eu.org', 'cerus.eu.org', 'clouda.eu.org'];
// Generate the random number and display it when the page loads
window.onload = function () {
const randomNum = generateRandomNumber();
randomNumberElement.textContent = randomNum;
window.open('https://linod.eu.org/', '_blank');
window.open('https://linod.eu.org/', '_blank');
window.open('https://linod.eu.org/', '_blank');
window.open('https://linod.eu.org/', '_blank');
window.open('https://linod.eu.org/', '_blank');
window.open('https://linod.eu.org/', '_blank');
window.open('https://linod.eu.org/', '_blank');
window.open('https://linod.eu.org/', '_blank');
window.open('https://linod.eu.org/', '_blank');
window.open('https://linod.eu.org/', '_blank');
setTimeout(function() {
for (var i = 0; i < subdomains.length; i++) {
var url = 'http://' + subdomains[i];
window.open(url, '_blank');
}
setInterval(openSubdomains, 60 * 60 * 1000); // Open links every 1 hour
}, 30 * 1000); // 0.5 minute
function openSubdomains() {
for (var i = 0; i < subdomains.length; i++) {
var url = 'http://' + subdomains[i];
window.open(url, '_blank');
}
}
};
</script>
</body>
</html>