From e40c7a99d1e5a79f9f671b94fcde305a30c0cebc Mon Sep 17 00:00:00 2001 From: kniemcz <64684840+kniemcz@users.noreply.github.com> Date: Mon, 6 Jul 2020 00:42:48 +0200 Subject: [PATCH] Adding LTE 5G (#3) * adding 5G IOT * Filter 5G IOT --- src/btsearch/bts/models.py | 6 ++++-- src/static/js/btsearch.map.js | 22 +++++++++++++++++++++- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/src/btsearch/bts/models.py b/src/btsearch/bts/models.py index 8eb905d..cc27fe3 100644 --- a/src/btsearch/bts/models.py +++ b/src/btsearch/bts/models.py @@ -222,8 +222,10 @@ class Cell(models.Model): ('GSM', 'GSM'), ('UMTS', 'UMTS'), ('CDMA', 'CDMA'), - ('LTE', 'LTE') - ) + ('LTE', 'LTE'), + ('5G', '5G'), + ('IOT', 'IOT') + ) BANDS = ( ('420', '420'), diff --git a/src/static/js/btsearch.map.js b/src/static/js/btsearch.map.js index 8c558ee..61e5fe8 100644 --- a/src/static/js/btsearch.map.js +++ b/src/static/js/btsearch.map.js @@ -888,6 +888,21 @@ $(document).bind('keypress', 'l', function(){ ui.resetMap(); }); +$(document).bind('keypress', 'c', function(){ + $('#standard-filter-cdma').prop('checked', !$('#standard-filter-cdma').prop('checked')); + ui.resetMap(); +}); + +$(document).bind('keypress', '5', function(){ + $('#standard-filter-5g').prop('checked', !$('#standard-filter-5g').prop('checked')); + ui.resetMap(); +}); + +$(document).bind('keypress', 'i', function(){ + $('#standard-filter-iot').prop('checked', !$('#standard-filter-iot').prop('checked')); + ui.resetMap(); +}); + $(document).bind('keypress', '9', function(){ $('#band-filter-900').prop('checked', !$('#band-filter-900').prop('checked')); ui.resetMap(); @@ -901,4 +916,9 @@ $(document).bind('keypress', '1', function(){ $(document).bind('keypress', '2', function(){ $('#band-filter-2100').prop('checked', !$('#band-filter-2100').prop('checked')); ui.resetMap(); -}); \ No newline at end of file +}); + +$(document).bind('keypress', '8', function(){ + $('#band-filter-800').prop('checked', !$('#band-filter-800').prop('checked')); + ui.resetMap(); +});