From 63587952ee7711f94b644ef19b2e1ad30e8edf8b Mon Sep 17 00:00:00 2001 From: avi Date: Thu, 14 May 2026 11:17:59 -0500 Subject: [PATCH] Save point: Expanded mesh to 12 asymmetrical nodes, updated instruction text to explain click interaction --- index.html | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/index.html b/index.html index a17c631..ac1d008 100644 --- a/index.html +++ b/index.html @@ -765,7 +765,7 @@ OFFLINE PACKET -
CLICK A NODE TO SIMULATE FAILURE
+
CLICK ANY NODE TO SEE HOW MESH NETWORKS REROUTE WHEN A NODE GOES OFFLINE
@@ -1641,19 +1641,23 @@ meshClicked = false; meshState = { nodes: [ - { id: 0, x: 120, y: 50, label: 'A', online: true }, - { id: 1, x: 400, y: 40, label: 'B', online: true }, - { id: 2, x: 680, y: 50, label: 'C', online: true }, - { id: 3, x: 100, y: 150, label: 'D', online: true }, - { id: 4, x: 400, y: 160, label: 'E', online: true }, - { id: 5, x: 700, y: 150, label: 'F', online: true }, - { id: 6, x: 200, y: 260, label: 'G', online: true }, - { id: 7, x: 600, y: 260, label: 'H', online: true }, + { id: 0, x: 130, y: 45, label: 'A', online: true }, + { id: 1, x: 480, y: 35, label: 'B', online: true }, + { id: 2, x: 700, y: 75, label: 'C', online: true }, + { id: 3, x: 70, y: 130, label: 'D', online: true }, + { id: 4, x: 390, y: 105, label: 'E', online: true }, + { id: 5, x: 660, y: 165, label: 'F', online: true }, + { id: 6, x: 230, y: 195, label: 'G', online: true }, + { id: 7, x: 540, y: 215, label: 'H', online: true }, + { id: 8, x: 110, y: 265, label: 'I', online: true }, + { id: 9, x: 350, y: 285, label: 'J', online: true }, + { id: 10, x: 670, y: 245, label: 'K', online: true }, + { id: 11, x: 590, y: 310, label: 'L', online: true }, ], packets: [], }; computeConnections(); - for (let i = 0; i < 4; i++) spawnPacket(); + for (let i = 0; i < 5; i++) spawnPacket(); } function computeConnections() { @@ -1817,7 +1821,7 @@ initMesh(); drawMesh(); const status=document.getElementById('meshStatus'); - if(status) status.textContent='CLICK A NODE TO SIMULATE FAILURE'; + if(status) status.textContent='CLICK ANY NODE TO SEE HOW MESH NETWORKS REROUTE WHEN A NODE GOES OFFLINE'; },300); s9c.push(t2); },8,20,s9c);