Skip to content

Commit

Permalink
Adding LTE 5G (#3)
Browse files Browse the repository at this point in the history
* adding 5G IOT

* Filter 5G IOT
  • Loading branch information
kniemcz committed Jul 5, 2020
1 parent 590dbaa commit e40c7a9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/btsearch/bts/models.py
Expand Up @@ -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'),
Expand Down
22 changes: 21 additions & 1 deletion src/static/js/btsearch.map.js
Expand Up @@ -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();
Expand All @@ -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();
});
});

$(document).bind('keypress', '8', function(){
$('#band-filter-800').prop('checked', !$('#band-filter-800').prop('checked'));
ui.resetMap();
});

0 comments on commit e40c7a9

Please sign in to comment.