diff options
-rw-r--r-- | fg21sim/webui/static/css/milligram.css | 2 | ||||
-rw-r--r-- | fg21sim/webui/static/js/main.js | 2 | ||||
-rw-r--r-- | fg21sim/webui/utils.py | 6 |
3 files changed, 8 insertions, 2 deletions
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 """ |