Fix: Add puzzle to index
The "Parliament of Sikinia" puzzle was not visible on the index page. This commit adds the puzzle to the index page to resolve the issue.
This commit is contained in:
parent
98a2b98975
commit
d455a6e752
1 changed files with 2 additions and 2 deletions
|
|
@ -86,11 +86,11 @@ const allInteractives = [{
|
|||
}];
|
||||
|
||||
// Featured interactives (3 fixed ones)
|
||||
const featuredInteractives = allInteractives.filter(interactive => ['northcotts-game', 'ternary-search-trick', 'game-of-sim'].includes(interactive.id));
|
||||
const featuredInteractives = allInteractives.filter(interactive => ['northcotts-game', 'ternary-search-trick', 'sikinia-parliament'].includes(interactive.id));
|
||||
|
||||
// Function to get random interactives (excluding featured ones)
|
||||
const getRandomInteractives = (count: number) => {
|
||||
const availableInteractives = allInteractives.filter(interactive => !['northcotts-game', 'ternary-search-trick', 'game-of-sim'].includes(interactive.id));
|
||||
const availableInteractives = allInteractives.filter(interactive => !['northcotts-game', 'ternary-search-trick', 'sikinia-parliament'].includes(interactive.id));
|
||||
const shuffled = [...availableInteractives].sort(() => 0.5 - Math.random());
|
||||
return shuffled.slice(0, count);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue