diff --git a/script/UpcomingEvent.js b/script/UpcomingEvent.js index 5c277db..5e4736e 100644 --- a/script/UpcomingEvent.js +++ b/script/UpcomingEvent.js @@ -1,13 +1,63 @@ +document.addEventListener('DOMContentLoaded', () => { + const bodySection = document.getElementById('body-section'); + const tbody = document.getElementById('event-container'); + tbody.innerHTML = showEvent(); + // bodySection.innerHTML = generateEvent(); +}); -function loadUpcomingEvent() { +// const showEvent = () =>{ +// return `
+// +//
+//

TechFusion

- fetch('upcomingEvent.html') - .then(response => response.text()) - .then(data => { - - document.getElementById('event-container').innerHTML = data; - }) - .catch(error => console.error('Error loading the upcoming event:', error)); -} +//
+// +//
+//
+// Event Logo +//
+//
+//

TechFusion 06.09.2024

+// +//
+//
+// Event QR +//

Register Now!

+//
+//
+//
+ +//
+//
` +// } -loadUpcomingEvent(); +const showEvent = () =>{ + + return `
+ +
+

TechFusion

+ +
+ +
+ Event Logo +
+ + +
+ +

06.09.2024

+
+ + + +
+
+
` + +} \ No newline at end of file diff --git a/upcomingEvent.html b/upcomingEvent.html deleted file mode 100644 index aa3edce..0000000 --- a/upcomingEvent.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - Event Layout - - - - - -
- -
-

Upcoming Event

- - -
- -
-
- Event Logo -
-
- - -
- -
- - -
-
- Event QR - -
-
-
- -
-
- - - - \ No newline at end of file