-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
71 lines (62 loc) · 2.73 KB
/
index.html
File metadata and controls
71 lines (62 loc) · 2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Download App Legacy</title>
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@3.4.0/dist/tailwind.min.css" rel="stylesheet">
<meta name="robots" content="noindex, nofollow">
<script>
const ACCESS_PASSWORD = atob("bGVnYWN5MjAyNQ==");
function checkPassword() {
const input = document.getElementById("passwordInput").value.trim();
const loginBox = document.getElementById("loginBox");
const contentBox = document.getElementById("contentBox");
const errorMsg = document.getElementById("errorMsg");
if (input === ACCESS_PASSWORD) {
loginBox.style.display = "none";
contentBox.style.display = "block";
} else {
errorMsg.textContent = "❌ Password errata";
}
}
// Permette invio con Enter
document.addEventListener("DOMContentLoaded", () => {
document.getElementById("passwordInput").addEventListener("keypress", e => {
if (e.key === "Enter") checkPassword();
});
});
</script>
</head>
<body class="bg-gray-50 text-gray-800">
<!-- LOGIN BOX -->
<div id="loginBox" class="min-h-screen flex flex-col items-center justify-center text-center px-4">
<h1 class="text-2xl font-bold mb-4">🔐 Accesso riservato</h1>
<p class="text-gray-600 mb-6">Inserisci la password per accedere al download.</p>
<input id="passwordInput" type="password" placeholder="Password"
class="border border-gray-300 rounded-lg px-4 py-2 w-64 text-center focus:outline-none focus:ring-2 focus:ring-blue-400" />
<button onclick="checkPassword()"
class="mt-4 bg-blue-600 text-white px-6 py-2 rounded-lg hover:bg-blue-700 transition">
Entra
</button>
<p id="errorMsg" class="text-red-600 text-sm mt-3"></p>
</div>
<!-- CONTENUTO PROTETTO -->
<div id="contentBox" class="hidden max-w-2xl mx-auto px-4 py-10 text-center">
<h1 class="text-2xl font-bold mb-4">📱 App Legacy</h1>
<p class="text-gray-700 mb-6">
Questa è la versione legacy dell’app, mantenuta solo per compatibilità.
</p>
<a href="https://github.com/TeiaCare/teiacare.github.io/blob/develop/Microsoft.WindowsAppRuntime.1.6.msix"
class="inline-block bg-blue-600 text-white px-6 py-3 rounded-xl font-semibold hover:bg-blue-700 transition">
⬇️ Scarica APK
</a>
<p class="text-xs text-gray-500 mt-6">
Ultimo aggiornamento: ottobre 2025
</p>
<div class="mt-8 bg-yellow-50 border border-yellow-200 text-yellow-800 p-4 rounded-lg text-sm">
⚠️ Attenzione: questa versione non è più aggiornata e potrebbe non essere sicura.
</div>
</div>
</body>
</html>