Update DNS Resolver Pro
This commit is contained in:
@@ -131,6 +131,7 @@
|
||||
<option value="keenetic_ip_min">Keenetic IP Min</option>
|
||||
</select>
|
||||
<button onclick="resolveDomains()">🚀 Найти IP</button>
|
||||
<button onclick="saveToTxt()">💾 Сохранить в TXT</button>
|
||||
<button class="theme-toggle" onclick="toggleTheme()">🌓 Сменить тему</button>
|
||||
</div>
|
||||
|
||||
@@ -323,6 +324,22 @@
|
||||
function toggleTheme() {
|
||||
document.body.classList.toggle('light-mode');
|
||||
}
|
||||
|
||||
function saveToTxt() {
|
||||
const content = document.getElementById("result").textContent;
|
||||
if (!content || content.trim() === "Результаты появятся здесь...") {
|
||||
alert("Нет данных для сохранения.");
|
||||
return;
|
||||
}
|
||||
const blob = new Blob([content], { type: "text/plain;charset=utf-8" });
|
||||
const link = document.createElement("a");
|
||||
link.href = URL.createObjectURL(blob);
|
||||
link.download = "dns_result.txt";
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user