Skip to content

Commit

Permalink
fix webpage
Browse files Browse the repository at this point in the history
  • Loading branch information
ch3p4ll3 committed Nov 18, 2023
1 parent f0d7593 commit 96d15df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Web-App/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ <h5 class="card-title text-center">Intervallometer</h5>
<div class="input-group mb-3">
<span class="input-group-text">Set Program</span>
<select class="form-select" id="program-select">
<option value="1">SingleShot</option>
<option value="1" selected>SingleShot</option>
<option value="4">IntervalloMeter</option>
<option value="2">Bulb</option>
<option value="3">TimerBulb</option>
Expand Down Expand Up @@ -96,7 +96,7 @@ <h5 class="card-title text-center">Intervallometer</h5>
<label class="btn btn-outline-danger" for="useAutofocus">OFF</label><br>
</div>

<div class="input-group mb-3">
<div class="input-group mb-3 visually-hidden">
<span class="input-group-text" id="basic-addon1">Autofocus Delay</span>
<input type="number" class="form-control" placeholder="Autofocus Delay" aria-label="Autofocus Delay"
aria-describedby="basic-addon1" min="1" value="1.5" step="0.1" id="autofocusDelay">
Expand Down Expand Up @@ -188,12 +188,14 @@ <h5>Remaining Shots: <span id="remaining-shots"></span></h5>
$('label', $('#useAutofocus').parent()).removeClass('btn-outline-danger');
$('label', $('#useAutofocus').parent()).addClass('btn-outline-success');
$('label', $('#useAutofocus').parent()).text('ON');
$('#autofocusDelay').parent().removeClass('visually-hidden');
}

else {
$('label', $('#useAutofocus').parent()).addClass('btn-outline-danger');
$('label', $('#useAutofocus').parent()).removeClass('btn-outline-success');
$('label', $('#useAutofocus').parent()).text('OFF');
$('#autofocusDelay').parent().addClass('visually-hidden');
}
})

Expand Down

0 comments on commit 96d15df

Please sign in to comment.