From 6a5aa6e9094cb1c7c0bba94326a8422869f35a71 Mon Sep 17 00:00:00 2001 From: FURK4NGG <105324908+FURK4NGG@users.noreply.github.com> Date: Sat, 15 Mar 2025 22:59:49 +0300 Subject: [PATCH] Update 404.html --- 404.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/404.html b/404.html index 5265312..ee05643 100644 --- a/404.html +++ b/404.html @@ -132,6 +132,15 @@ d.fy = null; } + function resize() { + width = window.innerWidth; + height = window.innerHeight; + svg.attr("width", width).attr("height", height); + simulation.force("center", d3.forceCenter(width / 2, height / 2)).alpha(1).restart(); + } + + window.addEventListener("resize", resize); + const disabledKeys = ["c", "C", "x", "J", "u", "I"]; // keys that will be disabled const showAlert = e => { e.preventDefault(); // preventing its default behaviour