Skip to content

Commit

Permalink
maghrib offset adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
smartazanclock committed Feb 13, 2025
1 parent ab7c1e3 commit e729a3a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
<div id="audioVolumeDiv" class="bg-darkish rounded px-2 py-1">
<div class="d-flex flex-row align-items-center justify-content-start gap-2">
<div class="flex-shrink-1">
<img id="audioVolumeIcon" style="width: 30px;" />
<img id="audioVolumeIcon" style="width: 29px;" />
</div>
<div class="flex-grow-1">
<input type="range" class="form-range pt-1 m-0" min="1" max="10" increment="1"
Expand Down Expand Up @@ -231,10 +231,10 @@
</select>
</div>
<div class="flex-fill">
<button id="appResetButton" class="btn btn-danger text-light btn-sm col-12"></span>
<button id="appResetButton" class="btn btn-danger p-1 text-light btn-sm col-12"></span>
</div>
<div>
<a title="Thank you for your review!"
<a class="btn btn-sm btn-primary p-1" title="Thank you for your review!"
href="https://chromewebstore.google.com/detail/prayer-times-chrome-exten/fbkmgnkliklgbmanjkmiihkdioepnkce/reviews"
target="_blank"><img src="images/review.png" class="img-fluid p-0 m-0" /></a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ const displayAdhansAndOffsets = () => {
if (offsetValue != 0)
offsetPresent = true;
let stdLimit = 90;
if (v == 'duha')
if (v == 'duha' || v == 'maghrib')
stdLimit = 45;

let increaseDisabled = false;
Expand All @@ -542,7 +542,7 @@ const displayAdhansAndOffsets = () => {
if (v == 'duhaend' && offsetValue >= 0)
increaseDisabled = true;

if (v == 'maghrib' && offsetValue <= 0)
if (v == 'maghrib' && offsetValue <= -3)
decreaseDisabled = true;


Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "__MSG_name__",
"short_name": "__MSG_short_name__",
"version": "2.0.8",
"version": "2.0.9",
"default_locale": "en",
"description": "__MSG_description__",
"permissions": [
Expand Down

0 comments on commit e729a3a

Please sign in to comment.