From 174ebca34b9875a970d9abd7596600d406284f2c Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Fri, 11 Oct 2024 11:52:33 +0200 Subject: [PATCH] My mistake once again --- deploy.sh | 1 + src/map/map.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 35a63ed..26462f3 100644 --- a/deploy.sh +++ b/deploy.sh @@ -2,6 +2,7 @@ cp geofeed.csv dist +ncftp -u $FTP_USER -p $FTP_PASSWORD $FTP_SERVER -c "rm -r *" ncftpput -R -u $FTP_USER -p $FTP_PASSWORD $FTP_SERVER . dist/* curl -H "AccessKey: $ACCESS_KEY" "https://api.bunny.net/purge?url=https%3A%2F%2Fdn42.m724.eu&async=false" diff --git a/src/map/map.js b/src/map/map.js index cc85c8d..830717a 100644 --- a/src/map/map.js +++ b/src/map/map.js @@ -104,7 +104,7 @@ function onNodeClick(ev, node, clicked) { if (opened != null) return; const rect = clicked.getBoundingClientRect(); - nodesElement.style.opacity = 1; + nodesElement.style.opacity = 0; let ele = clicked.cloneNode(true); ele.innerHTML += `

Datacenter: ${node.datacenter}

${node.description.split('\n').slice(1).join('
')}
`;