Skip to content

Commit

Permalink
fix hide bug
Browse files Browse the repository at this point in the history
  • Loading branch information
heythisisnate committed Feb 4, 2024
1 parent 74fa8b6 commit 5e45ef6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ <h3>WiFi connectivity</h3>
platform = null;
$inst_button.hide();
$('#build-header').hide();
$('div.firmware.radios').hide();
$('div.firmware.radios').hide();
$('div.build.radios').hide();
$('input[type="radio"][name="firmware"]').prop('checked', false);
$('input[type="radio"][name="build"]').prop('checked', false);
// show and scroll to Firmware section
Expand All @@ -303,10 +304,10 @@ <h3>WiFi connectivity</h3>
if($target.data('manifest')) {
$('#inst').attr('manifest', $target.data('manifest'));
$('#build-header').hide();
$inst_button.show()
$inst_button.show();
} else {
$('input[type="radio"][name="build"]').prop('checked', false);
$inst_button.hide()
$inst_button.hide();
$('div.build.radios#' + hardware + '-' + platform).show();
$('html,body').animate({scrollTop:$('#build-header').show().offset().top},'slow');
}
Expand Down

0 comments on commit 5e45ef6

Please sign in to comment.