Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the issue of home page not directing in Leaderboard page. #97

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions main/award/badges.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h1 id="currentLevel"></h1>
<div id="awardsImages"></div>
</div>
<li class="link techsupport">
<a href="https://vinay-khanagavi.github.io/CyberFit.github.io/">
<a href="https://vinay-khanagavi.github.io/CyberFit.github.io/"></a>
<h4 class="banner"><span>HOME</span></h4>
</a>
</li>
Expand All @@ -49,12 +49,12 @@ <h4 class="banner"><span>HOME</span></h4>
for (let i = 0; i < level; i++) {
const image = document.createElement('img');
image.src = levelBadges[i];
image.alt = `Badge Level ${i + 1}`;
image.alt = Badge Level ${i + 1};
awardsImagesContainer.appendChild(image);
}

// Update current level
currentLevelElement.textContent = `Current Level: ${level}`;
currentLevelElement.textContent = Current Level: ${level};
} else {
// Handle the case when the current level is not available or invalid
currentLevelElement.textContent = 'Current Level: Not Available';
Expand All @@ -65,7 +65,7 @@ <h4 class="banner"><span>HOME</span></h4>
}

function getCookie(name) {
const cookieName = `${name}=`;
const cookieName = ${name}=;
const cookies = document.cookie.split(';');

for (let i = 0; i < cookies.length; i++) {
Expand Down
Empty file removed main/index.html
Crimson-Typhoon-147 marked this conversation as resolved.
Show resolved Hide resolved
Empty file.