From e7eb548d99a324048d6fd08cb5a0243e47753451 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Sun, 13 Mar 2016 15:54:14 +0000 Subject: NMSjs: Enable interactive movement of switches! Fixes #24 God that felt good. It's not very pretty, but it does seem very functional. --- web/nms.gathering.org/js/nms.js | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'web/nms.gathering.org/js/nms.js') 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 @@ -423,19 +423,6 @@ function findSwitch(x,y) { return undefined; } -/* - * 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. * -- cgit v1.2.3