From 3b222bf4002fa28d2bd1178b9c9d9c4febe9da0d Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Tue, 22 Mar 2016 19:58:55 +0100 Subject: Toggle linknet connects in UI --- web/nms.gathering.org/index.html | 7 ++++++- web/nms.gathering.org/js/nms.js | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'web') diff --git a/web/nms.gathering.org/index.html b/web/nms.gathering.org/index.html index 081c206..2862c69 100644 --- a/web/nms.gathering.org/index.html +++ b/web/nms.gathering.org/index.html @@ -71,6 +71,7 @@
  • Toggle Night Mode
  • +
  • Toggle linknets
  • Enable switch moving
  • @@ -168,6 +169,10 @@ 9 View Disco map + + c + Toggle linknet connections + h Step 1 hour back in time @@ -236,7 +241,7 @@ - + diff --git a/web/nms.gathering.org/js/nms.js b/web/nms.gathering.org/js/nms.js index 49cacde..964c73f 100644 --- a/web/nms.gathering.org/js/nms.js +++ b/web/nms.gathering.org/js/nms.js @@ -38,6 +38,7 @@ var nms = { '5':setMapModeFromN, '6':setMapModeFromN, '7':setMapModeFromN, + 'c':toggleConnect, 'h':moveTimeFromKey, 'j':moveTimeFromKey, 'k':moveTimeFromKey, @@ -345,6 +346,10 @@ function toggleLayer(layer) { l.style.display = 'none'; } +function toggleConnect() { + toggleLayer("linkCanvas"); +} + function commentInactive(id) { commentChange(id,"inactive"); -- cgit v1.2.3