summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoufic ar <contact@toufy.me>2026-02-05 22:50:28 +0200
committertoufic ar <contact@toufy.me>2026-02-05 22:50:28 +0200
commit29b70fcbd8d529225fb8ec2374fbc74d216b5653 (patch)
tree90d3fb462b0b975a01d0d53218f3b9267c25030d
parentb0786a03a9886e5b212da135432c5410de6305cb (diff)
downloadtor-snowflake-29b70fcbd8d529225fb8ec2374fbc74d216b5653.tar.gz
tor-snowflake-29b70fcbd8d529225fb8ec2374fbc74d216b5653.zip
remove logs and run fetch at intervals
-rw-r--r--index.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/index.html b/index.html
index 2e77b2e..7af0ffe 100644
--- a/index.html
+++ b/index.html
@@ -110,14 +110,13 @@
</div>
</body>
<script>
- async function fetchConnections() {
+ async function fetchSnowflakeConnections() {
try {
const res = await fetch("https://tor.toufy.me/metrics.php", {
method: "GET",
headers: { Accept: "application/json" }
});
if (!res.ok) {
- console.log(res);
snowflake_conns.innerHTML = 0;
return;
}
@@ -126,6 +125,9 @@
snowflake_conns.innerHTML = 0;
}
}
- fetchConnections();
+ fetchSnowflakeConnections();
+ setInterval(() => {
+ fetchSnowflakeConnections();
+ }, 10000);
</script>
</html>