105 lines
2.2 KiB
HTML
105 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="it">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Verifica Palindromo</title>
|
|
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
|
|
<style>
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Poppins', sans-serif;
|
|
background: linear-gradient(135deg, #c3ecf5, #e2d1f9);
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
-webkit-user-select: none;
|
|
-webkit-touch-callout: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.container {
|
|
background: rgba(255, 255, 255, 0.9);
|
|
backdrop-filter: blur(10px);
|
|
padding: 40px 30px;
|
|
border-radius: 20px;
|
|
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
|
|
width: 100%;
|
|
max-width: 500px;
|
|
text-align: center;
|
|
}
|
|
|
|
h1 {
|
|
margin-bottom: 20px;
|
|
color: #333;
|
|
font-size: 24px;
|
|
}
|
|
|
|
textarea {
|
|
width: 100%;
|
|
height: 100px;
|
|
border-radius: 10px;
|
|
border: 2px solid #ccc;
|
|
padding: 12px;
|
|
font-size: 16px;
|
|
resize: none;
|
|
transition: border-color 0.3s ease;
|
|
}
|
|
|
|
textarea:focus {
|
|
border-color: #7a5cf0;
|
|
outline: none;
|
|
}
|
|
|
|
button {
|
|
margin-top: 20px;
|
|
width: 100%;
|
|
padding: 14px;
|
|
background-color: #7a5cf0;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 10px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #6547d1;
|
|
}
|
|
|
|
#risultato {
|
|
margin-top: 25px;
|
|
font-size: 1.2em;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.positivo {
|
|
color: #28a745;
|
|
}
|
|
|
|
.negativo {
|
|
color: #dc3545;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Verifica se una frase è palindroma</h1>
|
|
<textarea id="inputFrase" placeholder="Es: I topi non avevano nipoti"></textarea>
|
|
<button onclick="esercizioOmaggio()">Verifica</button>
|
|
<div id="risultato"></div>
|
|
</div>
|
|
<script src="esercizi.js"></script>
|
|
</body>
|
|
</html>
|