@@ -304,34 +304,20 @@ function getDistance(countdownTime) {
304304 var now = new Date ( ) . getTime ( ) ;
305305 distance = countdownTime - now ;
306306}
307-
308- var signupCountDown = setInterval ( function ( ) {
309- var countDownDate = new Date ( "Jan 15, 2021 12:00:00" ) . getTime ( ) - 8 ;
310- // Output the result in an element with id="registerBy"
311- document . getElementById ( "registerBy" ) . innerHTML =
312- "Registration ends in: " + getTime ( countDownDate ) ;
313-
314- // If the count down is over, write some text
315- if ( getDistance ( countDownDate ) < 0 ) {
316- clearInterval ( countDown ) ;
317- document . getElementById ( "registerBy" ) . innerHTML = "Sign Ups Closed" ;
318- document . getElementById ( "gb10" ) . href = "https://thetahacks.tech" ;
319- document . getElementById ( "gb10" ) . innerHTML = "Sign Ups are Closed" ;
320- document . getElementById ( "gb10" ) . style . display = "none" ;
321- }
322- } , 1000 ) ;
323-
324- var eventCountDown = setInterval ( function ( ) {
307+ console . log ( "Hello World" ) ;
308+ function signupCountDown ( ) {
325309 var amongUsHypeNight = new Date ( "Jan 15, 2021 21:00:00" ) . getTime ( ) - 8 ;
326310 var openingCermony = new Date ( "Jan 16, 2021 10:00:00" ) . getTime ( ) - 8 ;
327- var date = new Date ( ) ;
328- if ( date . getDay > 10 && date . getMonth == 1 && date . getFullYear == 2021 ) {
329- if ( getDistance ( amongUsHypeNight ) > 0 ) {
330- document . getElementById ( "registerBy" ) . innerHTML =
331- "Among Us Hype Night Starts in: " + getTime ( amongUsHypeNight ) ;
332- } else if ( getDistance ( openingCermony ) > 0 ) {
333- document . getElementById ( "registerBy" ) . innerHTML =
334- "Opening Ceremony Starts in: " + getTime ( openingCermony ) ;
335- }
336- }
337- } , 1000 ) ;
311+ console . log ( "1" ) ;
312+ console . log ( getDistance ( amongUsHypeNight ) ) ;
313+ console . log ( "2" ) ;
314+ document . getElementById ( "registerBy" ) . innerHTML =
315+ "Among Us Hype Night Starts in: " + getTime ( amongUsHypeNight ) ;
316+ // else if (getDistance(openingCermony) > 0) {
317+ // document.getElementById("registerBy").innerHTML =
318+ // "Opening Ceremony Starts in: " + getTime(openingCermony);
319+ // console.log("3");
320+ // }
321+ }
322+ // var eventCountDown = setInterval(function () {}, 1000);
323+ var run = setInterval ( signupCountDown , 100 ) ;
0 commit comments