Skip to content

Commit

Permalink
Updated location of files
Browse files Browse the repository at this point in the history
  • Loading branch information
atul2727 committed Jun 22, 2024
1 parent 1497c96 commit d230a8f
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 9 additions & 9 deletions Games/Ultimate_Football_Manager/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,17 +148,17 @@ <h2 id="awayTeam">Away Team</h2>
</footer>
</body>

<script src="/js/playerClass.js"></script>
<script src="/js/teamClass.js"></script>
<script src="playerClass.js"></script>
<script src="teamClass.js"></script>

<script src="/js/main.js"></script>
<script src="main.js"></script>

<script src="/js/fixture.js"></script>
<script src="/js/results.js"></script>
<script src="/js/leagues.js"></script>
<script src="fixture.js"></script>
<script src="results.js"></script>
<script src="leagues.js"></script>

<script src="/js/engine.js"></script>
<script src="/js/game.js"></script>
<script src="/js/teamTable.js"></script>
<script src="engine.js"></script>
<script src="game.js"></script>
<script src="teamTable.js"></script>

</html>
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const formationsArray = [
{"G":1,"D":4,"M":5,"F":1},
{"G":1,"D":5,"M":4,"F":1}
];
const playerFile = "./assets/json/playerList.json";
const teamFile = "./assets/json/teams.json";
const playerFile = "playerList.json";
const teamFile = "teams.json";

async function getData(pFile, tFile) {

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions assets/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const generateLiTags = (gamesData, searchText = "") => {
};

// Fetch the game data from the JSON file
fetch("./assets/js/gamesData.json")
fetch("gamesData.json")
.then((response) => response.json())
.then((gamesData) => {
const projectListContainer = document.querySelector(".project-list");
Expand Down Expand Up @@ -135,7 +135,7 @@ document.addEventListener("DOMContentLoaded", () => {
//for searching
searchInput.addEventListener("input", function () {
const searchText = searchInput.value.trim().toLowerCase();
fetch("./assets/js/gamesData.json")
fetch("gamesData.json")
.then((response) => response.json())
.then((gamesData) => {
const projectListContainer = document.querySelector(".project-list");
Expand All @@ -149,7 +149,7 @@ document.addEventListener("DOMContentLoaded", () => {
//for search clearing
clearSearchButton.addEventListener("click", function () {
searchInput.value = "";
fetch("./assets/js/gamesData.json")
fetch("gamesData.json")
.then((response) => response.json())
.then((gamesData) => {
const projectListContainer = document.querySelector(".project-list");
Expand Down
2 changes: 1 addition & 1 deletion assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ document.addEventListener("DOMContentLoaded", () => {
let gamesData = {};

function fetchGamesData() {
fetch("./assets/js/gamesData.json") // Assuming gamesData.json is in the same directory
fetch("gamesData.json") // Assuming gamesData.json is in the same directory
.then((response) => response.json())
.then((data) => {
gamesData = data;
Expand Down

0 comments on commit d230a8f

Please sign in to comment.