google-site-verification: google722da71d349632d6.html Fake Address Generator Tool: Skip to main content

Interest for Development and Coding Tools

Fake Address Generator Tool:

Fake Address Generator

Fake Address Generator

body { font-family: Arial, sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; background-color: #f0f0f0; } .container { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.1); width: 80%; max-width: 600px; text-align: center; } h1 { margin-bottom: 20px; } button { padding: 10px 20px; font-size: 16px; background-color: #007bff; color: #fff; border: none; border-radius: 5px; cursor: pointer; margin-bottom: 20px; } button:hover { background-color: #0056b3; } .address-output { font-size: 18px; line-height: 1.5; white-space: pre-wrap; /* Maintains formatting of the generated address */ } function generateAddress() { const streetNames = ['Main St', 'Broadway', 'Oak Ave', 'Pine St', 'Maple Dr']; const cityNames = ['Springfield', 'Rivertown', 'Greenville', 'Franklin', 'Fairview']; const stateNames = ['CA', 'NY', 'TX', 'FL', 'WA']; const countries = ['USA', 'Canada', 'UK', 'Australia', 'Germany']; // Generate random index for each part of the address const randomStreet = streetNames[Math.floor(Math.random() * streetNames.length)]; const randomCity = cityNames[Math.floor(Math.random() * cityNames.length)]; const randomState = stateNames[Math.floor(Math.random() * stateNames.length)]; const randomCountry = countries[Math.floor(Math.random() * countries.length)]; const randomNumber = Math.floor(Math.random() * 1000) + 1; // House number between 1 and 1000 // Create a fake address const address = ` ${randomNumber} ${randomStreet} ${randomCity}, ${randomState} ${randomCountry} `; // Display the address in the addressOutput div document.getElementById('addressOutput').textContent = address.trim(); }

Comments

Popular posts from this blog