diff --git a/assets/countdown/script.js b/assets/countdown/script.js new file mode 100644 index 0000000..1854540 --- /dev/null +++ b/assets/countdown/script.js @@ -0,0 +1,40 @@ +/** + * Countdown + */ +function init() { + const second = 1000, + minute = second * 60, + hour = minute * 60, + day = hour * 24; + + const date = document.querySelector('[data-date]').dataset.date; + + + let countDown = new Date(date).getTime(), + x = setInterval(function () { + + let now = new Date().getTime(), + distance = countDown - now; + + if (document.querySelector('[data-days]') != null) { + document.querySelector('[data-days]').innerText = Math.floor(distance / (day)); + } + + if (document.querySelector('[data-hours]') != null) { + document.querySelector('[data-hours]').innerText = Math.floor((distance % (day)) / (hour)); + } + + if (document.querySelector('[data-minutes]') != null) { + document.querySelector('[data-minutes]').innerText = Math.floor((distance % (hour)) / (minute)); + } + + if (document.querySelector('[data-seconds]') != null) { + document.querySelector('[data-seconds]').innerText = Math.floor((distance % (minute)) / second); + } + + // if (distance < 0) { + // clearInterval(x); + // } + }, second) +} + diff --git a/assets/theme/css/style.css b/assets/theme/css/style.css index 3d48e04..c1c47ac 100644 --- a/assets/theme/css/style.css +++ b/assets/theme/css/style.css @@ -995,10 +995,6 @@ blockquote { display: none; } -.dropdown-item:hover + .dropdown-menu, -.dropdown-menu:hover { - display: block; -} @media (min-aspect-ratio: 16/9) { .mbr-video-foreground { diff --git a/index.html b/index.html index 5fea62a..43a681a 100644 --- a/index.html +++ b/index.html @@ -79,12 +79,14 @@ - + + - + +
@@ -146,6 +148,30 @@
+
+
+
+ - + Days +
+ +
+ - + Hours +
+ +
+ - + Mins +
+ +
+ - + Secs +
+
+
+

BUILD ANYTHING.

-

At GoatHacks, the sky is the limit with what you can create. We support all projects, virtual or physical, and will the resources you need to help you build your project.

+

At GoatHacks, the sky is the limit with what you can create. We support all projects, virtual or physical, and will the resources you need to help you build your project.

@@ -173,7 +199,7 @@

COLLABORATE.

-

Find your people at GoatHacks. Come with a team, or find a new one at our event! (Or go solo, if that's your thing).

+

Find your people at GoatHacks. Come with a team, or find a new one at our event! (Or go solo, if that's your thing).

@@ -195,7 +221,7 @@

LEARN.

-

Whether you're a seasoned hacker or starting for the first time, we've got you covered. We'll be hosting workshops and events from industry experts to help you learn new skills and reinforce existing ones.

+

Whether you're a seasoned hacker or starting for the first time, we've got you covered. We'll be hosting workshops and events from industry experts to help you learn new skills and reinforce existing ones.

@@ -369,10 +395,10 @@
-

+


Looking to Sponsor?

-

+

See our sponsor packet below and reach out to us here! @@ -382,7 +408,9 @@ class="btn btn-secondary display-4" href="https://drive.google.com/file/d/1L-CZgCxPZmOMpFBy67rTB6ED6lq8v3au/view?usp=sharing" target="_blank" - >Sponsorship Packet +

Sponsorship Packet

+
@@ -409,7 +437,7 @@