undefined - Initial Deployment
Browse files- README.md +7 -5
- index.html +163 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: ivanip
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: gray
|
| 5 |
+
colorTo: red
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,163 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="it">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Il Tuo IP - Mostra il tuo indirizzo IP</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
.ip-container {
|
| 11 |
+
transition: all 0.3s ease;
|
| 12 |
+
}
|
| 13 |
+
.ip-container.copied {
|
| 14 |
+
transform: scale(1.05);
|
| 15 |
+
box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
|
| 16 |
+
}
|
| 17 |
+
.loading-dots::after {
|
| 18 |
+
content: '.';
|
| 19 |
+
animation: dots 1.5s steps(5, end) infinite;
|
| 20 |
+
}
|
| 21 |
+
@keyframes dots {
|
| 22 |
+
0%, 20% { content: '.'; }
|
| 23 |
+
40% { content: '..'; }
|
| 24 |
+
60% { content: '...'; }
|
| 25 |
+
80%, 100% { content: ''; }
|
| 26 |
+
}
|
| 27 |
+
.fade-in {
|
| 28 |
+
animation: fadeIn 0.5s ease-in;
|
| 29 |
+
}
|
| 30 |
+
@keyframes fadeIn {
|
| 31 |
+
from { opacity: 0; transform: translateY(10px); }
|
| 32 |
+
to { opacity: 1; transform: translateY(0); }
|
| 33 |
+
}
|
| 34 |
+
</style>
|
| 35 |
+
</head>
|
| 36 |
+
<body class="bg-gradient-to-br from-blue-50 to-indigo-100 min-h-screen flex flex-col items-center justify-center p-4">
|
| 37 |
+
<div class="max-w-2xl w-full bg-white rounded-xl shadow-lg overflow-hidden fade-in">
|
| 38 |
+
<div class="bg-gradient-to-r from-blue-600 to-indigo-700 p-6 text-white">
|
| 39 |
+
<h1 class="text-2xl md:text-3xl font-bold text-center">Il Tuo Indirizzo IP</h1>
|
| 40 |
+
<p class="text-center text-blue-100 mt-2">Questo è l'indirizzo IP del tuo dispositivo</p>
|
| 41 |
+
</div>
|
| 42 |
+
|
| 43 |
+
<div class="p-8 text-center">
|
| 44 |
+
<div class="flex justify-center mb-6">
|
| 45 |
+
<div class="w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center">
|
| 46 |
+
<i class="fas fa-network-wired text-blue-600 text-2xl"></i>
|
| 47 |
+
</div>
|
| 48 |
+
</div>
|
| 49 |
+
|
| 50 |
+
<div id="ip-loading" class="text-gray-500 text-xl mb-6">
|
| 51 |
+
<p>Rilevamento IP in corso<span class="loading-dots"></span></p>
|
| 52 |
+
</div>
|
| 53 |
+
|
| 54 |
+
<div id="ip-result" class="hidden">
|
| 55 |
+
<p class="text-gray-600 mb-4">Il tuo indirizzo IP pubblico è:</p>
|
| 56 |
+
<div class="ip-container bg-gray-50 border border-gray-200 rounded-lg p-4 max-w-md mx-auto cursor-pointer transition-all duration-300 hover:bg-blue-50 hover:border-blue-300"
|
| 57 |
+
id="ip-display">
|
| 58 |
+
<p class="text-2xl font-mono font-bold text-blue-600" id="ip-address"></p>
|
| 59 |
+
</div>
|
| 60 |
+
<p class="text-gray-500 text-sm mt-3">Clicca sull'IP per copiarlo</p>
|
| 61 |
+
|
| 62 |
+
<div class="mt-8 grid grid-cols-1 md:grid-cols-3 gap-4">
|
| 63 |
+
<div class="bg-gray-50 p-4 rounded-lg">
|
| 64 |
+
<p class="text-gray-500 text-sm">Versione IP</p>
|
| 65 |
+
<p class="font-semibold" id="ip-version">IPv4/IPv6</p>
|
| 66 |
+
</div>
|
| 67 |
+
<div class="bg-gray-50 p-4 rounded-lg">
|
| 68 |
+
<p class="text-gray-500 text-sm">Posizione approssimativa</p>
|
| 69 |
+
<p class="font-semibold" id="ip-location">Caricamento...</p>
|
| 70 |
+
</div>
|
| 71 |
+
<div class="bg-gray-50 p-4 rounded-lg">
|
| 72 |
+
<p class="text-gray-500 text-sm">Provider</p>
|
| 73 |
+
<p class="font-semibold" id="ip-provider">Caricamento...</p>
|
| 74 |
+
</div>
|
| 75 |
+
</div>
|
| 76 |
+
</div>
|
| 77 |
+
</div>
|
| 78 |
+
|
| 79 |
+
<div class="bg-gray-50 px-6 py-4 text-center text-gray-500 text-sm">
|
| 80 |
+
<p>Il tuo indirizzo IP è necessario per la comunicazione su Internet</p>
|
| 81 |
+
</div>
|
| 82 |
+
</div>
|
| 83 |
+
|
| 84 |
+
<div class="fixed bottom-4 right-4 bg-white p-3 rounded-full shadow-lg hidden" id="copy-notification">
|
| 85 |
+
<div class="flex items-center text-green-600">
|
| 86 |
+
<i class="fas fa-check-circle mr-2"></i>
|
| 87 |
+
<span>Copiato!</span>
|
| 88 |
+
</div>
|
| 89 |
+
</div>
|
| 90 |
+
|
| 91 |
+
<script>
|
| 92 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 93 |
+
// Elementi DOM
|
| 94 |
+
const ipLoading = document.getElementById('ip-loading');
|
| 95 |
+
const ipResult = document.getElementById('ip-result');
|
| 96 |
+
const ipAddress = document.getElementById('ip-address');
|
| 97 |
+
const ipDisplay = document.getElementById('ip-display');
|
| 98 |
+
const ipVersion = document.getElementById('ip-version');
|
| 99 |
+
const ipLocation = document.getElementById('ip-location');
|
| 100 |
+
const ipProvider = document.getElementById('ip-provider');
|
| 101 |
+
const copyNotification = document.getElementById('copy-notification');
|
| 102 |
+
|
| 103 |
+
// Ottieni l'IP usando l'API ipify
|
| 104 |
+
fetch('https://api.ipify.org?format=json')
|
| 105 |
+
.then(response => response.json())
|
| 106 |
+
.then(data => {
|
| 107 |
+
// Mostra l'IP
|
| 108 |
+
ipAddress.textContent = data.ip;
|
| 109 |
+
|
| 110 |
+
// Determina la versione IP
|
| 111 |
+
const isIPv6 = data.ip.includes(':');
|
| 112 |
+
ipVersion.textContent = isIPv6 ? 'IPv6' : 'IPv4';
|
| 113 |
+
|
| 114 |
+
// Nascondi caricamento e mostra risultato
|
| 115 |
+
ipLoading.classList.add('hidden');
|
| 116 |
+
ipResult.classList.remove('hidden');
|
| 117 |
+
ipResult.classList.add('fade-in');
|
| 118 |
+
|
| 119 |
+
// Ottieni informazioni aggiuntive sull'IP
|
| 120 |
+
getIpInfo(data.ip);
|
| 121 |
+
})
|
| 122 |
+
.catch(error => {
|
| 123 |
+
console.error('Errore nel recupero dell\'IP:', error);
|
| 124 |
+
ipLoading.innerHTML = '<p class="text-red-500">Impossibile ottenere l\'indirizzo IP. Ricarica la pagina o controlla la connessione.</p>';
|
| 125 |
+
});
|
| 126 |
+
|
| 127 |
+
// Copia l'IP quando si clicca sul display
|
| 128 |
+
ipDisplay.addEventListener('click', function() {
|
| 129 |
+
const ipText = ipAddress.textContent;
|
| 130 |
+
navigator.clipboard.writeText(ipText).then(() => {
|
| 131 |
+
// Mostra notifica copia
|
| 132 |
+
copyNotification.classList.remove('hidden');
|
| 133 |
+
ipDisplay.classList.add('copied');
|
| 134 |
+
|
| 135 |
+
setTimeout(() => {
|
| 136 |
+
copyNotification.classList.add('hidden');
|
| 137 |
+
ipDisplay.classList.remove('copied');
|
| 138 |
+
}, 2000);
|
| 139 |
+
});
|
| 140 |
+
});
|
| 141 |
+
|
| 142 |
+
// Funzione per ottenere informazioni aggiuntive sull'IP
|
| 143 |
+
function getIpInfo(ip) {
|
| 144 |
+
fetch(`https://ipinfo.io/${ip}?token=6df71b82a0b8b6`)
|
| 145 |
+
.then(response => response.json())
|
| 146 |
+
.then(data => {
|
| 147 |
+
if (data.city && data.country) {
|
| 148 |
+
ipLocation.textContent = `${data.city}, ${data.country}`;
|
| 149 |
+
}
|
| 150 |
+
if (data.org) {
|
| 151 |
+
ipProvider.textContent = data.org.replace(/AS\d+\s/, '');
|
| 152 |
+
}
|
| 153 |
+
})
|
| 154 |
+
.catch(error => {
|
| 155 |
+
console.error('Errore nel recupero delle informazioni IP:', error);
|
| 156 |
+
ipLocation.textContent = 'Non disponibile';
|
| 157 |
+
ipProvider.textContent = 'Non disponibile';
|
| 158 |
+
});
|
| 159 |
+
}
|
| 160 |
+
});
|
| 161 |
+
</script>
|
| 162 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Felix8917/ivanip" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 163 |
+
</html>
|