96 lines
2.0 KiB
HTML
96 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="it">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Ordinatore di Numeri</title>
|
|
<style>
|
|
body {
|
|
font-family: 'Segoe UI', sans-serif;
|
|
background: linear-gradient(135deg, #f9f9f9, #e0f7fa);
|
|
margin: 0;
|
|
padding: 40px 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
min-height: 100vh;
|
|
-webkit-user-select: none;
|
|
-webkit-touch-callout: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
h1 {
|
|
color: #2c3e50;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
textarea {
|
|
width: 100%;
|
|
max-width: 600px;
|
|
height: 120px;
|
|
padding: 15px;
|
|
font-size: 16px;
|
|
border-radius: 12px;
|
|
border: 1px solid #ccc;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
|
|
resize: vertical;
|
|
background-color: #ffffff;
|
|
transition: border 0.3s ease;
|
|
}
|
|
|
|
textarea:focus {
|
|
border-color: #00bcd4;
|
|
outline: none;
|
|
}
|
|
|
|
button {
|
|
margin-top: 20px;
|
|
padding: 12px 30px;
|
|
font-size: 16px;
|
|
background-color: #00bcd4;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
box-shadow: 0 4px 10px rgba(0, 188, 212, 0.2);
|
|
transition: background-color 0.3s, transform 0.2s;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #0097a7;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
#output {
|
|
margin-top: 30px;
|
|
font-size: 18px;
|
|
color: #333;
|
|
background-color: #ffffff;
|
|
padding: 20px;
|
|
border-radius: 12px;
|
|
max-width: 600px;
|
|
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
@media (max-width: 700px) {
|
|
textarea, #output {
|
|
width: 90%;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<h1>Ordina Numeri Reali</h1>
|
|
<textarea id="numberInput" placeholder="Inserisci numeri separati da ;"></textarea><br>
|
|
<button onclick="esercizio2()">Ordina</button>
|
|
|
|
<p id="output"></p>
|
|
|
|
<script src="esercizi.js"></script>
|
|
|
|
</body>
|
|
</html>
|