mirror of
https://github.com/Merricx/qrazybox.git
synced 2025-04-20 10:09:04 +02:00
highlight masking in menu if applied
This commit is contained in:
parent
dba1483176
commit
e14f031237
1 changed files with 9 additions and 0 deletions
|
@ -26,6 +26,7 @@ var show_grey = true; //Show grey modules in Decode mode
|
||||||
var extract_info_mode = false; //Is Extract QR Information active?
|
var extract_info_mode = false; //Is Extract QR Information active?
|
||||||
var brute_force_mode = false; //Is Brute-force Format Info active?
|
var brute_force_mode = false; //Is Brute-force Format Info active?
|
||||||
var analysis_mode = false; //Is Data Analysis tool active?
|
var analysis_mode = false; //Is Data Analysis tool active?
|
||||||
|
var masking_mode = false; //Is Masking active?
|
||||||
|
|
||||||
var qr_temp_array = []; //Temporary variable to handle qr_array duplicates
|
var qr_temp_array = []; //Temporary variable to handle qr_array duplicates
|
||||||
var qr_data_block = []; //Array to store data block in "Data Analysis tool"
|
var qr_data_block = []; //Array to store data block in "Data Analysis tool"
|
||||||
|
@ -1745,6 +1746,14 @@ $(document).ready(function(){
|
||||||
$("#data-masking-slider div.active").removeClass("active");
|
$("#data-masking-slider div.active").removeClass("active");
|
||||||
$("#data-masking-slider div[data="+current_mask+"]").addClass("active");
|
$("#data-masking-slider div[data="+current_mask+"]").addClass("active");
|
||||||
|
|
||||||
|
if($(this).hasClass("active")){
|
||||||
|
masking_mode = false;
|
||||||
|
$(this).removeClass("active");
|
||||||
|
} else {
|
||||||
|
masking_mode = true;
|
||||||
|
$(this).addClass("active");
|
||||||
|
}
|
||||||
|
|
||||||
$("#div-data-masking").show();
|
$("#div-data-masking").show();
|
||||||
$("#div-tools").hide();
|
$("#div-tools").hide();
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue