-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevents.html
374 lines (322 loc) · 15.3 KB
/
events.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>DKCF | Denmark Carrom Federation | Events</title>
<meta content="Denmark Carrom Federation, Europe Carrom" name="description">
<meta content="Carrom, Board games, Denmark, Europe, Indian games, Carrom Federation" name="yearwords">
<!-- Favicons -->
<link href="assets/img/favicon-32x32.svg" rel="icon">
<link href="assets/img/favicon-32x32.svg" rel="apple-touch-icon">
<!-- Fonts -->
<link href="https://fonts.googleapis.com" rel="preconnect">
<link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Nunito:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet">
<!-- Vendor CSS Files -->
<link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
<link href="assets/vendor/aos/aos.css" rel="stylesheet">
<link href="assets/vendor/glightbox/css/glightbox.min.css" rel="stylesheet">
<link href="assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet">
<!-- Mailchimp popup form -->
<!-- <script id="mcjs">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","https://chimpstatic.com/mcjs-connected/js/users/6f88967f87622a96cdae61d76/4e37198067c123663e489a44a.js");</script> -->
<!-- Main CSS File -->
<link href="assets/css/main.css" rel="stylesheet">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FX6FYFW63V"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-FX6FYFW63V');
</script>
<!-- Dynamic event generation -->
<script>
function populateDKCFevents(data) {
const contentDiv = document.querySelector('.event_calendar');
contentDiv.innerHTML = ''; // Clear previous content if any
var events = Object.values(data["events"]);
var event_calendar = document.createElement('div');
event_calendar.id = 'row-dkcf'
event_calendar.className = 'row gy-4'
contentDiv.appendChild(event_calendar);
var event_upcoming = document.createElement('div');
event_upcoming.id = 'col-upcoming-dkcf'
event_upcoming.className = 'col-12'
document.getElementById('row-dkcf').appendChild(event_upcoming);
var event_past = document.createElement('div');
event_past.id = 'col-past-dkcf'
event_past.className = 'col-12'
document.getElementById('row-dkcf').appendChild(event_past);
var upcoming_dkcf_event_calendar_heading = document.createElement('div')
upcoming_dkcf_event_calendar_heading.id = "upcoming-dkcf-list"
upcoming_dkcf_event_calendar_heading.className = "recent-activities card"
upcoming_dkcf_event_calendar_heading.innerHTML = '<div class="card-header"><h4>Denmark Upcoming Events</h4></div>';
document.getElementById('col-upcoming-dkcf').appendChild(upcoming_dkcf_event_calendar_heading);
var past_dkcf_event_calendar_heading = document.createElement('div')
past_dkcf_event_calendar_heading.id = "past-dkcf-list"
past_dkcf_event_calendar_heading.className = "recent-activities card"
past_dkcf_event_calendar_heading.innerHTML = '<div class="card-header"><h4>Denmark Past Events</h4></div>';
document.getElementById('col-past-dkcf').appendChild(past_dkcf_event_calendar_heading);
var upcoming_calendar = document.createElement('div');
upcoming_calendar.className = 'card-body no-padding';
upcoming_calendar.id = 'upcoming-dkcf-content';
document.getElementById('upcoming-dkcf-list').appendChild(upcoming_calendar);
var past_calendar = document.createElement('div');
past_calendar.className = 'card-body no-padding';
past_calendar.id = 'past-dkcf-content';
document.getElementById('past-dkcf-list').appendChild(past_calendar);
var upcomingTableHtml = '<table class="table table-hover">' +
'<thead>' +
'<tr>' +
'<th scope="col">Date</th>' +
'<th scope="col">Event</th>' +
'<th scope="col">Results</th>' +
'</tr>' +
'</thead>' +
'<tbody>'
var currentYear = new Date().getFullYear();
events.sort()
events.forEach(eventEntry => {
var date = eventEntry.date;
var day = eventEntry.day;
var month = eventEntry.month;
var yearNumber = eventEntry.year;
var title = eventEntry.title;
var link = eventEntry.link;
var desc = eventEntry.description;
var result = eventEntry.result;
var eventRow = '<tr>'
var eventLink = title
if (result != "-") {
return
}
if (result != "-") {
result = '<a href="' + result + '" target="_blank"><div class="fs-3 mb-2"><i class="bi bi-cloud-arrow-down-fill"></i></div></a>'
eventRow = '<tr>'
}
if (link != "") {
eventLink = '<a href="' + link + '" target="_blank">' + title + '</a>'
}
var event =
eventRow +
'<td scope="row"><b>' + date + '-' + month + '-' + yearNumber + '</b> <div class="subtext">(' + day + ')</div></td>' +
'<td>' + eventLink + '</td>' +
'<td>' + result + '</td>' +
'</tr>'
upcomingTableHtml += event;
});
upcomingTableHtml += '</tbody></table>'
document.getElementById('upcoming-dkcf-content').innerHTML += upcomingTableHtml
var pastTableHtml = '<table class="table table-hover">' +
'<thead>' +
'<tr>' +
'<th scope="col">Date</th>' +
'<th scope="col">Event</th>' +
'<th scope="col">Results</th>' +
'</tr>' +
'</thead>' +
'<tbody>'
events.forEach(eventEntry => {
var date = eventEntry.date;
var day = eventEntry.day;
var month = eventEntry.month;
var yearNumber = eventEntry.year;
var title = eventEntry.title;
var link = eventEntry.link;
var desc = eventEntry.description;
var result = eventEntry.result;
var eventRow = '<tr>'
var eventLink = title
if (result == "-") {
return
}
if (result.includes("sol5")) {
result = '<a href="' + result + '" target="_blank"><div class="fs-3 mb-2"><i class="bi bi-cloud-arrow-down-fill"></i></div></a>'
eventRow = '<tr>'
}
if (link != "") {
eventLink = '<a href="' + link + '" target="_blank">' + title + '</a>'
}
var event =
eventRow +
'<td scope="row"><b>' + date + '-' + month + '-' + yearNumber + '</b> <div class="subtext">(' + day + ')</div></td>' +
'<td>' + eventLink + '</td>' +
'<td>' + result + '</td>' +
'</tr>'
pastTableHtml += event;
});
pastTableHtml += '</tbody></table>'
document.getElementById('past-dkcf-content').innerHTML += pastTableHtml
}
fetch("./data/events.json")
.then((res) => {
if (!res.ok) {
throw new Error
(`HTTP error! Status: ${res.status}`);
}
return res.json();
})
.then((data) => {
populateDKCFevents(data);
})
.catch((error) =>
console.error("Unable to fetch data:", error));
</script>
<!-- =======================================================
* Template Name: QuickStart
* Template URL: https://bootstrapmade.com/quickstart-bootstrap-startup-website-template/
* Updated: May 01 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
======================================================== -->
</head>
<body class="index-page">
<header id="header" class="header d-flex align-items-center fixed-top">
<div class="container-fluid container-xl position-relative d-flex align-items-center">
<a href="index.html" class="logo d-flex align-items-center me-auto">
<!-- <img src="assets/img/logo.jpg" alt=""> -->
<img src="assets/img/logo.webp" alt="">
<!-- <h1 class="sitename">DKCF</h1> -->
</a>
<nav id="navmenu" class="navmenu">
<ul>
<li><a href="index.html#hero" class="">Home</a></li>
<!-- <li><a href="index.html#about">About</a></li>
<li><a href="index.html#services">Programs</a></li> -->
<!-- <li><a href="index.html#coaching">Coaching</a></li> -->
<li><a href="events.html">Events</a></li>
<li><a href="videos.html">Videos</a></li>
<li class="dropdown"><a href="learn.html"><span>Learn</span> <i
class="bi bi-chevron-down toggle-dropdown"></i></a>
<ul>
<li><a href="learn.html">What is Carrom?</a></li>
<li><a href="learn.html#how">How to play?</a></li>
</ul>
</li>
<li><a href="index.html#contact">Contact</a></li>
</ul>
<i class="mobile-nav-toggle d-xl-none bi bi-list"></i>
</nav>
<a class="btn-getstarted" href="index.html#contact">Get Started</a>
</div>
</header>
<main class="main">
<br /><br />
<!-- Events Section -->
<section id="events" class="features section">
<div class="container section-title" style="padding-bottom: 0px;" data-aos="fade-up">
<h2>Carrom Events Schedule</h2>
<p>We keep track of carrom tournaments happening in all over Europe countries and do our best to have them
added to our calendar. The Denmark Carrom Federation, in collaboration with its associated Carrom clubs
throughout Denmark, hosts a variety of tournaments annually, including Regional, National, Ranking, and
International events.</p>
</div>
<br /><br />
<div class="container">
<div class="row">
<div class="col-12">
<div class="event_calendar"></div>
</div>
</div>
</div>
</section>
</main>
<footer id="footer" class="footer position-relative">
<!-- <div class="container footer-top">
<div class="row gy-4">
<div class="col-lg-4 col-md-6 footer-about">
<a href="index.html" class="logo d-flex align-items-center">
<span class="sitename">Denmark Carrom Federation</span>
</a>
<div class="footer-contact pt-3">
<p>Copenhagen, Denmark</p>
<p><strong>Email:</strong> <span>[email protected]</span></p>
</div>
<div class="social-links d-flex mt-4">
<a href="https://facebook.com/DKCarromFederation">
<i class="bi bi-facebook"></i>
</a>
<a href="https://m.me/DKCarromFederation">
<i class="bi bi-messenger"></i>
</a>
<a href="https://chat.whatsapp.com/D2tRiCFvaOX0CAkCWmkSAS">
<i class="bi bi-whatsapp"></i>
</a>
<a href="https://sol4.metapensiero.it/lit/club/7abfbacec8ed11eebfe46162688db8a6">
<i class="bi bi-trophy-fill"></i>
</a>
<a href="mailto:[email protected]">
<i class="bi bi-envelope-fill"></i>
</a>
</div>
</div>
<div class="col-lg-2 col-md-3 footer-links">
<h4>Useful Links</h4>
<ul>
<li><a href="index.html#hero" class="">Home</a></li>
<li><a href="index.html#about">About</a></li>
<li><a href="index.html#services">Programs</a></li>
<li><a href="index.html#coaching">Coaching</a></li>
<li><a href="events.html">Events</a></li>
</ul>
</div>
<div class="col-lg-2 col-md-3 footer-links">
<h4>What we do</h4>
<ul>
<li>Regular play</li>
<li>Carrom coaching</li>
<li>National tournaments</li>
<li>International tournaments</li>
</ul>
</div>
<div class="col-lg-4 col-md-12 footer-newsletter">
<h4>Our Newsletter</h4>
<p>Subscribe to our newsletter and receive the latest news about carrom & events happening in Europe!</p>
<form action="https://carrom.us22.list-manage.com/subscribe/post?u=6f88967f87622a96cdae61d76&id=de82ebd48f&f_id=005bc5e1f0" method="post" class="php-email-form" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" target="_blank">
<div class="newsletter-form"><input type="email" name="EMAIL"><input type="submit" id="mc-embedded-subscribe" value="Subscribe"></div>
<div class="loading">Loading</div>
<div class="error-message"></div>
<div class="sent-message">Your subscription request has been sent. Thank you!</div>
</form>
</div>
</div>
</div> -->
<div class="container copyright text-center mt-4">
<p>© <span>Copyright</span> <strong class="px-1 sitename">Denmark Carrom Federation</strong><span>All Rights
Reserved</span></p>
<div class="credits">
<!-- All the links in the footer should remain intact. -->
<!-- You can delete the links only if you've purchased the pro version. -->
<!-- Licensing information: https://bootstrapmade.com/license/ -->
<!-- Purchase the pro version with working PHP/AJAX contact form: [buy-url] -->
Designed by <a href="https://bootstrapmade.com/">BootstrapMade</a>
</div>
</div>
</footer>
<!-- Scroll Top -->
<a href="#" id="scroll-top" class="scroll-top d-flex align-items-center justify-content-center"><i
class="bi bi-arrow-up-short"></i></a>
<!-- Preloader -->
<div id="preloader"></div>
<!-- Vendor JS Files -->
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- <script src="assets/vendor/php-email-form/validate.js"></script> -->
<script src="assets/vendor/aos/aos.js"></script>
<script src="assets/vendor/purecounter/purecounter_vanilla.js"></script>
<script src="assets/vendor/glightbox/js/glightbox.min.js"></script>
<script src="assets/vendor/swiper/swiper-bundle.min.js"></script>
<script src="assets/vendor/waypoints/noframework.waypoints.js"></script>
<script src="assets/vendor/imagesloaded/imagesloaded.pkgd.min.js"></script>
<script src="assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
<!-- Main JS File -->
<script src="assets/js/main.js"></script>
<!-- Subscription popup from mailchimp -->
<script type="text/javascript" src="//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js"></script>
<script
type="text/javascript">(function ($) { window.fnames = new Array(); window.ftypes = new Array(); fnames[0] = 'EMAIL'; ftypes[0] = 'email'; fnames[6] = 'SUBJECT'; ftypes[6] = 'text'; fnames[7] = 'MESSAGE'; ftypes[7] = 'text'; fnames[8] = 'NAME'; ftypes[8] = 'text'; fnames[1] = 'FNAME'; ftypes[1] = 'text'; fnames[2] = 'LNAME'; ftypes[2] = 'text'; fnames[3] = 'ADDRESS'; ftypes[3] = 'address'; fnames[4] = 'PHONE'; ftypes[4] = 'phone'; fnames[5] = 'BIRTHDAY'; ftypes[5] = 'birthday'; }(jQuery)); var $mcj = jQuery.noConflict(true);</script>
</body>
</html>