From 4c325af6551a87a492c9ea113a1807d7a716ae79 Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Fri, 13 Aug 2021 11:57:57 +0200 Subject: [PATCH] changed result json --- www/graph.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/www/graph.js b/www/graph.js index 34bc7c1..cb94c0c 100644 --- a/www/graph.js +++ b/www/graph.js @@ -6,7 +6,7 @@ const CONFIG = { 'nodeRadius': 5, 'nodeRepositionPadding': 12, 'baseUrl': 'https://www.securityvision.io/wiki/index.php/', - 'dataUrl': 'result3.json', + 'dataUrl': 'remote_biometric_identification.json', 'preSimulate': false, // run simulation before starting, so we don't start with lines jumping around 'labels': { 'rotate': true, @@ -367,6 +367,8 @@ class NodeMap { this.resizeEvent = window.addEventListener('resize', this.resize.bind(this)); this.tooltipEl = document.getElementById('tooltip'); this.selectedNode = null; + + document.getElementById('closeSelection').addEventListener('click', (ev) => this.deselectNode()); } resize() { @@ -841,6 +843,8 @@ class NodeMap { links.forEach(l => document.getElementById(getLinkId(l)).classList.add('linkedSelected')); this.container.classed('selectedNode', true); + + document.body.classList.add('selectedNode'); // TODO: show details; // alert('not yet implemented'); @@ -857,6 +861,7 @@ class NodeMap { els[0].classList.remove('linkedSelected'); } this.container.classed('selectedNode', false); + document.body.classList.remove('selectedNode'); } update() {