diff --git a/assets/js/gamesData.json b/assets/js/gamesData.json index 77ca353b9f..6c4f3e039d 100644 --- a/assets/js/gamesData.json +++ b/assets/js/gamesData.json @@ -1965,12 +1965,24 @@ "gameTitle": "Dice Roller", "gameUrl": "Dice_Roller", "thumbnailUrl": "Dice_Roller.png" + }, "392": { "gameTitle": "Dragon Tower", "gameUrl": "Dragon_Tower", "thumbnailUrl": "Dragon_Tower.png" }, + + "393":{ + + "gameTitle": "Pop My Balloon", + "gameUrl": "Pop_My_Balloon", + "thumbnailUrl": "Pop_My_Balloon.png" + + }, + + "394":{ +======= "393": { "gameTitle": "Chrome_Dino_Game", "gameUrl": "Chrome_Dino_Game", @@ -1978,11 +1990,68 @@ }, "394": { + "gameTitle": "path finder puzzle", "gameUrl": "path_finder", "thumbnailUrl": "Path_finder.png" }, + "395":{ + + "gameTitle": "Virtual Pet Game", + "gameUrl": "Virtual_Pet_Game", + "thumbnailUrl": "Virtual_Pet_Game.png" + + }, + "396":{ + "gameTitle": "path finder puzzle", + "gameUrl": "path_finder", + "thumbnailUrl": "pathfinder.png" + }, + "397":{ + "gameTitle": "Tower Stack", + "gameUrl": "Tower_Stack", + "thumbnailUrl": "Tower_Stack.png" + + }, + + "398":{ + "gameTitle": "Shrek Vs Wild", + "gameUrl": "Shrek_Vs_Wild", + "thumbnailUrl": "Shrek_Vs_Wild.png" + }, + "399":{ + + "gameTitle": "Brick_and_Ball", + "gameUrl": "Brick_and_Ball", + "thumbnailUrl": "Brick_and_Ball.png" + + }, + "401":{ + + "gameTitle": "Chess.com", + "gameUrl": "Chess.com", + "thumbnailUrl": "Chess.com.jpg" + + + }, + "405":{ + "gameTitle": "Candy_Crush_Saga", + "gameUrl": "Candy_Crush_Saga", + "thumbnailUrl": "Candy_Crush_Saga.png" + }, + "406":{ + "gameTitle": "Knife_hit", + "gameUrl": "Knife_hit", + "thumbnailUrl": "Knife_hit.png" + }, + "407":{ + "gameTitle": "Screen_Pet_Game", + "gameUrl": "Screen_Pet_Game", + "thumbnailUrl": "Screen_Pet_Game.png" + + + "395": { "gameTitle": "Chess.com", "gameUrl": "Chess.com", @@ -1992,17 +2061,188 @@ "gameTitle": "Brick_and_Ball", "gameUrl": "Brick_and_Ball", "thumbnailUrl": "Brick_and_Ball.png" + }, + "411":{ "gameTitle": "Tiny Fishing", + "gameUrl": "Tiny_Fishing", + "thumbnailUrl": "Tiny_Fishing.png" + }, + "412":{ + + "gameTitle": "Chrome_Dino_Game", + "gameUrl": "Chrome_Dino_Game", + "thumbnailUrl": "Chrome_Dino_Game.png" + + + + }, + + "413":{ "397": { + "gameTitle": "Dot Connect", "gameUrl": "Dot_Connect", "thumbnailUrl": "Dot_Connect.png" }, + + +"414":{ + "gameTitle": "NameFate", + "gameUrl": "namefate", + "thumbnailUrl": "namefate.png" +} +, +"415":{ + "gameTitle": "Anagram_Checker_Game", + "gameUrl": "Anagram_Checker_Game", + "thumbnailUrl": "Anagram_Checker_Game.png" + +"500":{ + "gameTitle": "Menja block breaker", + "gameUrl": "Menja_block_breaker", + "thumbnailUrl": "menja_Block_breaker.png" +}, +"393":{ + + "gameTitle": "Pop My Balloon", + "gameUrl": "Pop_My_Balloon", + "thumbnailUrl": "Pop_My_Balloon.png" + +}, +"397":{ + "gameTitle": "Tower Stack", + "gameUrl": "Tower_Stack", + "thumbnailUrl": "Tower_Stack.png" + +}, +"395":{ + + "gameTitle": "Virtual Pet Game", + "gameUrl": "Virtual_Pet_Game", + "thumbnailUrl": "Virtual_Pet_Game.png" + + + "gameTitle": "path finder puzzle", + "gameUrl": "path_finder", + "thumbnailUrl": "pathfinder.png" +} +"416":{ + + "gameTitle": "rapid_click_frenzy", + "gameUrl": "rapid_click_frenzy", + "thumbnailUrl": "rapidgame.png" +}, +"419":{ + +"411":{ "gameTitle": "Tiny Fishing", +"gameUrl": "Tiny_Fishing", +"thumbnailUrl": "Tiny_Fishing.png" +}, +"398":{ +"410":{ + "gameTitle": "Shrek Vs Wild", + "gameUrl": "Shrek_Vs_Wild", + "thumbnailUrl": "Shrek_Vs_Wild.png" +}, +"409":{ + "gameTitle": "Hover_Board_Effect", + "gameUrl": "Hover_Board_Effect", + "thumbnailUrl": "Hover_Board_Effect.png" +}, +"405":{ + "gameTitle": "Candy_Crush_Saga", + "gameUrl": "Candy_Crush_Saga", + "thumbnailUrl": "Candy_Crush_Saga.png" +},"419":{ + + + "gameTitle": "16_Puzzle", + "gameUrl": "16_Puzzle", + "thumbnailUrl": "16_Puzzle.png" +}, +"420":{ + "gameTitle" : "Colour_Generator_Game", + "gameUrl": "Colour_Generator_Game", + "thumbnailUrl": "Colour_Generator_Game.png" + + }, "408":{ + "gameTitle": "Pen_Pointer_Fight", + "gameUrl": "PenPointerFight", + "thumbnailUrl": "PenPointerFight.png" +}} + + }, +"406":{ + "gameTitle": "Knife_hit", + "gameUrl": "Knife_hit", + "thumbnailUrl": "Knife_hit.png" +},"415":{ + "gameTitle": "Anagram_Checker_Game", + "gameUrl": "Anagram_Checker_Game", + "thumbnailUrl": "Anagram_Checker_Game.png" + +}, +"407":{ + "gameTitle": "Screen_Pet_Game", + "gameUrl": "Screen_Pet_Game", + "thumbnailUrl": "Screen_Pet_Game.png" + +},"416":{ + + + "gameTitle": "rapid_click_frenzy", + "gameUrl": "rapid_click_frenzy", + "thumbnailUrl": "rapidgame.png" + + + +} + ,"408":{ + "gameTitle": "Pen_Pointer_Fight", + "gameUrl": "PenPointerFight", + "thumbnailUrl": "PenPointerFight.png" + }, +"409":{ + "gameTitle": "Guess_The_Song", + "gameUrl": "Guess_The_Song", + "thumbnailUrl": "Guess_The_Song.png" +} + +},"418":{ + "gameTitle": "Brick Buster", + "gameUrl": "Brick Buster", + "thumbnailUrl": "Brick.png" + } + + + +},"410":{ + "gameTitle": "Brick Buster", + "gameUrl": "Brick Buster", + "thumbnailUrl": "Brick.png" + }, + "419":{ + "gameTitle": "Soccer", + "gameUrl": "Soccer", + "thumbnailUrl": "Soccer" +}, +"411":{"gameTitle": "Pen_Pointer_Fight", +"gameUrl": "PenPointerFight", +"thumbnailUrl": "PenPointerFight.png" +}, + + + "398": { + "gameTitle": "path finder puzzle", + "gameUrl": "path_finder", + "thumbnailUrl": "pathfinder.png" + "398":{ "gameTitle": "Anagram_Checker_Game", "gameUrl": "Anagram_Checker_Game", "thumbnailUrl": "Anagram_Checker_Game.png" + }, "399":{ "gameTitle": "NameFate", @@ -2084,6 +2324,4 @@ "gameUrl": "Colour_Generator_Game", "thumbnailUrl": "Colour_Generator_Game.png" } - - } diff --git a/assets/js/index.js b/assets/js/index.js index be121acab3..70d3aebf92 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -19,7 +19,7 @@ const generateLiTags = (gamesData, searchText = "") => {
Eye
- ${gameTitle} + ${gameTitle}
${tagNumber}. ${gameTitle} 🔗 @@ -30,6 +30,8 @@ const generateLiTags = (gamesData, searchText = "") => { `; + // added class="game-img ignore-dark-theme" in img tag so that during toggle only the game image remains unaffected. + liTags.push(liTag); } } diff --git a/assets/js/script.js b/assets/js/script.js index 8f5df6b92d..23150c59a5 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -212,10 +212,17 @@ function enableDarkTheme() { for (var i = 0; i < elements.length; i++) { var element = elements[i]; if ( + + element.tagName !== 'BODY' && + !element.classList.contains('ignore-dark-theme') && //add ignore-dark-theme in classes that you dont want affected by the toggle + !element.classList.contains('project-category') && + !element.classList.contains('footer') + element.tagName !== "BODY" && !element.classList.contains("ignore-dark-theme") && !element.classList.contains("project-category") && !element.classList.contains("footer") + ) { element.classList.add("dark-theme"); }