diff --git a/Client/src/app/components/home/home.component.html b/Client/src/app/components/home/home.component.html
index f855f23..6ee356d 100644
--- a/Client/src/app/components/home/home.component.html
+++ b/Client/src/app/components/home/home.component.html
@@ -45,7 +45,7 @@
-
@@ -79,7 +79,7 @@
diff --git a/Client/src/app/components/home/home.component.ts b/Client/src/app/components/home/home.component.ts
index 0eff0c2..630ba81 100644
--- a/Client/src/app/components/home/home.component.ts
+++ b/Client/src/app/components/home/home.component.ts
@@ -14,9 +14,10 @@ import { YoutubePopupComponent } from '../popups/youtube-popup/youtube-popup.com
})
export class HomeComponent {
backgroundTop: string = "0px";
- public get showSpecial() : boolean {
- let maxDate = new Date(2024,7,15,11); // September 18th 2018 -- Set the month one month behind since JavaScript dates are 0 based
+ public get showVGC() : boolean {
+
+ let maxDate = new Date(2024,7,15,11); // August 15th 2018 -- Set the month one month behind since JavaScript dates are 0 based
let now = new Date();
if (now.getFullYear() > maxDate.getFullYear()) return false;
if (now.getFullYear() == maxDate.getFullYear()) {
@@ -30,6 +31,24 @@ export class HomeComponent {
}
return true;
}
+
+ public get showSpecial() : boolean {
+
+ let maxDate = new Date(2022,8,18,11); // September 18th 2018 -- Set the month one month behind since JavaScript dates are 0 based
+ let now = new Date();
+ if (now.getFullYear() > maxDate.getFullYear()) return false;
+ if (now.getFullYear() == maxDate.getFullYear()) {
+ if (now.getMonth() > maxDate.getMonth()) return false;
+ if (now.getMonth() == maxDate.getMonth()) {
+ if (now.getDate() > maxDate.getDate()) return false;
+ if (now.getDate() == maxDate.getDate()) {
+ if (now.getHours() > maxDate.getHours()) return false;
+ }
+ }
+ }
+ return true;
+ }
+
public get showCallToAction(): boolean {
let maxDate = new Date(2020,4,10); // July 8th 2018 -- Set the month one month behind since JavaScript dates are 0 based
let now = new Date();