Skip to content

Commit

Permalink
Merge pull request #1201 from meetarora10/dice-branch
Browse files Browse the repository at this point in the history
feat: Now proper contents of dice game are displayed .
  • Loading branch information
apu52 authored Aug 5, 2024
2 parents 510533d + bb180cf commit 27af0aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ <h1>Refresh Me</h1>
</div>

</div>

<script src="index.js" charset="utf-8"></script>
</body>

Expand Down
8 changes: 4 additions & 4 deletions assets/js/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Fetch the project data from the JSON file
fetch('./projectData.json')
fetch('../../projectData.json')
.then(response => response.json())
.then(projectsData => {
const projectListContainer = document.querySelector('.project-list');
Expand All @@ -8,11 +8,9 @@ fetch('./projectData.json')
getProjectsInPage();
})


// Generate <li> tags dynamically
const generateLiTags = projectsData => {
const liTags = [];

for (let tagNumber = 1; tagNumber <= 666; tagNumber++) {
const projectData = projectsData[tagNumber.toString()];

Expand All @@ -21,7 +19,9 @@ const generateLiTags = projectsData => {

const liTag = `
<li class="project-item active" data-filter-item data-category="open source">
<a href="./Projects/${folderName}" target = "_blank" aria-label=${projectTitle}>
<a href="../../Projects/${folderName}" target = "_blank" aria-label=${projectTitle}>
<figure class="project-img">
<img src="./assets/img/${thumbnailName}" alt="${projectTitle}" loading="lazy">
Expand Down

0 comments on commit 27af0aa

Please sign in to comment.