Abhishek Thakur
commited on
Commit
·
1aa49ec
1
Parent(s):
15180d9
rules
Browse files
competitions/templates/index.html
CHANGED
|
@@ -309,6 +309,7 @@
|
|
| 309 |
fetchAndDisplayRules(); // Fetch and display info on click
|
| 310 |
});
|
| 311 |
|
|
|
|
| 312 |
// Fetch and display info when the page loads
|
| 313 |
fetchAndDisplayCompetitionInfo();
|
| 314 |
|
|
@@ -319,8 +320,6 @@
|
|
| 319 |
|
| 320 |
</script>
|
| 321 |
|
| 322 |
-
|
| 323 |
-
|
| 324 |
<script>
|
| 325 |
function makeApiRequest(url, callback) {
|
| 326 |
var xhr = new XMLHttpRequest();
|
|
@@ -397,6 +396,8 @@
|
|
| 397 |
<span class="flex-1 ms-3 whitespace-nowrap">Rules</span>
|
| 398 |
</a>
|
| 399 |
</li>
|
|
|
|
|
|
|
| 400 |
{% endif %}
|
| 401 |
<li>
|
| 402 |
<button type="button"
|
|
|
|
| 309 |
fetchAndDisplayRules(); // Fetch and display info on click
|
| 310 |
});
|
| 311 |
|
| 312 |
+
|
| 313 |
// Fetch and display info when the page loads
|
| 314 |
fetchAndDisplayCompetitionInfo();
|
| 315 |
|
|
|
|
| 320 |
|
| 321 |
</script>
|
| 322 |
|
|
|
|
|
|
|
| 323 |
<script>
|
| 324 |
function makeApiRequest(url, callback) {
|
| 325 |
var xhr = new XMLHttpRequest();
|
|
|
|
| 396 |
<span class="flex-1 ms-3 whitespace-nowrap">Rules</span>
|
| 397 |
</a>
|
| 398 |
</li>
|
| 399 |
+
{% else %}
|
| 400 |
+
<span id="rules"></span>
|
| 401 |
{% endif %}
|
| 402 |
<li>
|
| 403 |
<button type="button"
|