Skip to content

Commit

Permalink
Update graph.js
Browse files Browse the repository at this point in the history
  • Loading branch information
imaitland authored Feb 7, 2024
1 parent ec83ffc commit e803185
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions js/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,6 @@ const Graph = ForceGraph()(document.getElementById("graph"))
d.source.tag;
})
.onNodeClick(async (node) => {
// Center/zoom on clicked node
Graph.centerAt(node.x, node.y, 1000);
Graph.zoom(8, 2000);
// wait for complete
await delay(1500);
// Store last clicked in local storage
if (node.id == "day") {
document.getElementsByClassName("logo")[0].style.color = "black";

Expand Down

0 comments on commit e803185

Please sign in to comment.