Skip to content

Commit fd9f4b5

Browse files
Update Progress Bar on Save Options
- Also changed the starting width of the progress bar to 0%
1 parent 061f35e commit fd9f4b5

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ h1,h2,h3,h4,h5,h6 {
282282
height: 100%;
283283
background-color: #4caf50;
284284
transition: width 0.5s ease;
285-
width: 50%;
285+
width: 0%;
286286
}
287287

288288
.progress-bar-text {

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h4 style="color: white; padding: 5px 0px; margin: auto 10px;">Clocker</h4>
3636
<div id="progressBarContainer" class="progress-bar-container" style="margin-bottom: 10px;">
3737
<div id="progressBar" class="progress-bar">
3838
</div>
39-
<h3 id="progressBarText" class="progress-bar-text">50%</h3>
39+
<h3 id="progressBarText" class="progress-bar-text">0%</h3>
4040
</div>
4141
</div>
4242
<div class="middle-grid">

src/optionsHandler.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ async function optionsListeners(){
6060
const isEnabled = progressbarIsEnabled_el.checked;
6161
await api.optionsHandler({request: 'Save', isEnabled, interval, hour, minute});
6262
overlayContainer_el.style.display = 'none';
63+
optionsValues = await api.optionsHandler({request: 'View'});
64+
await progressBar();
6365
});
6466
}
6567

0 commit comments

Comments
 (0)