diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-11-07 16:00:47 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-11-07 16:00:47 +0800 |
commit | 61a4c0e1c490b4977fde2e97c13858494dfa84aa (patch) | |
tree | 2b03dc132d9376a7b2cf7305cd0648a8ba8e9ead /fg21sim | |
parent | cae20fa89b395290ec8b47796da4775524845b1c (diff) | |
download | fg21sim-61a4c0e1c490b4977fde2e97c13858494dfa84aa.tar.bz2 |
webui: small misc changes
* milligram.css: Remove the "sourceMappingURL"
* main.js: Add "use strict";
* utils.py: Add a TODO task
Diffstat (limited to 'fg21sim')
-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 """ |