From 61a4c0e1c490b4977fde2e97c13858494dfa84aa Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 7 Nov 2016 16:00:47 +0800 Subject: webui: small misc changes * milligram.css: Remove the "sourceMappingURL" * main.js: Add "use strict"; * utils.py: Add a TODO task --- fg21sim/webui/static/css/milligram.css | 2 -- fg21sim/webui/static/js/main.js | 2 ++ fg21sim/webui/utils.py | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) (limited to 'fg21sim/webui') diff --git a/fg21sim/webui/static/css/milligram.css b/fg21sim/webui/static/css/milligram.css index fb69a65..922562b 100644 --- a/fg21sim/webui/static/css/milligram.css +++ b/fg21sim/webui/static/css/milligram.css @@ -624,5 +624,3 @@ img { .float-right { float: right; } - -/*# sourceMappingURL=milligram.css.map */ diff --git a/fg21sim/webui/static/js/main.js b/fg21sim/webui/static/js/main.js index 2878721..99f9c10 100644 --- a/fg21sim/webui/static/js/main.js +++ b/fg21sim/webui/static/js/main.js @@ -5,6 +5,8 @@ * JavaScript codes for the Web UI of "fg21sim" */ +"use strict"; + $(document).ready(function () { /** diff --git a/fg21sim/webui/utils.py b/fg21sim/webui/utils.py index 1cea69f..fbb2ade 100644 --- a/fg21sim/webui/utils.py +++ b/fg21sim/webui/utils.py @@ -3,6 +3,12 @@ """ Utilities for the Web UI + +TODO: +* Add a function to determine whether the two IPs are in the same sub-network. + References: + + Stackoverflow: How can I check if an IP is in a network in Python? + https://stackoverflow.com/q/819355/4856091 """ -- cgit v1.2.2