Skip to content

Commit

Permalink
bugs fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
saaqi committed Jul 24, 2023
1 parent 66e8f52 commit d58eb28
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 49 deletions.
2 changes: 1 addition & 1 deletion assets/css/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/boxicons.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 8 additions & 15 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
--odd-bg-color: #f9f9f9;
--button-shadow: inset 0 -2px 0 rgba(0,0,0,0.3), 1px 1px 2px 0 rgba(0,0,0,0.3);
--box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
--text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
--text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
--transition: all ease-in-out 0.2s;
}

Expand Down Expand Up @@ -101,7 +101,6 @@ ul {
.section-copy {
font-size: 1.125rem;
margin-bottom: 1.6875rem;

}

.section-heading::before {
Expand Down Expand Up @@ -480,11 +479,10 @@ ul.primary-menu {
.ag-courses-item_title {
color: #fff;
position: relative;
margin: 0 0 11px;
z-index: 2;
overflow: hidden;
border-bottom: 1px solid #ccc;
padding-bottom: 11px;
padding-bottom: .625rem;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

Expand Down Expand Up @@ -576,7 +574,7 @@ ul.primary-menu {
place-items: center;
}

.services-container ul {
.services-container > ul {
display: -ms-flexbox;
display: flex;
gap: 2rem;
Expand All @@ -588,20 +586,11 @@ ul.primary-menu {
align-content: flex-end;
}

.services-container ul li {
font-weight: 700;
color: var(--primary-color);
font-size: 1.125rem;
.services-container > ul li {
-ms-flex-preferred-size: calc( 25% - 2rem );
flex-basis: calc( 25% - 2rem );
}

.services-container ul li > p {
color: #212529;
font-weight: 400;
font-size: 1rem;
}

@media only screen and (max-width: 992px) {
.services-container ul li {
-ms-flex-preferred-size: calc( 33.33333333% - 2rem );
Expand Down Expand Up @@ -735,6 +724,10 @@ ul.primary-menu {
border: none;
}

.business-hours .text-dange {
color: var(--accent-color);
}

.working-hours {
border: 1px solid var(--primary-color);
}
Expand Down
2 changes: 1 addition & 1 deletion assets/css/style.min.css

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,30 @@ countWhenVisible(document.querySelector(".oil-counter .counter-number"), 5000, 3



// Store status
function checkStoreStatus() {
// Set the timezone to Orange City, Florida, USA
const timeZone = 'America/New_York';
const now = new Date().toLocaleString('en-US', { timeZone });

const [dateString, timeString] = now.split(', ');
const [dayOfWeek, , dayOfMonth, month, year] = dateString.split(' ');

const [time, meridian] = timeString.split(' ');
const [hours, minutes] = time.split(':').map(Number);

const isOpeningHours = (
(dayOfWeek === 'Sunday' && hours >= 9 && hours < 17) ||
(dayOfWeek !== 'Sunday' && hours >= 8 && hours < 19)
);

return isOpeningHours ? ' - <span class="text-success">Open</span>' : ' - <span class="text-danger">Closed</span>';
}

// document.getElementById("storestatus").innerHTML = checkStoreStatus();



// Hide Preloader ------------
const preloader = document.getElementById("loader-wrapper");

Expand Down
2 changes: 1 addition & 1 deletion assets/js/main.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d58eb28

Please sign in to comment.