Skip to content

Commit b2d031b

Browse files
committed
refactor: rename is_data_in_loading to is_data_loaded.
1 parent c2b16e5 commit b2d031b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

online/radioactive-decay.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ <h2>Notes:</h2>
397397

398398
full_chain_html: '',
399399

400-
is_data_in_loading: false,
400+
is_data_loaded: false,
401401

402402
is_run: false
403403

@@ -755,7 +755,7 @@ <h2>Notes:</h2>
755755

756756
updateRadioisotopes();
757757

758-
extendedData.is_data_in_loading = true;
758+
extendedData.is_data_loaded = true;
759759

760760
setCorrectButtonOnMobile();
761761

@@ -979,13 +979,13 @@ <h2>Notes:</h2>
979979

980980
}
981981

982-
function setCorrectButtonOnMobile() { if ($(window).width() <= 1024 && extendedData.is_data_in_loading === true) $("#radioactive-decay-btn-id").html('<i class="fa-solid fa-atom"></i>'); }
982+
function setCorrectButtonOnMobile() { if ($(window).width() <= 1024 && extendedData.is_data_loaded === true) $("#radioactive-decay-btn-id").html('<i class="fa-solid fa-atom"></i>'); }
983983

984984
$(document).ready(function() {
985985

986986
$('#radioactive-decay-btn-id').on('click', function() {
987987

988-
if (extendedData.is_data_in_loading) $('#modalbox-decay, .overlay').show();
988+
if (extendedData.is_data_loaded) $('#modalbox-decay, .overlay').show();
989989

990990
});
991991

0 commit comments

Comments
 (0)