diff options
author | Kristian Lyngstol <kly@kly.no> | 2016-03-13 15:54:14 +0000 |
---|---|---|
committer | Kristian Lyngstol <kly@kly.no> | 2016-03-13 15:54:14 +0000 |
commit | e7eb548d99a324048d6fd08cb5a0243e47753451 (patch) | |
tree | 5d56669259b598f37541ba35104f6d344e18eb28 /web/nms.gathering.org/js/nms.js | |
parent | becdfbb6f176542252397649507d646ee24da610 (diff) |
NMSjs: Enable interactive movement of switches!
Fixes #24
God that felt good.
It's not very pretty, but it does seem very functional.
Diffstat (limited to 'web/nms.gathering.org/js/nms.js')
-rw-r--r-- | web/nms.gathering.org/js/nms.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/web/nms.gathering.org/js/nms.js b/web/nms.gathering.org/js/nms.js index 52bea9a..ec7ed06 100644 --- a/web/nms.gathering.org/js/nms.js +++ b/web/nms.gathering.org/js/nms.js @@ -424,19 +424,6 @@ function findSwitch(x,y) { } /* - * onclick handler for the canvas. - * - * Currently just shows info for a switch. - */ -function canvasClick(e) -{ - var sw = findSwitch(e.pageX - e.target.offsetLeft, e.pageY - e.target.offsetTop); - if (sw != undefined) { - nmsInfoBox.click(sw); - } -} - -/* * Set night mode to whatever 'toggle' is. * * Changes background and nav-bar, then leaves the rest to nmsMap. |