=== "" || name2 === "") {
                document.getElementById('result').innerHTML = "Please enter both names!";
                return;
            }

            // Generate a random love percentage between 1 and 100
            const lovePercentage = Math.floor(Math.random() * 100) + 1;

            // Display the result
            document.getElementById('result').innerHTML = `${name1} & ${name2} are ${lovePercentage}% in love! ðŸ’–`;
        }
    </script>
</body>
</html>
